/*
 * Arcs Health Portal - Catppuccin Latte Theme
 * Professional board member portal with Catppuccin color palette
 * https://catppuccin.com/
 */

/* ===== CATPPUCCIN LATTE COLOR PALETTE ===== */
:root {
  /* Catppuccin Latte Base Colors */
  --ctp-rosewater: #dc8a78;
  --ctp-flamingo: #dd7878;
  --ctp-pink: #ea76cb;
  --ctp-mauve: #8839ef;
  --ctp-red: #d20f39;
  --ctp-maroon: #e64553;
  --ctp-peach: #fe640b;
  --ctp-yellow: #df8e1d;
  --ctp-green: #40a02b;
  --ctp-teal: #179299;
  --ctp-sky: #04a5e5;
  --ctp-sapphire: #209fb5;
  --ctp-blue: #1e66f5;
  --ctp-lavender: #7287fd;
  --ctp-text: #4c4f69;
  --ctp-subtext1: #5c5f77;
  --ctp-subtext0: #6c6f85;
  --ctp-overlay2: #7c7f93;
  --ctp-overlay1: #8c8fa1;
  --ctp-overlay0: #9ca0b0;
  --ctp-surface2: #acb0be;
  --ctp-surface1: #bcc0cc;
  --ctp-surface0: #ccd0da;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;

  /* Primary Colors - Using Catppuccin Blue */
  --color-primary: var(--ctp-blue);
  --color-primary-hover: var(--ctp-sapphire);
  --color-primary-dark: #1a5ad4;
  --color-primary-light: rgba(30, 102, 245, 0.08);
  --color-primary-subtle: rgba(30, 102, 245, 0.12);

  /* Secondary Colors - Using Catppuccin accents */
  --color-secondary: var(--ctp-text);
  --color-accent: var(--ctp-lavender);
  --color-success: var(--ctp-green);
  --color-success-light: rgba(64, 160, 43, 0.12);
  --color-warning: var(--ctp-yellow);
  --color-error: var(--ctp-red);
  --color-error-light: rgba(210, 15, 57, 0.12);

  /* Surface Colors - Using Catppuccin surfaces */
  --surface-primary: var(--ctp-base);
  --surface-secondary: var(--ctp-mantle);
  --surface-tertiary: #ffffff;
  --surface-elevated: rgba(239, 241, 245, 0.95);

  /* Glassmorphism - Adapted for Catppuccin */
  --glass-bg: rgba(239, 241, 245, 0.72);
  --glass-bg-strong: rgba(239, 241, 245, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-border-subtle: rgba(76, 79, 105, 0.06);

  /* Text Colors - Using Catppuccin text hierarchy */
  --text-primary: var(--ctp-text);
  --text-secondary: var(--ctp-subtext1);
  --text-tertiary: var(--ctp-subtext0);
  --text-quaternary: var(--ctp-overlay1);
  --text-inverse: var(--ctp-base);

  /* Border Colors - Using Catppuccin surfaces */
  --border-light: rgba(76, 79, 105, 0.08);
  --border-medium: rgba(76, 79, 105, 0.12);
  --border-strong: rgba(76, 79, 105, 0.18);
  --border-focus: rgba(30, 102, 245, 0.4);
  --border-primary: var(--ctp-surface1);

  /* Accent Colors - For UI emphasis */
  --accent-primary: var(--ctp-blue);
  --accent-secondary: var(--ctp-lavender);
  --accent-tertiary: var(--ctp-sapphire);

  /* Shadow System - Soft, diffused Apple-style */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.14);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-button: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-button-hover: 0 4px 12px rgba(0, 0, 0, 0.15);

  /* Blur Effects */
  --blur-sm: blur(8px);
  --blur-md: blur(16px);
  --blur-lg: blur(24px);
  --blur-xl: blur(40px);

  /* Border Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
  --duration-slower: 0.6s;

  /* Color aliases (used by schedule & newer components) */
  --color-text: var(--ctp-text);
  --color-subtext0: var(--ctp-subtext0);
  --color-subtext1: var(--ctp-subtext1);
  --color-surface0: var(--ctp-surface0);
  --color-surface1: var(--ctp-surface1);
  --color-surface2: var(--ctp-surface2);
  --color-base: var(--ctp-base);
  --color-mantle: var(--ctp-mantle);
  --color-blue: var(--ctp-blue);
  --color-green: var(--ctp-green);
  --color-yellow: var(--ctp-yellow);
  --color-red: var(--ctp-red);
}

