/* ============================================================
 * Design Tokens
 * Single source of truth for colors, spacing, typography.
 * Aligned with Formance Cloud dark theme.
 * ============================================================ */

:root {
  /* Palette - neutral */
  --bg-base: #0a0e17;
  --bg-elevated: rgba(15, 23, 42, 0.7);
  --bg-elevated-strong: rgba(15, 23, 42, 0.95);
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-input: rgba(30, 41, 59, 0.6);
  --bg-input-focus: rgba(30, 41, 59, 0.9);
  --bg-hover: rgba(71, 85, 105, 0.6);

  /* Palette - text */
  --text-primary: #f1f5f9;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-disabled: #475569;

  /* Palette - borders */
  --border-subtle: rgba(51, 65, 85, 0.3);
  --border-default: rgba(51, 65, 85, 0.5);
  --border-strong: rgba(71, 85, 105, 0.6);
  --border-focus: rgba(59, 130, 246, 0.6);

  /* Palette - brand */
  --brand-blue: #3b82f6;
  --brand-violet: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));

  /* Palette - semantic */
  --color-success: #22c55e;
  --color-success-soft: rgba(34, 197, 94, 0.15);
  --color-success-strong: rgba(34, 197, 94, 0.3);
  --color-success-text: #4ade80;

  --color-warning: #fbbf24;
  --color-warning-soft: rgba(251, 191, 36, 0.15);
  --color-warning-strong: rgba(251, 191, 36, 0.3);
  --color-warning-text: #fcd34d;

  --color-danger: #ef4444;
  --color-danger-soft: rgba(239, 68, 68, 0.12);
  --color-danger-strong: rgba(239, 68, 68, 0.3);
  --color-danger-text: #f87171;

  --color-info: #60a5fa;
  --color-info-soft: rgba(59, 130, 246, 0.12);
  --color-info-strong: rgba(59, 130, 246, 0.3);

  --color-purple: #a855f7;
  --color-purple-soft: rgba(168, 85, 247, 0.15);
  --color-purple-strong: rgba(168, 85, 247, 0.3);
  --color-purple-text: #c4b5fd;

  --color-orange: #f97316;
  --color-orange-soft: rgba(249, 115, 22, 0.15);
  --color-orange-strong: rgba(249, 115, 22, 0.3);
  --color-orange-text: #fdba74;

  /* Typography */
  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Monaco, 'Fira Code', monospace;

  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.1rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;

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

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  /* Shadows */
  --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 25px 50px -12px rgba(0, 0, 0, 0.6);
  --shadow-brand: 0 4px 12px rgba(59, 130, 246, 0.3);

  /* Layout */
  --control-height: 34px;
  --control-height-sm: 28px;
  --topbar-height: 64px;
  --content-max-width: 1800px;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
}
