/* ==========================================================================
   AiALL Design System — CSS Custom Properties
   Folosește :root pentru light mode, [data-theme="dark"] pentru dark mode
   ========================================================================== */

:root {
  /* Brand colors */
  --brand-teal: #2D8B8E;
  --brand-navy: #1F4788;
  --brand-navy-2: #2A5899;
  --brand-navy-3: #4A90B5;

  /* Semantic colors */
  --semantic-amber: #d97706;
  --semantic-green: #16a34a;
  --semantic-red: #dc2626;

  /* Backgrounds — light mode default */
  --bg-page: #f5f6f7;
  --bg-card: #ffffff;
  --bg-subtle: #eef0f2;
  --bg-header: linear-gradient(135deg, #1F4788 0%, #2D8B8E 100%);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-on-brand: #ffffff;

  /* Borders */
  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-elevated: 0 10px 25px rgba(15, 23, 42, 0.10), 0 4px 10px rgba(15, 23, 42, 0.04);
  --shadow-focus: 0 0 0 3px rgba(45, 139, 142, 0.25);

  /* Typography */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --text-display: 32px;
  --text-h1: 24px;
  --text-h2: 20px;
  --text-h3: 16px;
  --text-body: 14px;
  --text-small: 12px;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-page: #0d1520;
  --bg-card: #1a2332;
  --bg-subtle: #11192b;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;

  --border-subtle: #1f2937;
  --border-default: #334155;
  --border-strong: #475569;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
}
