/* ================================================
   NSecurity Design System - CSS Variables
   Ministry of National Security of Ghana
   ================================================ */

:root {
  /* ========== Ghana National Colors ========== */
  --ghana-red: #CE1126;
  --ghana-gold: #FCD116;
  --ghana-green: #006B3F;
  --ghana-black: #000000;

  /* ========== Primary Color Palette ========== */
  --primary-900: #0a0f1a;
  --primary-800: #111827;
  --primary-700: #1f2937;
  --primary-600: #374151;
  --primary-500: #4b5563;
  --primary-400: #6b7280;
  --primary-300: #9ca3af;
  --primary-200: #d1d5db;
  --primary-100: #e5e7eb;
  --primary-50: #f9fafb;

  /* ========== Accent Colors ========== */
  --accent-gold: #FCD116;
  --accent-gold-dark: #d4a900;
  --accent-gold-light: #ffe066;
  
  --accent-red: #CE1126;
  --accent-red-dark: #a30d1e;
  --accent-red-light: #ff4757;

  --accent-green: #006B3F;
  --accent-green-dark: #004d2d;
  --accent-green-light: #00a65a;

  /* ========== Semantic Colors ========== */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);

  /* ========== Intelligence Module Colors ========== */
  --intel-cyan: #06b6d4;
  --intel-cyan-glow: rgba(6, 182, 212, 0.3);
  --intel-purple: #8b5cf6;
  --intel-purple-glow: rgba(139, 92, 246, 0.3);
  --intel-orange: #f97316;
  --intel-orange-glow: rgba(249, 115, 22, 0.3);

  /* ========== Risk Level Colors ========== */
  --risk-critical: #dc2626;
  --risk-high: #ea580c;
  --risk-medium: #eab308;
  --risk-low: #22c55e;
  --risk-none: #6b7280;

  /* ========== Background Colors ========== */
  --bg-base: #0a0f1a;
  --bg-surface: #111827;
  --bg-elevated: #1f2937;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-card: #1a2332;
  --bg-card-hover: #243044;
  --bg-input: #0d1421;

  /* ========== Border Colors ========== */
  --border-default: #2d3748;
  --border-light: #374151;
  --border-focus: var(--accent-gold);
  --border-danger: var(--danger);

  /* ========== Text Colors ========== */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #111827;

  /* ========== Typography ========== */
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font Sizes */
  --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;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* ========== Spacing ========== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* ========== Border Radius ========== */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* ========== Shadows ========== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
  --shadow-glow-gold: 0 0 20px rgba(252, 209, 22, 0.3);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.3);
  --shadow-glow-red: 0 0 20px rgba(206, 17, 38, 0.3);

  /* ========== Layout ========== */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --header-height: 64px;
  --content-max-width: 1600px;

  /* ========== Transitions ========== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-slower: 500ms ease;

  /* ========== Z-Index Scale ========== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
}

/* ========== Dark Theme (Default) ========== */
[data-theme="dark"] {
  --bg-base: #0a0f1a;
  --bg-surface: #111827;
  --bg-elevated: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
}

/* ========== Light Theme ========== */
[data-theme="light"] {
  --bg-base: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --text-primary: #1a1a2e;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-inverse: #ffffff;
  --border-default: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-glow-gold: 0 0 20px rgba(252, 209, 22, 0.2);
  --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.2);
  --intel-cyan-glow: rgba(6, 182, 212, 0.15);
  --intel-purple-glow: rgba(139, 92, 246, 0.15);
  --intel-orange-glow: rgba(249, 115, 22, 0.15);
}
