/* РОПобот UX v2 — Design Tokens */
/* Light = default. Dark via [data-theme="dark"] */

:root {
  /* Colors — Light */
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F8FAFC;
  --color-bg-muted: #F1F5F9;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-text-disabled: #94A3B8;
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-subtle: #EFF6FF;
  --color-gradient-start: #FFFFFF;
  --color-gradient-end: #F0F7FF;
  --color-success: #16A34A;
  --color-warning: #D97706;
  --color-danger: #DC2626;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* Spacing (8px grid) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --grid-max: 1280px;
  --sidebar-w: 260px;
  --header-h: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

[data-theme="dark"] {
  --color-bg: #0F172A;
  --color-bg-subtle: #1E293B;
  --color-bg-muted: #334155;
  --color-surface: #1E293B;
  --color-border: #334155;
  --color-border-strong: #475569;
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --color-text-disabled: #64748B;
  --color-primary: #3B82F6;
  --color-primary-hover: #60A5FA;
  --color-primary-subtle: #1E3A5F;
  --color-gradient-start: #0F172A;
  --color-gradient-end: #172554;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
}