/* ===== TYPOGRAPHY SYSTEM ===== */
:root {
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SF Mono", Monaco, "Cascadia Code", "Fira Code", Consolas, monospace;

  /* Type Scale */
  --text-xs: 0.6875rem;   /* 11px */
  --text-sm: 0.8125rem;   /* 13px */
  --text-base: 0.9375rem; /* 15px */
  --text-md: 1rem;        /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.5rem;     /* 40px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.5rem;     /* 56px */

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.02em;
}

/* ===== TEXT SELECTION ===== */
::selection {
  background-color: var(--ctp-lavender);
  color: var(--ctp-base);
}

::-moz-selection {
  background-color: var(--ctp-lavender);
  color: var(--ctp-base);
}

/* ===== BASE RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: linear-gradient(180deg, var(--surface-secondary) 0%, var(--surface-primary) 100%);
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

h4 {
  font-size: var(--text-lg);
}

h5, h6 {
  font-size: var(--text-md);
}

p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover {
  color: var(--color-primary-dark);
}

/* ===== LAYOUT CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER - GLASSMORPHISM ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--glass-border-subtle);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

/* Brand/Logo */
.header-brand {
  flex-shrink: 0;
}

.header-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.header-brand a:hover {
  transform: scale(1.02);
}

.header-logo {
  height: 40px;
  width: auto;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.header-brand-text {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

/* Navigation */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--color-primary-light);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-actions span:not(.task-notification-badge):not(.nav-badge) {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  color: var(--text-inverse);
  background: var(--color-primary);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  color: var(--text-primary);
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--surface-secondary);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.btn-success {
  color: var(--text-inverse);
  background: var(--color-success);
  box-shadow: var(--shadow-button);
}

.btn-success:hover {
  background: #359024;
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--color-primary-light);
}

/* ===== MAIN CONTENT AREA ===== */
.main {
  min-height: calc(100vh - 72px - 80px);
  padding: 2.5rem 0;
}

/* ===== TIMELINE LAYOUT ===== */
.timeline-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Timeline Navigation Sidebar */
.timeline-nav {
  position: sticky;
  top: calc(72px + 2rem);
  height: fit-content;
  max-height: calc(100vh - 72px - 4rem);
  overflow-y: auto;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.timeline-nav-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.timeline-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.timeline-nav-item:hover {
  color: var(--text-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary-subtle);
  transform: translateX(4px);
}

.timeline-nav-item.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary-subtle);
  font-weight: var(--weight-medium);
}

.timeline-month {
  font-weight: var(--weight-medium);
}

.timeline-count {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background: var(--surface-secondary);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

.timeline-nav-item.active .timeline-count {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

/* Timeline Content Area */
.timeline-content {
  min-width: 0;
}

/* Timeline Hero */
.timeline-hero {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.timeline-hero h1 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: var(--tracking-tighter);
}

.timeline-hero p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* Timeline Month Headers */
.timeline-month-header {
  margin: 2.5rem 0 1.25rem 0;
  padding: 0.875rem 1.25rem;
  background: var(--surface-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.timeline-month-header h2 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

/* Timeline Items */
.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-slow) var(--ease-smooth);
  cursor: pointer;
}

.timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-card-hover);
}

.timeline-item:active {
  transform: translateY(-2px);
}

/* Date Badge */
.timeline-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 72px;
}

.timeline-day {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.timeline-weekday {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  opacity: 0.85;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Timeline Item Content */
.timeline-item-content {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}

.timeline-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.timeline-item-type {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-primary-subtle);
}

.timeline-item-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin: 0;
}

