@charset "UTF-8";
/* =========================================================
   TRIPMATE AI - MODERN SAAS DESIGN SYSTEM (v2.7)
   Clean, crisp, high-contrast, professional design supporting
   both Light and Dark themes with zero clutter and complete class coverage.
========================================================= */

/* ---------------------------------------------------------
   LIGHT THEME (Default or Selected)
--------------------------------------------------------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --background: #f8fafc;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --popover: #ffffff;
  --popover-foreground: #0f172a;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-foreground: #ffffff;
  --primary-subtle: #eff6ff;
  --secondary: #f1f5f9;
  --secondary-hover: #e2e8f0;
  --secondary-foreground: #1e293b;
  --muted: #f8fafc;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-subtle: #f1f5f9;
  --input: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #2563eb;
  --ring: rgba(37, 99, 235, 0.15);
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 14px -2px rgba(0, 0, 0, 0.03);
  --shadow-primary: 0 2px 8px rgba(37, 99, 235, 0.25);
  
  --skeleton-base: #e2e8f0;
  --skeleton-highlight: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------
   DARK THEME (Deep Zinc & Charcoal)
--------------------------------------------------------- */
[data-theme="dark"] {
  color-scheme: dark;
  --background: #09090b;
  --foreground: #fafafa;
  --card: #121215;
  --card-foreground: #fafafa;
  --popover: #18181b;
  --popover-foreground: #fafafa;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-foreground: #ffffff;
  --primary-subtle: rgba(59, 130, 246, 0.12);
  --secondary: #18181b;
  --secondary-hover: #27272a;
  --secondary-foreground: #f4f4f5;
  --muted: #141417;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --input: #141417;
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus: #3b82f6;
  --ring: rgba(59, 130, 246, 0.25);
  
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 2px 10px rgba(59, 130, 246, 0.35);
  
  --skeleton-base: #1c1c21;
  --skeleton-highlight: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   GLOBAL RESET & TYPOGRAPHY
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.view-section {
  min-height: calc(100vh - 140px);
}

.hidden {
  display: none !important;
}

/* =========================================================
   TOP NAVIGATION BAR
========================================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all 0.25s ease;
}

.nav-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-primary);
  transition: transform 0.2s ease;
}

.nav-brand:hover .brand-icon {
  transform: rotate(-6deg) scale(1.05);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.nav-link {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link.active {
  background: var(--card);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

.nav-badge {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 9999px;
  margin-left: 2px;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--secondary);
  border-color: var(--border-hover);
  color: var(--primary);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  border: 1px solid var(--border);
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.user-pill:hover {
  border-color: var(--border-hover);
  background: var(--secondary-hover);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-primary);
  border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--secondary-hover);
  border-color: var(--border-hover);
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover:not(:disabled) {
  background: var(--secondary);
  border-color: var(--border-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--muted-foreground);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--secondary);
  color: var(--foreground);
}

.btn-destructive {
  background: var(--destructive);
  color: #ffffff;
}

.btn-destructive-text {
  color: var(--destructive) !important;
}

.btn-destructive-text:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.08) !important;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 0.8125rem;
  border-radius: 7px;
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   CARDS & CONTAINERS
========================================================= */

.card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 26px;
  transition: all 0.25s ease;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 4px;
  line-height: 1.5;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

[data-theme="dark"] .status-indicator {
  color: #10b981;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

/* =========================================================
   VIEW 1: LANDING PAGE
========================================================= */

.landing-hero {
  padding: 72px 0 54px 0;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.announcement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 26px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--foreground);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 16px 32px;
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
}

.section-how-it-works,
.section-features {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.step-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.step-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.step-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.landing-cta-banner {
  padding: 40px 0 80px 0;
}

.cta-banner-card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 48px 32px;
  text-align: center;
}

.cta-banner-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 10px;
}

.cta-banner-card p {
  font-size: 1rem;
  color: var(--muted-foreground);
  margin-bottom: 24px;
}

/* =========================================================
   VIEW 2: PLANNER (PROMPT INPUT & CHIPS)
========================================================= */

