/* ============================================================
   SignalOne CSS Rebuild V1
   File: tokens.css
   Responsibility: design tokens only
   ============================================================ */

:root {
  /* Color foundation */
  --bg-page: #eef1f5;
  --bg-page-soft: #f5f7fa;
  --bg-surface: #ffffff;
  --bg-surface-2: #f8fafc;
  --bg-surface-3: #f1f4f8;
  --bg-overlay: rgba(10, 13, 18, 0.52);

  --bg-sidebar: #181c24;
  --bg-sidebar-elev: #1d2230;
  --bg-sidebar-hover: rgba(255, 255, 255, 0.07);
  --bg-sidebar-active: rgba(90, 120, 255, 0.14);

  --line-subtle: #e7ecf3;
  --line-mid: #d6dee9;
  --line-strong: #bdc9d8;

  --text-primary: #111827;
  --text-secondary: #4c5c72;
  --text-muted: #708198;
  --text-disabled: #9aa8ba;
  --text-inverse: #eef4ff;

  --text-sidebar: #c8d0de;
  --text-sidebar-muted: #8f9ab0;
  --text-sidebar-active: #f4f8ff;

  --accent: #4f6ef7;
  --accent-hover: #3f5ee9;
  --accent-soft: rgba(79, 110, 247, 0.12);
  --accent-line: #7f97ff;

  --success: #1c9c63;
  --success-soft: rgba(28, 156, 99, 0.14);
  --warning: #c27a1d;
  --warning-soft: rgba(194, 122, 29, 0.14);
  --danger: #d24f4f;
  --danger-soft: rgba(210, 79, 79, 0.14);
  --info: #2f74c7;
  --info-soft: rgba(47, 116, 199, 0.14);

  /* Typography */
  --font-display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-2xs: 10px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  --fs-2xl: 24px;
  --fs-3xl: 32px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  --ls-tight: -0.03em;
  --ls-normal: 0;
  --ls-wide: 0.06em;

  /* Spacing scale */
  --sp-0: 0;
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 28px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* Radius scale */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-pill: 999px;

  /* Elevation scale */
  --sh-0: none;
  --sh-1: 0 1px 2px rgba(12, 18, 28, 0.06);
  --sh-2: 0 4px 12px rgba(12, 18, 28, 0.08);
  --sh-3: 0 10px 28px rgba(12, 18, 28, 0.12);
  --sh-4: 0 18px 42px rgba(12, 18, 28, 0.16);

  /* Executive operating surfaces */
  --exec-bg: #eef2f7;
  --exec-bg-2: #f5f8fc;
  --exec-bg-3: #e4eaf3;
  --exec-surface: rgba(248, 251, 255, 0.94);
  --exec-surface-2: rgba(239, 245, 252, 0.9);
  --exec-surface-3: rgba(228, 236, 248, 0.78);
  --exec-line: rgba(45, 65, 100, 0.1);
  --exec-line-strong: rgba(45, 65, 100, 0.18);
  --exec-text: #101828;
  --exec-text-2: #344054;
  --exec-text-3: #667085;
  --exec-accent: #0f5a4b;
  --exec-accent-soft: rgba(15, 90, 75, 0.08);
  --exec-warn: #9a6b1f;
  --exec-danger: #b42318;
  --exec-radius: 18px;
  --exec-radius-sm: 12px;
  --exec-shadow: 0 24px 64px rgba(8, 15, 30, 0.1), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
  --exec-shadow-soft: 0 14px 36px rgba(8, 15, 30, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;

  /* Motion */
  --tr-fast: 120ms ease;
  --tr-base: 180ms ease;
  --tr-slow: 260ms ease;

  /* Z-index */
  --z-base: 1;
  --z-sidebar: 40;
  --z-topbar: 50;
  --z-overlay: 120;
  --z-modal: 180;
  --z-toast: 220;

  /* Layout tokens */
  --sidebar-width: 212px;
  --sidebar-collapsed-width: 62px;
  --topbar-height: 56px;
  --content-max-width: 1360px;
}

.theme-dark {
  --bg-page: #0f131a;
  --bg-page-soft: #121722;
  --bg-surface: #171d27;
  --bg-surface-2: #1d2430;
  --bg-surface-3: #232c3a;

  --line-subtle: #293244;
  --line-mid: #36445c;
  --line-strong: #455778;

  --text-primary: #eef4ff;
  --text-secondary: #b5c2d8;
  --text-muted: #8fa0bb;
  --text-disabled: #70819d;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.36);
  --sh-2: 0 4px 12px rgba(0, 0, 0, 0.42);
  --sh-3: 0 10px 28px rgba(0, 0, 0, 0.5);
  --sh-4: 0 18px 42px rgba(0, 0, 0, 0.58);
}