.timeline-item-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

.timeline-item-title a:hover {
  color: var(--color-primary);
}

.timeline-item-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.timeline-item-category {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  background: var(--surface-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* ===== CONTENT CARDS ===== */
.content-card {
  position: relative;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
  box-shadow: var(--shadow-card);
}

.content-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-card-hover);
}

.content-card:active {
  transform: translateY(-3px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0;
}

.card-date {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--text-tertiary);
  background: var(--surface-secondary);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
}

.card-type {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-inverse);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: var(--leading-snug);
}

.card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Card Share Button */
.card-share {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.9);
  transition: all var(--duration-normal) var(--ease-smooth);
  z-index: 10;
}

.content-card:hover .card-share {
  opacity: 1;
  transform: scale(1);
}

.card-share:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.card-share:hover .card-share-icon {
  color: var(--text-inverse);
}

.card-share-icon {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* ===== CONTENT DETAIL PAGE ===== */
.content-detail {
  width: 100%;
  max-width: 100%;
}

/* Breadcrumb in content detail */
.content-detail nav[aria-label="Content navigation"] {
  margin-bottom: 2rem;
}

.content-detail nav[aria-label="Content navigation"] > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.content-detail nav[aria-label="Content navigation"] a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.content-detail nav[aria-label="Content navigation"] a:hover {
  color: var(--color-primary);
}

/* Meeting Header */
.meeting-header {
  position: relative;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.meeting-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
  padding-right: 200px; /* Space for action buttons */
}

.meeting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface-secondary);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.meta-item span:first-child {
  font-size: var(--text-md);
}

/* Share Section */
.share-section {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
}

/* Action Buttons */
.share-button,
.export-pdf-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid;
}

.share-button {
  color: var(--color-primary);
  background: var(--surface-tertiary);
  border-color: var(--color-primary-subtle);
}