.planner-container {
  padding: 32px 0 60px 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.input-card {
  background: var(--card);
}

/* FULL-WIDTH, CRISP TEXTAREA (Fixed tiny box bug) */
textarea.textarea-input,
.textarea-input,
#userInput,
#refineFeedback {
  width: 100% !important;
  min-height: 130px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
  background: var(--input);
  color: var(--foreground);
  border-radius: 12px;
  border: 1.5px solid var(--input-border);
  box-shadow: var(--shadow-xs);
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
  display: block;
}

textarea.textarea-input:focus,
.textarea-input:focus,
#userInput:focus,
#refineFeedback:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--ring);
}

textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.75;
}

/* Actions Row: Chips on left, Generate button on right */
.input-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chips-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* Sleek modern interactive pill chip */
.chip-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

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

/* =========================================================
   INTERACTIVE AGENT PROGRESS STEPPER
========================================================= */

.progress-card {
  background: var(--card);
}

.progress-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.pulsing-badge {
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.agent-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 22px 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.45;
  transition: all 0.25s ease;
  min-width: 110px;
}

.step-node.active,
.step-node.completed {
  opacity: 1;
}

.node-circle {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s ease;
}

.step-node.active .node-circle {
  background: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
  transform: scale(1.08);
}

.step-node.completed .node-circle {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.node-info {
  display: flex;
  flex-direction: column;
}

.node-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--foreground);
}

.step-node.active .node-title {
  color: var(--primary);
}

.node-desc {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

.live-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--foreground);
}

.ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 1.2s infinite;
  flex-shrink: 0;
}

/* =========================================================
   HUMAN-IN-THE-LOOP APPROVAL
========================================================= */

.approval-card {
  background: var(--card);
  border-left: 4px solid #eab308;
}

.badge-warning {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(234, 179, 8, 0.15);
  color: #d97706;
  padding: 4px 10px;
  border-radius: 9999px;
}

[data-theme="dark"] .badge-warning {
  color: #eab308;
}

.approval-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

/* =========================================================
   ITINERARY RESULTS & MARKDOWN (SCREEN THEME)
========================================================= */

.results-card {
  background: var(--card);
}

.badge-version {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.results-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.markdown-body {
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 26px;
  margin-bottom: 12px;
}

.markdown-body h1 {
  font-size: 1.6rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.markdown-body h2 {
  font-size: 1.25rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  color: var(--primary);
}

.markdown-body h3 { font-size: 1.05rem; }
.markdown-body h4 { font-size: 0.95rem; }

.markdown-body p {
  margin-bottom: 14px;
  color: var(--foreground);
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 6px;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border);
}

.markdown-body th,
.markdown-body td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.markdown-body th {
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 700;
}

.markdown-body tr:nth-child(even) td {
  background: rgba(128, 128, 128, 0.03);
}

.markdown-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--secondary);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 18px 0;
  color: var(--muted-foreground);
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

/* =========================================================
   CONTINUOUS REFINEMENT SECTION
========================================================= */

.refine-card {
  background: var(--card);
  border-top: 3px solid var(--primary);
}

.badge-subtle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-subtle);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 6px;
}

.refine-suggestions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.refine-actions-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.history-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.history-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =========================================================
   VIEW 3: DASHBOARD (SEARCH & TRIP CARDS)
========================================================= */

.dashboard-container {
  padding: 32px 0 60px 0;
}

.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.dashboard-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.dashboard-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.dashboard-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

/* SEARCH BAR WITH EMBEDDED SEARCH ICON (Fixed floating icon bug) */
.dashboard-filter-bar {
  margin-bottom: 24px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 14px;
  color: var(--muted-foreground);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 40px !important;
  border-radius: 10px;
  border: 1.5px solid var(--input-border);
  background: var(--input);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: all 0.18s ease;
}

.search-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--ring);
}

.trips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

/* EXECUTIVE TRIP CARD (Fixed muddy blob look) */
.trip-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
}

