/* ============================================================
   ENEXA — Design Tokens v2.0
   Brand Identity — Energy + Engineering
   ============================================================ */

:root {

  /* ──────────────────────────────
     COLOR — BRAND
  ────────────────────────────── */

  --color-system-deep:    #0C1B33;   /* Primary brand / dark backgrounds */
  --color-signal-blue:    #2356C8;   /* Engineering / action / CTA */
  --color-energy-teal:    #00C2A0;   /* The synthesis: energy meets tech */
  --color-electric-amber: #F59E0B;   /* Energy-context only: charge levels, power metrics */

  /* ──────────────────────────────
     COLOR — NEUTRAL
  ────────────────────────────── */

  --color-surface:        #F4F6F9;
  --color-border:         #E2E8F0;
  --color-text-secondary: #64748B;
  --color-text-muted:     #94A3B8;
  --color-white:          #FFFFFF;

  /* ──────────────────────────────
     COLOR — SEMANTIC
  ────────────────────────────── */

  --color-online:         #00C2A0;   /* Teal = active, connected, healthy */
  --color-charging:       #2356C8;   /* Blue = in progress / charging session */
  --color-warning:        #F59E0B;   /* Amber = energy warning / offline station */
  --color-error:          #EF4444;   /* Red = system error / fault */

  /* Status badge system */
  --badge-online-bg:      rgba(0, 194, 160, 0.12);
  --badge-online-text:    #00C2A0;
  --badge-charging-bg:    rgba(35, 86, 200, 0.12);
  --badge-charging-text:  #2356C8;
  --badge-warning-bg:     rgba(245, 158, 11, 0.12);
  --badge-warning-text:   #F59E0B;
  --badge-error-bg:       rgba(239, 68, 68, 0.12);
  --badge-error-text:     #EF4444;
  --badge-offline-bg:     #E2E8F0;
  --badge-offline-text:   #64748B;

  /* ──────────────────────────────
     TYPOGRAPHY
  ────────────────────────────── */

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --text-display: 4rem;
  --text-h1:      3rem;
  --text-h2:      2rem;
  --text-h3:      1.5rem;
  --text-h4:      1.125rem;
  --text-body-l:  1.125rem;
  --text-body-m:  1rem;
  --text-body-s:  0.875rem;
  --text-label:   0.75rem;

  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-caps:   +0.08em;

  /* ──────────────────────────────
     SPACING (8px base unit)
  ────────────────────────────── */

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ──────────────────────────────
     BORDER RADIUS
  ────────────────────────────── */

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-full: 9999px;

  /* ──────────────────────────────
     SHADOWS (elevation only — not decorative)
  ────────────────────────────── */

  --shadow-sm: 0 1px 3px rgba(12, 27, 51, 0.08), 0 1px 2px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 27, 51, 0.10), 0 2px 4px rgba(12, 27, 51, 0.06);
  --shadow-lg: 0 16px 40px rgba(12, 27, 51, 0.14), 0 4px 8px rgba(12, 27, 51, 0.06);

  /* ──────────────────────────────
     TRANSITIONS
  ────────────────────────────── */

  --transition-fast:   120ms ease;
  --transition-normal: 200ms ease;
  --transition-slow:   320ms ease;

  /* ──────────────────────────────
     LAYOUT
  ────────────────────────────── */

  --container-max: 1200px;
  --content-max:    760px;
  --sidebar-width:  240px;

}

/* ──────────────────────────────
   DARK MODE
────────────────────────────── */

.dark, [data-theme="dark"] {
  --color-surface:        #0C1B33;
  --color-border:         rgba(255, 255, 255, 0.08);
  --color-text-secondary: #94A3B8;
  --color-text-muted:     #64748B;
}

/* ──────────────────────────────
   BASE STYLES
────────────────────────────── */

body {
  font-family: var(--font-body);
  font-size: var(--text-body-m);
  line-height: var(--leading-relaxed);
  color: var(--color-system-deep);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-style: normal;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-system-deep);
}

.label-caps {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: var(--text-label);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