.share-button:hover {
  color: var(--text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.export-pdf-button {
  color: var(--color-success);
  background: var(--surface-tertiary);
  border-color: var(--color-success-light);
}

.export-pdf-button:hover {
  color: var(--text-inverse);
  background: var(--color-success);
  border-color: var(--color-success);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}

.export-pdf-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.share-icon,
.export-icon {
  font-size: 14px;
}

/* ===== MARKDOWN CONTENT ===== */
.markdown-content {
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  line-height: var(--leading-relaxed);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin: 2rem 0 1rem 0;
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child {
  margin-top: 0;
}

.markdown-content h1 { font-size: var(--text-2xl); }
.markdown-content h2 { font-size: var(--text-xl); }
.markdown-content h3 { font-size: var(--text-lg); }
.markdown-content h4 { font-size: var(--text-md); }

.markdown-content p {
  margin: 0 0 1.25rem 0;
  color: var(--text-secondary);
}

/* Lists */
.markdown-content ul,
.markdown-content ol {
  margin: 0 0 1.25rem 0;
  padding-left: 1.75rem;
  color: var(--text-secondary);
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 0.375rem;
  line-height: var(--leading-relaxed);
}

.markdown-content li > ul,
.markdown-content li > ol {
  margin-top: 0.375rem;
  margin-bottom: 0;
}

.markdown-content ul ul { list-style-type: circle; }
.markdown-content ul ul ul { list-style-type: square; }

/* Blockquotes */
.markdown-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--surface-secondary);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.markdown-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.markdown-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.markdown-content th,
.markdown-content td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.markdown-content th {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: var(--surface-secondary);
}

.markdown-content td {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

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

/* Code */
.markdown-content code {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.markdown-content pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: var(--surface-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.markdown-content pre code {
  background: none;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* Horizontal Rule */
.markdown-content hr {
  margin: 2.5rem 0;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
}

/* Links */
.markdown-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-subtle);
  text-underline-offset: 3px;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.markdown-content a:hover {
  text-decoration-color: var(--color-primary);
}

/* Images */
.markdown-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Embedded iframes */
.markdown-content iframe {
  width: 100%;
  min-width: 1100px;
  max-width: 1200px;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* iframe containers use full available width */

/* Strong and Emphasis */
.markdown-content strong {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.markdown-content em {
  font-style: italic;
}

/* Definition Lists */
.markdown-content dl {
  margin: 1.5rem 0;
}

.markdown-content dt {
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-top: 1rem;
}

.markdown-content dd {
  margin: 0.375rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

/* Task Lists */
.markdown-content .task-list-item {
  list-style-type: none;
  margin-left: -1.75rem;
  padding-left: 1.75rem;
}

.markdown-content .task-list-item input[type="checkbox"] {
  margin-right: 0.625rem;
}

/* Abbreviations */
.markdown-content abbr {
  border-bottom: 1px dotted var(--text-tertiary);
  cursor: help;
}

/* Keyboard */
.markdown-content kbd {
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  color: var(--text-primary);
  background: var(--surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  padding: 0.2rem 0.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Mark */
.markdown-content mark {
  background: rgba(255, 214, 0, 0.3);
  color: var(--text-primary);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
}

/* ===== LOGIN PAGE ===== */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.login-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.login-header p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.form-input::placeholder {
  color: var(--text-quaternary);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

.form-input:hover:not(:focus) {
  border-color: var(--border-strong);
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid;
}

.alert-success {
  color: var(--color-success);
  background: var(--color-success-light);
  border-color: rgba(52, 199, 89, 0.2);
}

.alert-error {
  color: var(--color-error);
  background: var(--color-error-light);
  border-color: rgba(255, 59, 48, 0.2);
}

.alert-info {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary-subtle);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-secondary);
  color: var(--text-quaternary);
  padding: 2rem 0;
  text-align: center;
  font-size: var(--text-sm);
}

.footer p {
  margin: 0;
  color: var(--text-quaternary);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 0.75rem 0;
  background: transparent;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
}

.breadcrumb-item {
  color: var(--text-tertiary);
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--text-quaternary);
}

/* ===== FILTER SECTION ===== */
.filter-section {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.filter-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.filter-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.filter-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.filter-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary-subtle);
  transform: translateY(-2px);
}

.filter-btn.active {
  color: var(--text-inverse);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.filter-icon {
  font-size: var(--text-md);
}

/* Content List Grid */
.content-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.content-item {
  transition: all var(--duration-slow) var(--ease-smooth);
}

.content-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ===== QUICK NAV GRID (Dashboard) ===== */
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.quick-nav-card {
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration-slow) var(--ease-smooth);
  box-shadow: var(--shadow-card);
}

.quick-nav-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary-subtle);
  box-shadow: var(--shadow-card-hover);
}

.quick-nav-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quick-nav-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-2xl);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--text-inverse);
  margin-bottom: 0.75rem;
  letter-spacing: var(--tracking-tighter);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin: 0 auto;
  line-height: var(--leading-relaxed);
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  z-index: 2000;
  transition: top var(--duration-fast) var(--ease-smooth);
}

.skip-link:focus {
  top: 1rem;
}

/* Focus Indicators */
.btn:focus-visible,
.nav-link:focus-visible,
.form-input:focus-visible,
.filter-btn:focus-visible,
.share-button:focus-visible,
.export-pdf-button:focus-visible,
.content-card:focus-visible,
.timeline-item:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Page Load Animations */
.timeline-hero,
.meeting-header,
.login-card {
  animation: fadeInUp var(--duration-slower) var(--ease-smooth);
}

.timeline-item,
.content-card {
  animation: fadeInUp var(--duration-slow) var(--ease-smooth);
  animation-fill-mode: both;
}

.timeline-item:nth-child(1),
.content-card:nth-child(1) { animation-delay: 0ms; }
.timeline-item:nth-child(2),
.content-card:nth-child(2) { animation-delay: 50ms; }
.timeline-item:nth-child(3),
.content-card:nth-child(3) { animation-delay: 100ms; }
.timeline-item:nth-child(4),
.content-card:nth-child(4) { animation-delay: 150ms; }
.timeline-item:nth-child(5),
.content-card:nth-child(5) { animation-delay: 200ms; }
.timeline-item:nth-child(6),
.content-card:nth-child(6) { animation-delay: 250ms; }
.timeline-item:nth-child(7),
.content-card:nth-child(7) { animation-delay: 300ms; }
.timeline-item:nth-child(8),
.content-card:nth-child(8) { animation-delay: 350ms; }

.timeline-nav {
  animation: slideInLeft var(--duration-slower) var(--ease-smooth);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-xl);
  -webkit-backdrop-filter: var(--blur-xl);
  padding: 1.5rem;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--duration-normal) var(--ease-smooth);
  pointer-events: none;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu .nav-list {
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu .nav-link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: var(--text-md);
  border-radius: var(--radius-md);
  width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .timeline-layout {
    grid-template-columns: 220px 1fr;
    gap: 2rem;
  }

  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Hide desktop nav */
  .header-nav {
    display: none;
  }

  .header {
    height: 64px;
  }

  .header-logo {
    height: 32px;
  }

  .header-brand-text {
    font-size: var(--text-lg);
  }

  .container {
    padding: 0 1rem;
  }

  .main {
    padding: 1.5rem 0;
  }

  /* Timeline Layout - Single Column */
  .timeline-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-nav {
    position: relative;
    top: 0;
    max-height: none;
    padding: 1rem;
  }

  .timeline-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .timeline-nav-item {
    flex-shrink: 0;
    min-width: fit-content;
    padding: 0.5rem 0.875rem;
    font-size: var(--text-xs);
  }

  .timeline-hero {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .timeline-hero h1 {
    font-size: var(--text-2xl);
  }

  .timeline-hero p {
    font-size: var(--text-sm);
  }

  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .timeline-item-date {
    min-height: 56px;
    padding: 0.5rem;
  }

  .timeline-day {
    font-size: var(--text-lg);
  }

  .timeline-weekday {
    font-size: 9px;
  }

  .timeline-item-title {
    font-size: var(--text-md);
  }

  .timeline-month-header {
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
  }

  .timeline-month-header h2 {
    font-size: var(--text-md);
  }

  /* Content Detail */
  .content-detail {
    padding: 0;
  }

  .meeting-header {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .meeting-title {
    font-size: var(--text-xl);
    padding-right: 0;
    margin-bottom: 1rem;
  }

  .share-section {
    position: static;
    margin-bottom: 1rem;
  }

  .meeting-meta {
    padding-top: 1rem;
  }

  .meta-item {
    font-size: var(--text-xs);
    padding: 0.5rem 0.75rem;
  }

  .markdown-content {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
  }

  /* Content List */
  .content-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Filter Section */
  .filter-section {
    padding: 1.5rem;
  }

  .filter-buttons {
    flex-direction: column;
    width: 100%;
  }

  .filter-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }

  /* Login */
  .login-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .login-card {
    padding: 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }

  /* Typography */
  h1 {
    font-size: var(--text-2xl);
  }

  h2 {
    font-size: var(--text-xl);
  }
}

@media (max-width: 480px) {
  .header-actions span:not(.task-notification-badge):not(.nav-badge) {
    display: none;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: var(--text-xs);
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .timeline-item-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: auto;
    padding: 0.5rem 0.75rem;
    width: fit-content;
  }

  .timeline-day {
    font-size: var(--text-md);
  }

  .timeline-weekday {
    margin-top: 0;
    font-size: var(--text-xs);
  }

  .share-section {
    flex-direction: column;
    gap: 0.5rem;
  }

  .share-button,
  .export-pdf-button {
    width: 100%;
    justify-content: center;
  }
}

/* ===== DOCUMENT NAVIGATION SYSTEM ===== */

/* Content Detail Layout - Sidebar + Main */
.content-detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 1024px) {
  .content-detail-layout {
    grid-template-columns: 1fr;
  }
}

/* Table of Contents Sidebar */
.document-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 140px);
  background: var(--glass-bg);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-smooth);
  box-shadow: var(--shadow-card);
}

