/* ============================================
   tokens.css — Design Tokens
   Single source of truth voor het visuele systeem.
   Alle waarden als CSS custom properties op :root.
   ============================================ */

:root {
  /* --- Kleuren: Brand --- */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5a87;
  --color-primary-hover: #0f172a;
  --color-on-primary: #ffffff;

  /* --- Kleuren: Interactive --- */
  --color-link: #0369a1;
  --color-link-hover: #2563eb;
  --color-accent: #3b82f6;
  --color-focus-ring: rgba(45, 90, 135, 0.2);

  /* --- Kleuren: Semantic --- */
  --color-error: #dc2626;
  --color-error-light: #fef2f2;
  --color-success: #16a34a;
  --color-success-light: #f0fdf4;
  --color-warning: #d97706;
  --color-warning-light: #fffbeb;
  --color-info: #2563eb;
  --color-info-light: #eff6ff;

  /* --- Kleuren: Neutrals (Slate schaal) --- */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-tertiary: #64748b;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #ffffff;

  --color-border: #e2e8f0;
  --color-border-light: #e8edf3;
  --color-border-strong: #cbd5e1;

  --color-bg-page: #f5f7fa;
  --color-bg-surface: #ffffff;
  --color-bg-surface-alt: #f8fafc;
  --color-bg-subtle: #f1f5f9;
  --color-bg-hover: #f0f4f8;
  --color-bg-selected: #e8f4fd;
  --color-bg-overlay: rgba(0, 0, 0, 0.5);

  /* --- Typography: Font families --- */
  --font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
  /* --- Typography: Font sizes (rem voor schaalbaarheid) --- */
  --font-size-xs: 0.6875rem; /* 11px */
  --font-size-sm: 0.75rem; /* 12px */
  --font-size-md: 0.8125rem; /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-lg: 0.9375rem; /* 15px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */

  /* --- Typography: Font weights --- */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --- Typography: Line heights --- */
  --line-height-tight: 1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* --- Spacing (4px grid) --- */
  --spacing-2xs: 0.125rem; /* 2px */
  --spacing-xs: 0.25rem; /* 4px */
  --spacing-sm: 0.5rem; /* 8px */
  --spacing-md: 0.75rem; /* 12px */
  --spacing-lg: 1rem; /* 16px */
  --spacing-xl: 1.5rem; /* 24px */
  --spacing-2xl: 2.5rem; /* 40px */
  /* --- Border radius --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-sidebar: 2px 0 8px rgba(0, 0, 0, 0.05);

  /* --- Transitions --- */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* --- Z-index schaal --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-notification: 500;
  --z-tooltip: 600;
}

/* Dark theme overrides are now in styles/themes/color/ CSS files.
   Loaded dynamically by the theme-loader via <link> tags. */
