/* ==========================================================================
   Avezz Design System — Semantic Tokens (Light & Dark SSOT)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-muted: #f2f2f4;
  --surface-alt: #f2f3f5;
  --surface-hover: #ebebef;

  /* Borders */
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);

  /* Typography */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #65676b;
  --text-tertiary: #86868b;

  /* Brand & Semantic Accents */
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-ring: rgba(0, 113, 227, 0.24);

  --positive: #15803d;
  --positive-bg: rgba(21, 128, 61, 0.1);
  --pending: #b45309;
  --pending-bg: rgba(180, 83, 9, 0.1);
  --negative: #d70015;
  --negative-hover: #bf0013;
  --negative-bg: rgba(215, 0, 21, 0.09);
  --star: #f59e0b;

  /* Controls */
  --pill-active-bg: #1d1d1f;
  --pill-active-text: #ffffff;
  --badge-bg: #e41e3f;
  --badge-text: #ffffff;
  --segment-bg: rgba(118, 118, 128, 0.12);
  --segment-active: #ffffff;
  --segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
  --switch-off: rgba(120, 120, 128, 0.28);
  --switch-on: #34c759;

  /* Elevation */
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.03);
  --shadow-popover: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.2);

  /* Radii */
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius: 12px;
  --radius-md: 11px;
  --radius-sm: 8px;

  /* Layout & Navigation Metrics */
  --page-max: 1120px;
  --nav-max: 960px;
  --primary-h: 59px;
  --nav-h: 112px;

  /* Z-Index Layers */
  --z-dropdown: 25;
  --z-tooltip: 30;
  --z-nav: 40;
  --z-nav-sheet: 45;
  --z-modal: 60;
  --z-toast: 70;
}

[data-theme="dark"] {
  --bg: #0b0b0d;
  --surface: #161618;
  --surface-subtle: #1c1c1f;
  --surface-muted: #222226;
  --surface-alt: #242428;
  --surface-hover: #2a2a2f;

  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #a1a1aa;
  --text-tertiary: #6e6e73;

  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-soft: rgba(41, 151, 255, 0.15);
  --accent-ring: rgba(41, 151, 255, 0.3);

  --positive: #30d158;
  --positive-bg: rgba(48, 209, 88, 0.13);
  --pending: #ffd60a;
  --pending-bg: rgba(255, 214, 10, 0.13);
  --negative: #ff453a;
  --negative-hover: #ff5e54;
  --negative-bg: rgba(255, 69, 58, 0.14);

  --pill-active-bg: #f5f5f7;
  --pill-active-text: #0b0b0d;
  --segment-bg: rgba(255, 255, 255, 0.08);
  --segment-active: #2c2c30;
  --segment-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --switch-off: rgba(120, 120, 128, 0.38);
  --switch-on: #30d158;

  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.32), 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-popover: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-modal: 0 28px 70px rgba(0, 0, 0, 0.7);
}