.document-toc.collapsed {
  max-height: 56px;
}

.document-toc.collapsed .toc-nav {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  padding: 0;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  background: var(--glass-bg-strong);
}

.toc-header h3 {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.toc-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.toc-toggle:hover {
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
}

.toc-toggle-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.document-toc.collapsed .toc-toggle-icon {
  transform: rotate(135deg);
}

.toc-nav {
  padding: 1rem;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  transition: all var(--duration-slow) var(--ease-smooth);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-item {
  margin-bottom: 0.25rem;
}

.toc-item.toc-level-1 { padding-left: 0; }
.toc-item.toc-level-2 { padding-left: 0.75rem; }
.toc-item.toc-level-3 { padding-left: 1.5rem; }
.toc-item.toc-level-4 { padding-left: 2.25rem; }

.toc-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
  line-height: var(--leading-snug);
  border-left: 2px solid transparent;
}

.toc-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.toc-link.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  border-left-color: var(--color-primary);
}

/* Mobile TOC */
@media (max-width: 1024px) {
  .document-toc {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    top: auto;
    max-height: 50vh;
    z-index: 100;
    box-shadow: var(--shadow-xl);
  }

  .document-toc.collapsed {
    max-height: 56px;
    left: auto;
    right: 20px;
    width: 140px;
  }
}

