/* ============================================================
   RMMS Design System — Professional Industrial Theme
   Deep Slate Navy + Teal/Emerald Accent
   ============================================================ */

:root {
  /* ── Primary Brand Colors (Teal/Emerald — Industrial) ── */
  --primary: #5eead4;
  --primary-container: #0d9488;
  --on-primary: #003731;
  --on-primary-container: #002e28;
  --inverse-primary: #006b60;
  --primary-fixed: #99f6e4;
  --primary-fixed-dim: #5eead4;

  /* ── Secondary Colors (Cool Slate) ── */
  --secondary: #b0c4d8;
  --secondary-container: #374b60;
  --on-secondary: #1e3248;
  --on-secondary-container: #a0b6cc;

  /* ── Tertiary Colors (Muted Blue-Grey) ── */
  --tertiary: #a8b8d0;
  --tertiary-container: #7b8a9e;
  --on-tertiary: #1e2c42;
  --on-tertiary-container: #1a2436;

  /* ── Surface / Background Colors (Deep Slate Navy) ── */
  --background: #0c1220;
  --on-background: #d1dbe8;
  --surface: #0c1220;
  --surface-dim: #0c1220;
  --surface-bright: #253242;
  --surface-container-lowest: #070c16;
  --surface-container-low: #111926;
  --surface-container: #161f2e;
  --surface-container-high: #1e2838;
  --surface-container-highest: #273344;
  --on-surface: #d1dbe8;
  --on-surface-variant: #94a3b8;
  --surface-variant: #273344;
  --surface-tint: #5eead4;
  --inverse-surface: #d1dbe8;
  --inverse-on-surface: #1a2736;

  /* ── Error Colors ── */
  --error: #fca5a5;
  --error-container: #7f1d1d;
  --on-error: #450a0a;
  --on-error-container: #fecaca;

  /* ── Outline / Border Colors ── */
  --outline: #64748b;
  --outline-variant: #334155;

  /* ── Functional Status Colors ── */
  --success: #4ade80;
  --success-dim: rgba(74, 222, 128, 0.12);
  --success-text: #166534;
  --warning: #fbbf24;
  --warning-dim: rgba(251, 191, 36, 0.12);
  --warning-text: #92400e;
  --info: #60a5fa;
  --info-dim: rgba(96, 165, 250, 0.12);

  /* ── Elevation Tonal Layers ── */
  --elevation-0: #0f1624;
  --elevation-1: #172032;
  --elevation-2: #1e293b;

  /* ── Typography — Font Families ── */
  --font-headline: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Typography — Headline Sizes ── */
  --headline-lg-size: 30px;
  --headline-lg-weight: 600;
  --headline-lg-line: 38px;
  --headline-lg-spacing: -0.02em;

  --headline-md-size: 24px;
  --headline-md-weight: 600;
  --headline-md-line: 32px;
  --headline-md-spacing: -0.01em;

  --headline-sm-size: 20px;
  --headline-sm-weight: 500;
  --headline-sm-line: 28px;

  --headline-lg-mobile-size: 24px;
  --headline-lg-mobile-weight: 600;
  --headline-lg-mobile-line: 32px;

  /* ── Typography — Body Sizes ── */
  --body-lg-size: 16px;
  --body-lg-weight: 400;
  --body-lg-line: 24px;

  --body-md-size: 14px;
  --body-md-weight: 400;
  --body-md-line: 20px;

  --body-sm-size: 12px;
  --body-sm-weight: 400;
  --body-sm-line: 16px;

  /* ── Typography — Label Sizes ── */
  --label-md-size: 12px;
  --label-md-weight: 600;
  --label-md-line: 16px;
  --label-md-spacing: 0.05em;

  --label-sm-size: 11px;
  --label-sm-weight: 500;
  --label-sm-line: 14px;

  /* ── Spacing (4px baseline) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ── Layout ── */
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --header-height: 64px;
  --bottombar-height: 64px;
  --container-max: 1440px;
  --gutter: 16px;
  --margin-mobile: 16px;
  --margin-desktop: 24px;

  /* ── Shapes / Radius ── */
  --radius-xs: 0.125rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  /* ── Shadows (Tinted, not pure black) ── */
  --shadow-sm: 0 1px 3px rgba(3, 20, 39, 0.4);
  --shadow-md: 0 4px 12px rgba(3, 20, 39, 0.5);
  --shadow-lg: 0 12px 32px rgba(3, 20, 39, 0.6);
  --shadow-glow: 0 0 20px rgba(13, 148, 136, 0.2);

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ── Z-Index Scale ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidebar: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
}
