/* MPTB AI Workspace - ChatGPT-Style Dark Design System */
:root {
  --bg-main: #212121;
  --bg-sidebar: #171717;
  --bg-card: #2f2f2f;
  --bg-card-hover: #383838;
  --bg-input: #2f2f2f;
  --bg-modal: #212121;
  --bg-modal-overlay: rgba(0, 0, 0, 0.7);
  
  --text-main: #ececec;
  --text-muted: #b4b4b4;
  --text-subtle: #737373;
  --text-white: #ffffff;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-subtle: #2e2e2e;
  --border-focus: #525252;

  --accent-primary: #10a37f;
  --accent-blue: #3b82f6;
  --accent-hover: #1a7f64;
  --accent-thinking: #8b5cf6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.6);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

/* APP LAYOUT */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: width 0.25s ease, transform 0.25s ease;
  user-select: none;
  z-index: 20;
}

.sidebar.collapsed {
  width: 0;
  transform: translateX(-100%);
  border-right: none;
  overflow: hidden;
}

.sidebar-header {
  height: 60px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10a37f 0%, #3b82f6 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.brand-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* New Chat Button */
.sidebar-new-chat-wrapper {
  padding: 6px 14px 12px 14px;
}

.new-chat-btn {
  width: 100%;
  background-color: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.new-chat-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Nav Items */
.sidebar-nav {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background-color 0.15s, color 0.15s;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.sidebar-section-title {
  padding: 16px 14px 6px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}
.mini-btn:hover { color: var(--text-main); }

/* Project list */
.project-list {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.project-pill {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.15s;
}

.project-pill:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.project-pill.active {
  background-color: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 500;
}

.project-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-blue);
}

/* History List */
.chat-history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-history-item {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transition: background-color 0.15s, color 0.15s;
}

.chat-history-item:hover, .chat-history-item.active {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.chat-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.chat-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

.chat-history-item:hover .chat-actions {
  display: flex;
}

.chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
}
.chat-action-btn:hover { color: var(--text-main); }

/* Sidebar Footer Profile */
.sidebar-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-sidebar);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.user-profile:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.user-meta {
  flex: 1;
  overflow: hidden;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-badge-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-subtle);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.status-indicator.online { background-color: #10a37f; box-shadow: 0 0 6px rgba(16, 163, 127, 0.8); }

/* MAIN VIEWPORT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

/* TOP NAV */
.top-nav {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: var(--bg-main);
  z-index: 10;
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-dropdown-wrapper {
  position: relative;
}

.agent-selector-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.agent-selector-btn:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.agent-nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.agent-badge-tag {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.agent-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.agent-dropdown-menu.show {
  display: flex;
}

.agent-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.agent-drop-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.agent-drop-item.selected {
  background-color: rgba(16, 163, 127, 0.15);
}

.agent-drop-info {
  flex: 1;
}

.agent-drop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.agent-drop-role {
  font-size: 11px;
  color: var(--text-muted);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-action-btn {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.top-action-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.top-action-btn.primary {
  background-color: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}
.top-action-btn.primary:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

/* CHAT VIEWPORT */
.chat-viewport {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  scroll-behavior: smooth;
}

/* EMPTY STATE */
.empty-state-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

.empty-state-content {
  max-width: 680px;
  width: 100%;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.suggestion-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.suggestion-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 22px;
  line-height: 1;
}

.card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* MESSAGES CONTAINER */
.messages-container {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 100px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.message-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message-row.user-row {
  align-items: flex-end;
}

.user-bubble {
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: 20px;
  max-width: 85%;
  font-size: 14.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.bot-row {
  align-items: flex-start;
}

.bot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.bot-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.bot-name-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.bot-badge-tag {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.bot-time-label {
  font-size: 11px;
  color: var(--text-subtle);
}

.bot-body {
  padding-left: 36px;
  max-width: 100%;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-main);
}

/* THINKING BOX */
.thinking-box {
  background-color: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #c4b5fd;
}

.thinking-box summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  outline: none;
}

.thinking-content {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(139, 92, 246, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: pre-wrap;
  color: #e9d5ff;
}

/* Markdown Rendering Inside Bot Body */
.bot-body h1, .bot-body h2, .bot-body h3, .bot-body h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffffff;
}

.bot-body h1 { font-size: 20px; }
.bot-body h2 { font-size: 18px; }
.bot-body h3 { font-size: 16px; }

.bot-body p {
  margin-bottom: 12px;
}

.bot-body ul, .bot-body ol {
  margin-bottom: 12px;
  padding-left: 20px;
}

.bot-body li {
  margin-bottom: 4px;
}

.bot-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 13.5px;
}

.bot-body th, .bot-body td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  text-align: left;
}

.bot-body th {
  background-color: rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.bot-body blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.02);
  padding-top: 4px;
  padding-bottom: 4px;
}

.bot-body code {
  font-family: var(--font-mono);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.code-block-wrapper {
  background-color: #111111;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
}

.code-header {
  background-color: #1a1a1a;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

.copy-code-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.copy-code-btn:hover { color: var(--text-main); }

.code-block-wrapper pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
}

.code-block-wrapper pre code {
  background: transparent;
  padding: 0;
}

/* Bot Actions Toolbar */
.bot-actions-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-left: 36px;
}

.action-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  transition: all 0.15s;
}

.action-pill-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* FLOATING INPUT DOCK (Exact Image 2) */
.input-dock {
  padding: 0 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, rgba(33, 33, 33, 0) 0%, rgba(33, 33, 33, 1) 40%);
  position: relative;
  z-index: 10;
}

.input-card {
  max-width: 800px;
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: 26px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px var(--border-focus), var(--shadow-md);
}

.input-main-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.attachment-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, color 0.15s;
}

.attachment-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

#chatInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  resize: none;
  max-height: 200px;
  min-height: 24px;
  padding: 8px 4px;
}