/* Floating Back Button */
.nav-back-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--blur-lg);
  -webkit-backdrop-filter: var(--blur-lg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--duration-normal) var(--ease-smooth);
  z-index: 1000;
}

.nav-back-button:hover {
  background: var(--surface-tertiary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.nav-back-button:active {
  transform: translateY(0);
}

.nav-back-button .back-icon {
  font-size: var(--text-lg);
  color: var(--color-primary);
}

.nav-back-button .back-text {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-back-button {
    bottom: 140px;
    padding: 0.625rem 1rem;
    font-size: var(--text-xs);
  }
}

/* Link Preview Popup - Large modal for full section content */
.link-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  z-index: 1000;
}

.link-preview-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  max-width: 900px;
  height: 85vh;
  max-height: 85vh;
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 1001;
  overflow: hidden;
  flex-direction: column;
}

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

.link-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-light);
}

.link-preview-title {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  padding-right: 1rem;
}

.link-preview-close {
  width: 28px;
  height: 28px;
  border: none;
  background: var(--surface-secondary);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.link-preview-close:hover {
  background: var(--color-error-light);
  color: var(--color-error);
}

.link-preview-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background: var(--surface-primary);
}

/* Style the preview content like the main markdown content */
.link-preview-content h1,
.link-preview-content h2,
.link-preview-content h3,
.link-preview-content h4,
.link-preview-content h5,
.link-preview-content h6 {
  margin: 1.5rem 0 1rem 0;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
}

.link-preview-content h1:first-child,
.link-preview-content h2:first-child,
.link-preview-content h3:first-child,
.link-preview-content h4:first-child {
  margin-top: 0;
}

.link-preview-content h1 { font-size: var(--text-2xl); }
.link-preview-content h2 { font-size: var(--text-xl); }
.link-preview-content h3 { font-size: var(--text-lg); }
.link-preview-content h4 { font-size: var(--text-md); }

.link-preview-content p {
  margin: 0 0 1rem 0;
}

.link-preview-content ul,
.link-preview-content ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.link-preview-content li {
  margin-bottom: 0.5rem;
}

.link-preview-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: var(--text-sm);
}

.link-preview-content th,
.link-preview-content td {
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  text-align: left;
}

.link-preview-content th {
  background: var(--surface-secondary);
  font-weight: var(--weight-semibold);
}

.link-preview-content code {
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  background: var(--surface-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-xs);
}

.link-preview-content pre {
  background: var(--surface-secondary);
  padding: 1rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1rem 0;
}

