/* ============================================================
   DESIGN TOKENS — SmartHome Dashboard
   ============================================================ */

:root {
  /* ── Colors: Background ── */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2235;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --bg-surface-active: rgba(255, 255, 255, 0.12);

  /* ── Colors: Glass ── */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.15);

  /* ── Colors: Text ── */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --text-inverse: #0a0e17;

  /* ── Colors: Accent ── */
  --accent-orange: #ff6b35;
  --accent-orange-glow: rgba(255, 107, 53, 0.3);
  --accent-amber: #f7931e;
  --accent-blue: #4fc3f7;
  --accent-blue-deep: #0288d1;
  --accent-blue-glow: rgba(79, 195, 247, 0.3);
  --accent-green: #66bb6a;
  --accent-green-glow: rgba(102, 187, 106, 0.25);
  --accent-red: #ef5350;
  --accent-red-glow: rgba(239, 83, 80, 0.25);
  --accent-purple: #ab47bc;
  --accent-purple-glow: rgba(171, 71, 188, 0.25);
  --accent-yellow: #ffd54f;
  --accent-yellow-glow: rgba(255, 213, 79, 0.25);
  --accent-cyan: #26c6da;

  /* ── Gradients ── */
  --gradient-warm: linear-gradient(135deg, #ff6b35, #f7931e);
  --gradient-cool: linear-gradient(135deg, #4fc3f7, #0288d1);
  --gradient-success: linear-gradient(135deg, #66bb6a, #43a047);
  --gradient-danger: linear-gradient(135deg, #ef5350, #e53935);
  --gradient-purple: linear-gradient(135deg, #ab47bc, #7b1fa2);
  --gradient-surface: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --gradient-hero: linear-gradient(160deg, #0a0e17 0%, #111827 40%, #1a1a3e 100%);

  /* ── Spacing ── */
  --space-2xs: 0.25rem;   /* 4px */
  --space-xs: 0.5rem;     /* 8px */
  --space-sm: 0.75rem;    /* 12px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */

  /* ── Border Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ── Typography ── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-md: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow-orange: 0 0 20px rgba(255, 107, 53, 0.3);
  --shadow-glow-blue: 0 0 20px rgba(79, 195, 247, 0.3);
  --shadow-glow-green: 0 0 20px rgba(102, 187, 106, 0.3);
  --shadow-glow-red: 0 0 20px rgba(239, 83, 80, 0.3);

  /* ── Transitions ── */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-nav: 500;
  --z-modal: 1000;
  --z-toast: 1100;

  /* ── Layout ── */
  --nav-height: 64px;
  --nav-height-mobile: 72px;
  --sidebar-width: 280px;
  --max-content-width: 1200px;
}