.trip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.trip-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.trip-dest-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.trip-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(234, 179, 8, 0.12);
  color: #d97706;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

[data-theme="dark"] .trip-status-badge {
  color: #eab308;
}

.trip-status-badge.approved {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .trip-status-badge.approved {
  color: #10b981;
}

.trip-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 8px 0 4px 0;
  line-height: 1.35;
}

.trip-card-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 10px;
  font-weight: 500;
}

.trip-card-excerpt {
  font-size: 0.825rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.trip-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Empty State */
.empty-state-card {
  text-align: center;
  padding: 60px 20px;
  background: var(--card);
  border-radius: 14px;
  border: 1px dashed var(--border);
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ---------------------------------------------------------
   ANIMATED SKELETON LOADER
--------------------------------------------------------- */

.dashboard-loading-state {
  width: 100%;
  padding: 16px 0;
}

.radar-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 28px auto;
  padding: 12px 24px;
  background: var(--card);
  border-radius: 9999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 400px;
}

.radar-pulse-ring {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 10px var(--primary);
}

.radar-pulse-ring::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: radarRipple 1.6s ease-out infinite;
}

@keyframes radarRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-status-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.skeleton-card {
  background: var(--card);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.skeleton-bar {
  background: var(--skeleton-base);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.skeleton-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--skeleton-highlight) 50%,
    transparent 100%
  );
  animation: shimmerWave 1.6s infinite;
}

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

/* =========================================================
   MODAL DIALOG (SIGN IN / SIGN UP)
========================================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  animation: modalScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  background: var(--secondary);
  color: var(--foreground);
}

.modal-tabs {
  display: flex;
  gap: 6px;
  background: var(--secondary);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
}

.modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 8px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.modal-tab.active {
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

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

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 6px;
}

.auth-input,
.form-input {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1.5px solid var(--input-border);
  background: var(--input);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.875rem;
  box-shadow: var(--shadow-xs);
  outline: none;
  transition: all 0.18s ease;
}

.auth-input:focus,
.form-input:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px var(--ring);
}

/* =========================================================
   TOASTS & ALERTS
========================================================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--card);
  color: var(--foreground);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.25s ease;
  max-width: 360px;
}

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

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.875rem;
  margin-top: 16px;
}

[data-theme="dark"] .alert-error {
  color: #ef4444;
}

/* =========================================================
   FOOTER
========================================================= */

.app-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 34px 0;
  margin-top: 60px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand .brand-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================================================
   DEDICATED EXECUTIVE PDF PRINT STYLES
========================================================= */

#pdfPrintWrapper {
  width: 780px;
  background: #ffffff !important;
  color: #111827 !important;
  padding: 32px 36px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

.pdf-doc-header {
  border-bottom: 2px solid #2563eb;
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.pdf-doc-branding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pdf-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-app-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.pdf-doc-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pdf-trip-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  margin: 8px 0 10px 0;
  line-height: 1.3;
}

.pdf-meta-row {
  display: flex;
  gap: 12px;
  font-size: 0.8125rem;
  color: #475569;
  flex-wrap: wrap;
}

.pdf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
}

.pdf-print-content {
  color: #1e293b !important;
  font-size: 9.75pt;
  line-height: 1.65;
}

.pdf-print-content h1,
.pdf-print-content h2,
.pdf-print-content h3,
.pdf-print-content h4 {
  color: #0f172a !important;
  font-weight: 700;
  page-break-after: avoid !important;
  break-after: avoid !important;
}

.pdf-print-content h1 {
  font-size: 14.5pt;
  margin-top: 22px;
  margin-bottom: 10px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 6px;
}

.pdf-print-content h2 {
  font-size: 12.5pt;
  margin-top: 18px;
  margin-bottom: 8px;
  color: #1e3a8a !important;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 4px;
}

.pdf-print-content h3 {
  font-size: 11pt;
  margin-top: 14px;
  margin-bottom: 6px;
}

.pdf-print-content p {
  margin-bottom: 10px;
  color: #334155 !important;
}