.link-preview-content pre code {
  background: none;
  padding: 0;
}

.link-preview-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 1rem 0;
  padding: 0.5rem 1rem;
  background: var(--color-primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.link-preview-content hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

.link-preview-content .preview-empty {
  color: var(--text-tertiary);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

.link-preview-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-light);
}

.link-preview-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

/* Section Highlight Animation */
.section-highlight {
  animation: sectionPulse 2s var(--ease-smooth);
}

@keyframes sectionPulse {
  0% {
    background: transparent;
  }
  15% {
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
  }
  100% {
    background: transparent;
  }
}

/* Wiki Links & Internal Links Styling */
.wiki-link,
.internal-link {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px dashed var(--color-primary);
  padding-bottom: 1px;
  transition: all var(--duration-fast) var(--ease-smooth);
  cursor: pointer;
}

.wiki-link:hover,
.internal-link:hover {
  color: var(--color-primary-dark);
  border-bottom-style: solid;
  background: var(--color-primary-light);
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}

/* Content Detail Page Adjustments */
.content-detail {
  flex: 1;
  min-width: 0;
}

.content-nav-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Share/Export Button Success/Error States */
.share-section .btn.success,
.export-pdf-button.success {
  background: var(--color-success-light) !important;
  border-color: var(--color-success) !important;
  color: var(--color-success) !important;
}

.share-section .btn.error {
  background: var(--color-error-light) !important;
  border-color: var(--color-error) !important;
  color: var(--color-error) !important;
}

/* Meta icons in header */
.meta-icon {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-right: 0.25rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .content-card:hover,
  .timeline-item:hover,
  .btn:hover,
  .quick-nav-card:hover,
  .filter-btn:hover {
    transform: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .timeline-nav,
  .share-section,
  .skip-link,
  .document-toc,
  .nav-back-button,
  .link-preview-popup,
  .link-preview-overlay {
    display: none !important;
  }

  .content-detail-layout {
    grid-template-columns: 1fr;
  }

  body {
    background: white;
  }

  .main {
    padding: 0;
  }

  .markdown-content {
    border: none;
    box-shadow: none;
    padding: 0;
  }

  .ai-chat-fab,
  .ai-chat-popup,
  .ai-chat-overlay {
    display: none !important;
  }
}

/* ===== CLARALY - AI DOCUMENT CHAT ASSISTANT ===== */

/* Floating Action Button Container */
.ai-chat-fab-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Label that appears next to FAB */
.ai-chat-fab-label {
  background: var(--surface-tertiary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: labelPulse 3s ease-in-out infinite;
  cursor: pointer;
  border: 1px solid var(--border-light);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.ai-chat-fab-label:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

.ai-chat-fab-label span {
  background: linear-gradient(135deg, var(--color-primary) 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--weight-semibold);
}

@keyframes labelPulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-3px);
  }
}

/* Floating Action Button */
.ai-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #6366f1 0%, var(--color-primary) 50%, #06b6d4 100%);
  border: none;
  color: white;
  font-size: var(--text-xl);
  cursor: pointer;
  box-shadow: var(--shadow-xl), 0 4px 24px rgba(99, 102, 241, 0.4);
  transition: all var(--duration-normal) var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: fabGlow 2s ease-in-out infinite;
}

@keyframes fabGlow {
  0%, 100% {
    box-shadow: var(--shadow-xl), 0 4px 24px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: var(--shadow-2xl), 0 8px 32px rgba(99, 102, 241, 0.6);
  }
}

.ai-chat-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-2xl), 0 12px 40px rgba(99, 102, 241, 0.5);
  animation: none;
}

.ai-chat-fab:active {
  transform: scale(1.02);
}

.ai-chat-fab .fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.ai-chat-fab.active .fab-icon {
  transform: rotate(45deg);
}

/* Notification dot */
.ai-chat-fab::after {
  content: '';
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: var(--radius-full);
  border: 2px solid white;
  animation: dotPulse 2s ease-in-out infinite;
}

