/* -------------------------------------------------------------------
 * Design Tokens & Variables — Warm Ivory, Forest Green & Terracotta
 * Supports Dual-Theme Architecture: Light Mode & Dark Mode
 * ------------------------------------------------------------------- */

:root,
[data-theme="light"] {
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Color Palette — Light Mode (Warm Ivory + Forest Green + Terracotta) */
  --bg-app: #F6F4EE;
  --surface-primary: #FFFEFA;
  --surface-card: #FFFFFF;
  --surface-muted: #EFECE3;
  --surface-sidebar: #203A32;
  --surface-sidebar-hover: #28493F;
  --surface-sidebar-active: #31594C;
  --text-sidebar: #EAF0EB;
  --text-sidebar-muted: #9DB2A5;

  --primary-accent: #3B6950;
  --primary-accent-hover: #2E533F;
  --primary-accent-subtle: #E5EFE8;
  --secondary-accent: #C8795A;
  --secondary-accent-hover: #B26749;
  --secondary-accent-subtle: #F9EFEA;

  --text-main: #1D231F;
  --text-secondary: #535A55;
  --text-muted: #7E8781;

  --border-color: #DDD9CD;
  --border-strong: #C8C2B3;
  --border-focus: #3B6950;
  --focus-ring: rgba(59, 105, 80, 0.2);

  /* Chat Bubbles */
  --user-bubble-bg: #2F5942;
  --user-bubble-text: #FFFFFF;
  --assistant-bubble-bg: #FFFEFA;
  --assistant-bubble-text: #1D231F;

  /* Interview Trap Banner */
  --trap-bg: #FFF8F3;
  --trap-border: #F7D7C4;
  --trap-text: #66270E;

  /* Status Colors */
  --success: #3F7655;
  --success-bg: #EAF3EC;
  --warning: #B77935;
  --warning-bg: #FAF2E8;
  --error: #B84F4F;
  --error-bg: #F9EEEE;
  --info: #4A6E82;
  --info-bg: #EDF3F7;

  /* Spacing & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(37, 43, 39, 0.05);
  --shadow-sm: 0 1px 3px rgba(37, 43, 39, 0.08), 0 1px 2px rgba(37, 43, 39, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(37, 43, 39, 0.08), 0 2px 4px -1px rgba(37, 43, 39, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(37, 43, 39, 0.08), 0 4px 6px -2px rgba(37, 43, 39, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(32, 58, 50, 0.15), 0 10px 10px -5px rgba(32, 58, 50, 0.08);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Dark Mode Tokens */
[data-theme="dark"] {
  --bg-app: #121614;
  --surface-primary: #18201C;
  --surface-card: #1E2722;
  --surface-muted: #25312B;
  --surface-sidebar: #0E1411;
  --surface-sidebar-hover: #16211C;
  --surface-sidebar-active: #1E2D26;
  --text-sidebar: #EAF0EB;
  --text-sidebar-muted: #8BA093;

  --primary-accent: #5AA87C;
  --primary-accent-hover: #6EBB90;
  --primary-accent-subtle: #1C2D23;
  --secondary-accent: #E28E70;
  --secondary-accent-hover: #EEA084;
  --secondary-accent-subtle: #33231D;

  --text-main: #F2F6F3;
  --text-secondary: #A6B5AC;
  --text-muted: #76847A;

  --border-color: #27342C;
  --border-strong: #36483C;
  --border-focus: #5AA87C;
  --focus-ring: rgba(90, 168, 124, 0.25);

  /* Chat Bubbles */
  --user-bubble-bg: #26533B;
  --user-bubble-text: #FFFFFF;
  --assistant-bubble-bg: #1B241F;
  --assistant-bubble-text: #F2F6F3;

  /* Interview Trap Banner */
  --trap-bg: #2B1E19;
  --trap-border: #4D3227;
  --trap-text: #FAD4C3;

  /* Status Colors */
  --success: #529E70;
  --success-bg: #152A1E;
  --warning: #D99547;
  --warning-bg: #2D2214;
  --error: #D66363;
  --error-bg: #2F1717;
  --info: #5F8EA6;
  --info-bg: #162630;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 18px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
}
