/* Centralized design tokens — RoyalBlue primary, Light & Dark themes */

:root,
[data-theme="light"] {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-surface-subtle: #eef0f4;
  --color-surface-hover: #e5e8ef;
  --color-text: #181c24;
  --color-text-secondary: #535c6b;
  --color-text-muted: #768091;
  --color-divider: #e1e5ec;

  --color-primary: #4169e1;
  --color-primary-hover: #3357c4;
  --color-primary-soft: #e9effd;
  --color-primary-text: #ffffff;

  --color-success: #1b7a43;
  --color-success-soft: #e6f4ec;
  --color-warning: #9a6700;
  --color-warning-soft: #fdf4e3;
  --color-danger: #c62828;
  --color-danger-soft: #fdecec;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #c5ccd8;
  --scrollbar-thumb-hover: #9aa4b5;
}

[data-theme="dark"] {
  --color-bg: #12151a;
  --color-surface: #1b1f27;
  --color-surface-subtle: #242a34;
  --color-surface-hover: #2d3441;
  --color-text: #eef1f6;
  --color-text-secondary: #a8b1c0;
  --color-text-muted: #7b8596;
  --color-divider: #2c3340;

  --color-primary: #5b7ff0;
  --color-primary-hover: #4169e1;
  --color-primary-soft: #1f2b48;
  --color-primary-text: #ffffff;

  --color-success: #4cc37b;
  --color-success-soft: #183224;
  --color-warning: #e0b04b;
  --color-warning-soft: #352a16;
  --color-danger: #ef6b6b;
  --color-danger-soft: #3a1d20;

  --scrollbar-track: transparent;
  --scrollbar-thumb: #394252;
  --scrollbar-thumb-hover: #4e5a6f;
}
