/* ==========================================================================
   Redalpine Operations Manual (ROM) - Design Tokens & Theming
   ========================================================================== */

:root {
  /* Brand Identity (Redalpine Swiss Venture Capital) */
  --brand-primary: #e11d48;
  --brand-primary-hover: #be123c;
  --brand-primary-light: rgba(225, 29, 72, 0.08);
  --brand-primary-glow: rgba(225, 29, 72, 0.25);
  --brand-accent: #0284c7;

  /* Neutrals & Surfaces - Light Mode (Default) */
  --bg-app: #f8fafc;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #334155;
  --text-sidebar: #cbd5e1;
  --text-sidebar-bright: #ffffff;
  
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f1f5f9;
  --bg-surface-elevated: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --text-inverted: #ffffff;

  /* Operational Priority Colors */
  --priority-critical: #e11d48;
  --priority-critical-bg: #ffe4e6;
  --priority-high: #f97316;
  --priority-high-bg: #ffedd5;
  --priority-medium: #3b82f6;
  --priority-medium-bg: #dbeafe;
  --priority-low: #64748b;
  --priority-low-bg: #f1f5f9;

  /* Status Colors */
  --status-success: #10b981;
  --status-success-bg: #d1fae5;
  --status-warning: #f59e0b;
  --status-warning-bg: #fef3c7;
  --status-danger: #ef4444;
  --status-danger-bg: #fee2e2;
  --status-info: #06b6d4;
  --status-info-bg: #cffafe;
  --status-purple: #8b5cf6;
  --status-purple-bg: #ede9fe;

  /* Learning Status Colors (SOPs & Systems) */
  --learning-not-learned: #ef4444;
  --learning-not-learned-bg: #fee2e2;
  --learning-shown: #f59e0b;
  --learning-shown-bg: #fef3c7;
  --learning-practising: #3b82f6;
  --learning-practising-bg: #dbeafe;
  --learning-confident: #10b981;
  --learning-confident-bg: #d1fae5;
  --learning-expert: #8b5cf6;
  --learning-expert-bg: #ede9fe;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, monospace;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(225, 29, 72, 0.2);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --bg-app: #090d16;
  --bg-sidebar: #060911;
  --bg-sidebar-hover: #111827;
  --bg-sidebar-active: #1f2937;
  --text-sidebar: #9ca3af;
  --text-sidebar-bright: #f3f4f6;

  --bg-surface: #0f172a;
  --bg-surface-subtle: #1e293b;
  --bg-surface-elevated: #1e293b;
  --border-subtle: #1e293b;
  --border-strong: #334155;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --priority-critical-bg: rgba(225, 29, 72, 0.2);
  --priority-high-bg: rgba(249, 115, 22, 0.2);
  --priority-medium-bg: rgba(59, 130, 246, 0.2);
  --priority-low-bg: rgba(100, 116, 139, 0.2);

  --status-success-bg: rgba(16, 185, 129, 0.2);
  --status-warning-bg: rgba(245, 158, 11, 0.2);
  --status-danger-bg: rgba(239, 68, 68, 0.2);
  --status-info-bg: rgba(6, 182, 212, 0.2);
  --status-purple-bg: rgba(139, 92, 246, 0.2);

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}