.ai-chat-fab.active::after {
  display: none;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Chat Overlay */
.ai-chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--blur-md);
  -webkit-backdrop-filter: var(--blur-md);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.ai-chat-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Chat Popup Panel */
.ai-chat-popup {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 420px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 140px);
  background: var(--surface-tertiary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
}

.ai-chat-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Chat Header */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0077ed 100%);
  color: white;
  flex-shrink: 0;
}

.ai-chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-chat-header-title h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.ai-chat-header-icon {
  font-size: var(--text-lg);
}

.ai-chat-close {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: white;
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.ai-chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Chat Messages Area */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--surface-primary);
}

/* Message Bubbles */
.ai-chat-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 90%;
}

.ai-chat-message.user {
  align-self: flex-end;
}

.ai-chat-message.assistant {
  align-self: flex-start;
}

.ai-chat-message-content {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.ai-chat-message.user .ai-chat-message-content {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: var(--radius-xs);
}

.ai-chat-message.assistant .ai-chat-message-content {
  background: var(--surface-secondary);
  color: var(--text-primary);
  border-bottom-left-radius: var(--radius-xs);
}

/* Section links in AI responses */
.ai-chat-message-content .section-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--weight-medium);
  cursor: pointer;
  border-bottom: 1px dashed var(--color-primary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.ai-chat-message-content .section-link:hover {
  background: var(--color-primary-light);
  border-bottom-style: solid;
  border-radius: 2px;
  padding: 0 2px;
  margin: 0 -2px;
}

/* Welcome message */
.ai-chat-welcome {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
}

.ai-chat-welcome-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.ai-chat-welcome h4 {
  margin: 0 0 0.5rem 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.ai-chat-welcome p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Typing indicator */
.ai-chat-typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-xs);
  max-width: 80px;
}

.ai-chat-typing-dots {
  display: flex;
  gap: 4px;
}

.ai-chat-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-tertiary);
  border-radius: var(--radius-full);
  animation: typingBounce 1.4s ease-in-out infinite;
}

.ai-chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.ai-chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Error message */
.ai-chat-error {
  background: var(--color-error-light);
  color: var(--color-error);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
}

/* Chat Input Area */
.ai-chat-input-area {
  padding: 1rem;
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

.ai-chat-input-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.ai-chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--surface-tertiary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: var(--leading-normal);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.ai-chat-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.ai-chat-input::placeholder {
  color: var(--text-tertiary);
}

.ai-chat-send {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
}

.ai-chat-send:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.ai-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Voice Input Button */
.ai-chat-voice {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface-tertiary);
  color: var(--text-secondary);
  font-size: var(--text-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-smooth);
  flex-shrink: 0;
  border: 1px solid var(--border-light);
}

.ai-chat-voice:hover:not(:disabled) {
  background: var(--surface-secondary);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.ai-chat-voice:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-chat-voice.recording {
  background: var(--color-error-light);
  color: var(--color-error);
  border-color: var(--color-error);
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 59, 48, 0);
  }
}

/* Voice status indicator */
.ai-chat-voice-status {
  font-size: var(--text-xs);
  color: var(--color-error);
  text-align: center;
  padding: 0.25rem 0.5rem;
  animation: fadeIn 0.2s ease-out;
}

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

/* Voice Input Expanded Mode */
.ai-chat-popup.voice-expanded {
  height: 600px;
  max-height: 80vh;
}

.ai-chat-input.voice-expanded {
  min-height: 100px;
  max-height: 200px;
  font-size: var(--text-base);
  background: var(--surface-primary);
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .ai-chat-fab-container {
    bottom: 16px;
    right: 16px;
  }

  .ai-chat-fab-label {
    display: none;
  }

  .ai-chat-fab {
    width: 52px;
    height: 52px;
  }

  .ai-chat-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }

  .ai-chat-popup.active {
    transform: translateY(0);
  }

  .ai-chat-messages {
    padding: 0.75rem;
  }
}
