/* ============================================================
   al-variables.css — Canonical Design Tokens for Automation Lab
   Consolidated from globals.css + dark-theme.module.css
   Load FIRST before all other al-*.css files
   ============================================================ */

/* === INTER TIGHT FONT FACE === */
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight/InterTight-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/inter-tight/InterTight-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root,
[data-theme="light"] {
  --background: #ffffff;
  --foreground: #171717;
  --muted: #6b7280;
  --card: rgba(0, 0, 0, 0.04);
  --card-strong: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.1);
  --accent-blue: #4f9cff;
  --accent-cyan: #4ee4f6;
  --accent-green: #5ef0a6;
  --accent-yellow: #ffd166;
  --accent-pink: #ff6ec7;
  --accent-purple: #703a8b;
  --accent-red: #ff6b6b;
  --accent-teal: #2dd4bf;
}

[data-theme="dark"] {
  --background: #07111f;
  --foreground: #f7fbff;
  --muted: #aebbd0;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.14);
  --bg: #07111f;
  --bg-2: #0d1b2f;
  --text: #f7fbff;
  --blue: #4f9cff;
  --cyan: #4ee4f6;
  --green: #5ef0a6;
  --yellow: #ffd166;
  --pink: #ff6ec7;
  --purple: #703a8b;
  --red: #ff6b6b;
  --teal: #2dd4bf;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

/* Dark gradient background for pages without .al-dark-theme class (e.g. Filament admin) */
html.dark body,
.dark body,
[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(79, 156, 255, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 18%, rgba(255, 110, 199, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 55% 80%, rgba(78, 231, 240, 0.16) 0%, transparent 50%),
    linear-gradient(135deg, #07111f 0%, #0d1b2f 100%);
  background-attachment: fixed;
}

:root {
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
}
