/* Design tokens — PartnerPanel */
/* All values are consumed by other CSS files.
 * Hard-coded colors/sizes are NOT allowed outside this file. */

:root {
  /* Native controls (select popups, scrollbars) follow the theme. */
  color-scheme: light;

  /* Primary scale (indigo) — HSL */
  --color-primary-50:  239 84% 96%;
  --color-primary-100: 239 84% 93%;
  --color-primary-200: 239 84% 86%;
  --color-primary-300: 239 84% 77%;
  --color-primary-400: 239 84% 70%;
  --color-primary-500: 239 84% 67%;
  --color-primary-600: 243 75% 59%;
  --color-primary-700: 239 84% 51%;
  --color-primary-800: 239 84% 44%;
  --color-primary-900: 239 84% 38%;

  /* Accent scale (cyan/teal) — HSL */
  --color-accent-50:  188 84% 95%;
  --color-accent-100: 188 84% 90%;
  --color-accent-200: 188 84% 80%;
  --color-accent-300: 188 84% 70%;
  --color-accent-400: 188 84% 60%;
  --color-accent-500: 187 92% 55%;
  --color-accent-600: 188 84% 48%;
  --color-accent-700: 188 84% 42%;
  --color-accent-800: 188 84% 36%;
  --color-accent-900: 188 84% 30%;

  /* Neutral scale — HSL */
  --color-neutral-0:   220 13% 98%;
  --color-neutral-50:  220 13% 94%;
  --color-neutral-100: 220 13% 88%;
  --color-neutral-200: 220 13% 80%;
  --color-neutral-300: 220 13% 70%;
  --color-neutral-400: 220 13% 58%;
  --color-neutral-500: 220 13% 48%;
  --color-neutral-600: 220 13% 40%;
  --color-neutral-700: 220 13% 32%;
  --color-neutral-800: 220 13% 24%;
  --color-neutral-900: 220 13% 16%;
  --color-neutral-1000: 220 13% 10%;

  /* Semantic (base overrides by theme) */
  --color-success:   152 76% 42%;
  --color-warning:   38 92% 50%;
  --color-danger:    0 84% 60%;
  --color-info:      212 100% 45%;

  /* Semantic surfaces (light) */
  --bg-app: #f6f7fb;
  --bg-app-accent:
    radial-gradient(1200px 600px at 100% 0%, rgba(99,102,241,0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(6,182,212,0.08), transparent 55%);
  --bg-surface: #ffffff;
  --bg-elevated: #f2f4f9;
  --bg-hover: #eef0f6;

  --border-subtle: #e6e8ef;
  --border-strong: #d0d4e0;

  --text-primary: #0f172a;
  --text-secondary: #475069;
  --text-muted: #7a839a;
  --text-on-primary: #ffffff;

  /* Typography */
  --font-sans: 'Vazirmatn', system-ui, Tahoma, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 20px;
  --text-2xl: 26px;
  --text-3xl: 32px;

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

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.08);

  /* Z-index */
  --z-sidebar: 40;
  --z-topbar: 50;
  --z-dropdown: 60;
  --z-modal: 100;

  /* Transitions */
  --transition-fast: 120ms ease;
  --transition-base: 220ms ease;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg-app: #0b1020;
  --bg-app-accent: radial-gradient(1200px 600px at 100% 0%, rgba(99,102,241,0.18), transparent 60%),
                   radial-gradient(900px 500px at 0% 100%, rgba(6,182,212,0.12), transparent 55%);
  --bg-surface: #121832;
  --bg-elevated: #1a2140;
  --bg-hover: #1f2750;
  --border-subtle: #232a4d;
  --border-strong: #2e3866;
  --text-primary: #eef1ff;
  --text-secondary: #a9b1d6;
  --text-muted: #6f78a3;
  --text-on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
}