.pdf-print-content ul,
.pdf-print-content ol {
  margin-bottom: 12px;
  padding-left: 22px;
}

.pdf-print-content li {
  margin-bottom: 4px;
  color: #334155 !important;
}

.pdf-print-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 9pt;
  page-break-inside: auto;
}

.pdf-print-content thead {
  display: table-header-group;
}

.pdf-print-content tr {
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-print-content th,
.pdf-print-content td {
  border: 1px solid #cbd5e1 !important;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.pdf-print-content th {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pdf-print-content tr:nth-child(even) td {
  background-color: #f8fafc !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.pdf-print-content td {
  color: #1e293b !important;
}

.pdf-print-content blockquote {
  border-left: 3px solid #2563eb;
  background: #f0fdf4;
  padding: 8px 14px;
  margin: 12px 0;
  color: #166534 !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
}

.pdf-doc-footer {
  margin-top: 32px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #64748b;
}

/* =========================================================
   RESPONSIVE DESIGN
========================================================= */

@media (max-width: 768px) {
  .nav-container {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-stats {
    gap: 16px;
    padding: 14px 20px;
  }

  .stat-divider {
    display: none;
  }

  .input-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .card-header {
    flex-direction: column;
  }

  .results-actions {
    width: 100%;
  }

  .results-actions .btn {
    flex: 1;
  }

  .dashboard-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input-wrapper {
    max-width: 100%;
  }
}


/* =========================================================
   NEW CHAT & AUTO-SAVED BADGE STYLES (v2.8)
========================================================= */

.nav-new-trip-btn {
  color: var(--primary) !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 1px dashed var(--primary) !important;
  background: var(--primary-subtle) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
}

.nav-new-trip-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
}

.header-status-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-new-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-new-chat:hover {
  background: var(--secondary);
  border-color: var(--border-hover);
  color: var(--primary);
  transform: translateY(-1px);
}

.auto-saved-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
}

[data-theme="dark"] .auto-saved-badge {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

/* =========================================================
   REDESIGNED WORKFLOW SECTION ("How TripMate AI works")
========================================================= */

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.step-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.step-card-1 { border-top: 3.5px solid #3b82f6; }
.step-card-2 { border-top: 3.5px solid #10b981; }
.step-card-3 { border-top: 3.5px solid #f59e0b; }
.step-card-4 { border-top: 3.5px solid #8b5cf6; }

.step-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.step-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-xs);
}

.step-icon-blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25); }
.step-icon-emerald { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); }
.step-icon-amber { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }
.step-icon-purple { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25); }

.step-tag-pill {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--secondary);
  color: var(--muted-foreground);
  border: 1px solid var(--border);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-description {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.agent-swarm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.swarm-mini-pill {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--secondary);
  border: 1px solid var(--border);
  color: var(--foreground);
}

.step-highlight-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  margin-top: 8px;
}

/* =========================================================
   ENHANCED MARKDOWN RENDERING
========================================================= */

.markdown-body strong {
  font-weight: 700;
  color: var(--foreground);
}

.markdown-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.markdown-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 22px;
  margin-bottom: 10px;
}

.markdown-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.markdown-body th {
  background: var(--secondary);
  color: var(--foreground);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1.5px solid var(--border);
  text-align: left;
}

.markdown-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--foreground);
}

.markdown-body tr:last-child td {
  border-bottom: none;
}

.markdown-body tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

.markdown-body code {
  background: var(--secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
  font-family: monospace;
  border: 1px solid var(--border);
}

/* ACTIVE PRINT CONTAINER (PDF Export) */
#activePrintContainer {
  width: 750px;
  background: #ffffff !important;
  color: #0f172a !important;
  padding: 32px 36px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }
  .navbar, .app-footer, .hero-section, .workflow-section, .features-grid,
  .dashboard-section, .planner-form-section, .planner-approval-section,
  .planner-refine-section, .result-button-group, .result-header,
  .theme-toggle-btn, .modal {
    display: none !important;
  }
  .planner-result-section {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .result-box {
    display: block !important;
    color: #0f172a !important;
  }
}
