/* ==========================================================================
   Theme variables
   ========================================================================== */

:root {
  /* Brand colors (unchanged across themes) */
  --purple1: #075E54;
  --purple2: #25D366;
  --red: #ff3636;
  --yellow: #e2dd3a;
  --confirm: #00c853;
  --confirm-hover: #00b74a;
  --cancel: #ff3636;
  --cancel-hover: #e02f2f;

  /* Literal colors — NEVER swap these */
  --white: #ffffff;
  --black: #000000;

  /* Semantic colors — light mode */
  --bg-page: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f0f0f2;
  --bg-elevated: #ffffff;
  --bg-input: #ffffff;
  --bg-overlay: rgba(0, 0, 0, 0.3);
  --bg-card: #f8f9fa;
  --bgHeader: #f0f0f2;
  --bgDefault: #f5f5f7;

  --text-primary: #0D1F16;
  --text-secondary: #2A3D31;
  --text-muted: #637066;
  --text-on-primary: #ffffff;

  --border-color: rgba(18, 140, 126, 0.15);
  --border-color-subtle: rgba(18, 140, 126, 0.08);

  --scrollbar-track: #f0f0f2;
  --scrollbar-thumb: #b0b0b8;
  --scrollbar-thumb-hover: #8a8a96;

  --disabled: #e0e0e6;
  --fontGray1: #71717a;
  --fontGray2: #a1a1aa;

  /* Legacy dark-N vars mapped to light equivalents */
  --dark0: #ebebf0;
  --dark1: #f0f0f2;
  --dark2: #e0e0e6;
  --dark3: #d0d0d8;
  --dark4: #b0b0b8;
  --dark5: #8a8a96;
  --dark6: #4a4a5a;
  --dark7: #2a2a3a;

  color-scheme: light;
}

.dark {
  --bg-page: #09090b;
  --bg-surface: #0f0f12;
  --bg-surface-hover: #1a1a1f;
  --bg-elevated: #1a1a1f;
  --bg-input: #1a1a1f;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  --bg-card: #0f0f12;
  --bgHeader: #0f0f12;
  --bgDefault: #09090b;

  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-on-primary: #ffffff;

  --border-color: #252529;
  --border-color-subtle: #1a1a1f;

  --scrollbar-track: #09090b;
  --scrollbar-thumb: #3a3a42;
  --scrollbar-thumb-hover: #55555e;

  --disabled: #252529;
  --fontGray1: #9ca3af;
  --fontGray2: #6b7280;

  --dark0: #09090b;
  --dark1: #0f0f12;
  --dark2: #1a1a1f;
  --dark3: #1a1a1f;
  --dark4: #252529;
  --dark5: #6b7280;
  --dark6: #9ca3af;
  --dark7: #d1d5db;

  color-scheme: dark;
}
