/* GORDY - Professional Legal AI Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Core Colors */
  --bg-main: #0F0F11;
  --bg-sidebar: #161618;
  --bg-card: #1C1C1F;
  --bg-card-hover: #252528;
  --bg-input: #222226;
  
  /* Text Colors */
  --text-primary: #F4F4F5;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  
  /* Accents & Borders */
  --border: #27272A;
  --border-light: #3F3F46;
  --primary-accent: #FFFFFF; /* High contrast professional look */
  --primary-accent-dim: #E4E4E7;
  --active-item-bg: #27272A;
  
  /* Status Colors - Muted Professional */
  --status-success: #10B981;
  --status-warning: #F59E0B;
  --status-error: #EF4444;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Dimensions */
  --sidebar-width: 260px;
  --header-height: 60px;
  
  /* Effects */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden; /* App-like feel */
  height: 100vh;
  width: 100vw;
}

/* Layout Grid */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  padding: 0 12px;
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  position: relative; /* For badges */
}

.nav-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background-color: var(--active-item-bg);
  color: var(--text-primary);
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

/* Notification Badge */
.nav-badge {
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  background-color: var(--status-success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--bg-sidebar);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.user-profile:hover {
  background-color: var(--bg-card-hover);
}

.avatar {
  width: 24px;
  height: 24px;
  background: var(--text-primary);
  color: var(--bg-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Top Header (Breadcrumbs/Context) */
.content-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-main);
}

.breadcrumb {
  color: var(--text-secondary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-active {
  color: var(--text-primary);
  font-weight: 500;
}

/* View Container - Scrolls internally */
.view-container {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Dashboard / Landing View */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  margin-top: 40px;
}

.section-title:first-child {
  margin-top: 0;
}

.action-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.action-card:hover {
  border-color: var(--border-light);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon-wrapper {
  width: 40px;
  height: 40px;
  background-color: var(--bg-input);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Module Views (Generate, Analyze, Learn) */
.module-view {
  display: none; /* Hidden by default */
  height: 100%;
  flex-direction: column;
}

.module-view.active {
  display: flex;
}

.chat-interface {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.chat-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Message Styling - Professional/Slack-like */
.message-block {
  display: flex;
  gap: 16px;
  padding: 0 16px;
  animation: fadeIn 0.3s ease;
}

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--active-item-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.message-content {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
}

.message-sender {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.message-text p {
  margin-bottom: 12px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

/* Markdown Tables Styling */
.table-container {
  overflow-x: auto;
  margin: 16px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.message-text table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.message-text th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-card-hover);
}

.message-text td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
}

.message-text tr:last-child td {
  border-bottom: none;
}

.message-text tr:hover td {
  background: var(--bg-card-hover);
}

/* Input Area */
.input-area-wrapper {
  padding: 24px 0;
  background-color: var(--bg-main);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.input-container {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.input-container:focus-within {
  border-color: var(--text-secondary);
}

.main-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  flex: 1;
  padding: 8px 0;
  font-family: var(--font-sans);
}

.main-input:focus {
  outline: none;
}

.send-btn {
  background: var(--text-primary);
  color: var(--bg-main);
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 15;
}

.send-btn:hover {
  opacity: 0.9;
}

.send-btn:active {
  background: var(--accent) !important;
  transform: scale(0.95);
}

/* Make send button MUCH bigger on real mobile touch devices */
@media (pointer: coarse) {
  .send-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    font-size: 24px !important;
    border-radius: 8px !important;
  }
  
  .input-container {
    gap: 12px !important;
  }
}

/* Form as input container */
form.input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  margin: 0;
}

/* File Upload Custom */
.upload-zone {
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--bg-card);
}

.upload-zone:hover {
  border-color: var(--text-secondary);
  background: var(--bg-card-hover);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: var(--text-secondary);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
  color: var(--text-primary);
}

.start-draft-btn {
  margin-top: 20px;
  padding: 14px 32px;
  background: var(--text-primary);
  color: var(--bg-main);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.start-draft-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.start-draft-btn:active {
  transform: translateY(0);
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  max-width: 400px;
  line-height: 1.5;
}


/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* Utilities */
.hidden { display: none !important; }
.text-muted { color: var(--text-secondary); }
.w-full { width: 100%; }

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

/* Mobile Overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

.mobile-overlay.active {
  display: block;
}

/* Tablet Breakpoint (768px) */
@media screen and (max-width: 768px) {
  :root {
    --sidebar-width: 280px;
  }
  
  /* Allow body to scroll on mobile */
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport for mobile */
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* App Layout - Single column on mobile */
  .app-layout {
    grid-template-columns: 1fr;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }
  
  /* Sidebar - Off-canvas on mobile */
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    transition: left 0.3s ease;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  /* Ensure nav-menu scrolls within sidebar */
  .nav-menu {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
  }
  
  /* Main content - flex container for proper mobile layout */
  .main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }
  
  /* Content Header - sticky at top */
  .content-header {
    padding: 0 16px;
    justify-content: flex-start;
    gap: 16px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  
  /* View Container - fills remaining space and scrolls */
  .view-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: auto;
  }
  
  /* Module views need flex layout but content scrolls */
  .module-view.view-container {
    overflow: hidden;
    padding: 0;
  }
  
  /* Module Views - flex column for proper chat layout */
  .module-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  /* Dashboard Grid - Single column on mobile */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Chat Interface - scrollable content area with pinned input */
  .chat-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    max-width: 100%;
  }
  
  /* Scrollable content wrapper for chat + outputs */
  .chat-scroll-area {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
    min-height: 0; /* Important for flex shrink */
  }
  
  .message-block {
    padding: 0;
    margin-bottom: 16px;
  }
  
  .message-block:last-child {
    margin-bottom: 8px;
  }
  
  /* Input Area - pinned at bottom */
  .input-area-wrapper {
    flex-shrink: 0;
    padding: 12px;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 20;
    min-height: auto;
  }
  
  .input-container {
    padding: 8px;
    min-height: 48px;
  }
  
  .main-input {
    min-height: 40px;
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  /* Generate outputs should scroll with chat */
  #generate-outputs,
  #doc-summary-section,
  #doc-chat-section {
    flex-shrink: 0;
  }
  
  /* Cards */
  .action-card {
    padding: 16px;
  }
  
  /* Section Title */
  .section-title {
    font-size: 14px;
    margin-top: 24px;
  }
  
  /* Tables - Horizontal scroll */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .message-text table {
    min-width: 500px;
  }
  
  /* Upload zone on mobile */
  .upload-zone {
    padding: 20px 16px;
  }
  
  /* Summary section scrollable */
  .summary-section {
    max-height: 200px;
    overflow-y: auto;
  }
}

/* Mobile Breakpoint (480px) */
@media screen and (max-width: 480px) {
  /* Typography adjustments */
  body {
    font-size: 14px;
  }
  
  /* Content Header */
  .content-header {
    height: 52px;
    padding: 0 12px;
    gap: 8px;
  }
  
  .breadcrumb {
    font-size: 11px;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* View Container - Minimal padding */
  .view-container {
    padding: 8px;
  }
  
  /* Cards - Compact */
  .action-card {
    padding: 14px;
  }
  
  .card-icon-wrapper {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  .card-desc {
    font-size: 12px;
  }
  
  /* Messages - better spacing */
  .message-block {
    gap: 10px;
    padding: 0 4px;
    margin-bottom: 12px;
  }
  
  .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
    flex-shrink: 0;
  }
  
  .message-content {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .message-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* Input - prevent iOS zoom */
  .main-input {
    font-size: 16px;
    padding: 12px;
  }
  
  .send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Empty State - compact */
  .empty-state {
    padding: 20px 16px;
    min-height: 100px;
    height: auto;
    flex-shrink: 0;
  }
  
  .empty-icon {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .empty-state h3 {
    font-size: 15px;
    margin-bottom: 4px;
  }
  
  .empty-state p {
    font-size: 12px;
    max-width: 280px;
  }
  
  /* Chat scroll area */
  .chat-scroll-area {
    flex: 1;
    min-height: 0;
    padding: 8px 0;
  }
  
  /* Input area */
  .input-area-wrapper {
    flex-shrink: 0;
    padding: 10px 8px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  
  .input-container {
    padding: 6px;
    gap: 8px;
  }
  
  /* Upload Zone */
  .upload-zone {
    padding: 20px 12px;
  }
  
  .upload-zone h3 {
    font-size: 14px;
  }
  
  .upload-zone p {
    font-size: 12px;
  }
  
  /* User Profile in Sidebar */
  .user-profile {
    padding: 8px;
  }
  
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  
  /* Summary section on mobile */
  .summary-section {
    max-height: 150px;
    overflow-y: auto;
    font-size: 13px;
    padding: 12px;
  }
  
  /* Config header compact */
  .config-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }
  
  .config-header select {
    font-size: 14px;
    padding: 8px 12px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-item {
    padding: 14px 12px;
    min-height: 48px;
  }
  
  .action-card {
    min-height: 120px;
  }
  
  .send-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 20px;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Make input containers touch-friendly */
  .input-container {
    min-height: 56px;
  }
  
  .main-input {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
  }
  
  /* Larger touch targets */
  button, 
  .nav-item,
  .action-card,
  .user-profile {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  /* Ensure buttons are not blocked by overlays */
  .send-btn {
    position: relative;
    z-index: 10;
  }
}

/* Safe area support for notched devices (iPhone X+, etc.) */
@supports (padding: max(0px)) {
  .sidebar {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  
  .input-area-wrapper {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  
  .main-content {
    padding-top: env(safe-area-inset-top);
  }
}

/* Document Output Styling */
.document-preview {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 4px;
  font-family: 'Playfair Display', serif; /* Match brand font or keep Times */
  line-height: 1.6;
  margin-top: 20px;
  box-shadow: none;
}

/* ===== PROCESSING INDICATOR ===== */
.processing-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.processing-banner.active {
  display: block;
}

.processing-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.processing-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.processing-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.processing-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.processing-progress {
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  overflow: hidden;
}

.processing-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--status-success));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}

/* Indeterminate progress animation */
.processing-progress-bar.indeterminate {
  width: 30%;
  animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  max-width: 340px;
}

.toast:hover {
  border-color: var(--border-light);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.hiding {
  animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
}

.toast-icon.success {
  background: var(--status-success);
  color: white;
}

.toast-icon.info {
  background: var(--accent);
  color: white;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12px;
  color: var(--text-secondary);
}

.toast-action {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.toast-action:hover {
  text-decoration: underline;
}

/* Mobile toast positioning */
@media screen and (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 80px;
    left: 12px;
    right: 12px;
  }
  
  .toast {
    max-width: 100%;
  }
}

/* ===== CONVERSATION STARTERS ===== */
.conversation-starters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
  max-width: 500px;
}

.starter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1.5;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.starter-btn::after {
  content: '→';
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--accent);
  font-family: sans-serif;
  font-size: 14px;
}

.starter-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.starter-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.starter-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.refresh-starters-btn {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 12px;
  cursor: pointer;
  padding: 8px 16px;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s ease;
  opacity: 0.7;
  border-radius: 20px;
}

.refresh-starters-btn:hover {
  color: var(--text-primary);
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.refresh-starters-btn i {
  font-size: 14px;
}

/* Mobile adjustments */
@media screen and (max-width: 480px) {
  .conversation-starters {
    max-width: 100%;
    padding: 0 4px;
    gap: 10px;
    margin-top: 24px;
  }
  
  .starter-btn {
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 10px;
  }
}

/* ===== QUICK ACTIONS (Follow-up Buttons) ===== */
.quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.quick-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 6px 12px;
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.quick-action-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-primary);
  transform: translateY(-1px);
}