#chatInput::placeholder {
  color: var(--text-subtle);
}

.input-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 4px;
}

.left-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-pill {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-pill:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.tool-pill.active {
  background-color: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #c4b5fd;
}

.tool-pill.secondary {
  border-color: transparent;
  background-color: transparent;
  font-size: 11.5px;
}

.active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10a37f;
}

.right-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  transition: all 0.15s ease;
}

.send-btn.active {
  background-color: var(--text-white);
  color: #000000;
  cursor: pointer;
}

.send-btn.active:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255,255,255,0.3);
}

.input-disclaimer {
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-top: 8px;
  text-align: center;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-modal-overlay);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal-dialog {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

.modal-dialog.large {
  max-width: 720px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 26px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.modal-header p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
}
.modal-close-btn:hover { color: var(--text-main); }

.modal-body {
  padding: 20px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background-color: rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tag-required { color: #f87171; }

.form-control {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 13.5px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--accent-blue);
}

.form-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-subtle);
  margin-top: 4px;
}

.input-password-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.toggle-password-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-subtle);
}

/* Test connection card */
.test-connection-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.test-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.test-desc {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-test {
  background-color: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s;
}

.btn-test:hover {
  background-color: rgba(59, 130, 246, 0.25);
}

.test-feedback-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
}

.test-feedback-box.success {
  background-color: rgba(16, 163, 127, 0.15);
  border: 1px solid rgba(16, 163, 127, 0.4);
  color: #6ee7b7;
}

.test-feedback-box.error {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* BUTTONS */
.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.08); }

.btn-primary {
  background-color: #ffffff;
  color: #000000;
}
.btn-primary:hover { background-color: #e5e5e5; }

/* Share Modal Elements */
.share-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.share-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 22px;
  height: 22px;
  background-color: var(--accent-blue);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-desc {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.lan-url-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 10px 14px;
}

.lan-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.lan-input-wrap {
  display: flex;
  gap: 8px;
}

.copy-btn {
  background-color: var(--accent-blue);
  color: white;
  border: none;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.copy-btn:hover { background-color: #2563eb; }

.collab-features-list {
  margin-top: 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.collab-features-list h4 {
  font-size: 12.5px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.collab-features-list ul {
  list-style: none;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Prompt Library Grid */
.prompt-category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
}
.tab-btn.active, .tab-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.prompt-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.prompt-card-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.prompt-card-item:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.prompt-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.prompt-card-snippet {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}

.toast {
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.2s ease-out;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
  }
  .suggestion-grid, .prompt-cards-container {
    grid-template-columns: 1fr;
  }
}

/* WeCom Profile Card in Modal */
.wecom-profile-card {
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.wecom-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wecom-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.wecom-card-info {
  flex: 1;
}

.wecom-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.wecom-card-link-text {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.wecom-card-link-text code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: #93c5fd;
}

.wecom-open-btn {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  transition: all 0.15s;
}

.wecom-open-btn:hover {
  background-color: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

.wecom-guide-accordion {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(59, 130, 246, 0.2);
  font-size: 12px;
}

.wecom-guide-accordion details summary {
  cursor: pointer;
  color: #93c5fd;
  outline: none;
}

.wecom-guide-steps {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.6;
}

.wecom-guide-steps li {
  margin-bottom: 4px;
}
