﻿/* ==========================================================================
   BRANCH VM AUDIT THEME TOKENS
   ========================================================================== */

:root {
  --font-sans-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans-ar: 'Cairo', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

  --sidebar-width: 250px;
  --header-height: 65px;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  --z-sidebar: 100;
  --z-header: 90;
  --z-modal-backdrop: 500;
  --z-modal: 600;
  --z-toast: 1000;
}

/* Dark Theme */
[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: dark;

  --bg-app: #080d1a;
  --bg-sidebar: #0e1526;
  --bg-header: rgba(14, 21, 38, 0.85);
  --bg-surface: #131c33;
  --bg-surface-elevated: #1a2745;
  --bg-surface-hover: #223359;
  --bg-input: #0a1020;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-active: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080d1a;

  --primary: #38bdf8;
  --primary-hover: #7dd3fc;
  --primary-surface: rgba(56, 189, 248, 0.12);

  --status-pass: #10b981;
  --status-pass-surface: rgba(16, 185, 129, 0.12);
  --status-warn: #f59e0b;
  --status-warn-surface: rgba(245, 158, 11, 0.12);
  --status-fail: #ef4444;
  --status-fail-surface: rgba(239, 68, 68, 0.12);

  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

/* Light Theme */
[data-theme="light"] {
  color-scheme: light;

  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.16);
  --border-active: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-surface: rgba(2, 132, 199, 0.08);

  --status-pass: #059669;
  --status-pass-surface: rgba(5, 150, 105, 0.08);
  --status-warn: #d97706;
  --status-warn-surface: rgba(217, 119, 6, 0.08);
  --status-fail: #dc2626;
  --status-fail-surface: rgba(220, 38, 38, 0.08);

  --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}
