/* ==========================================================================
   SSK INNOVATIONS - DESIGN SYSTEM & THEME TOKENS
   ========================================================================== */

:root, [data-theme="light"] {
  /* --------------------------------------------------
     60% DOMINANT (Base / Background Canvas)
     -------------------------------------------------- */
  --bg-body: #f8fafc;
  --bg-backdrop: #f1f5f9;

  /* --------------------------------------------------
     30% STRUCTURAL & SECONDARY (Cards, Nav, Text, Borders)
     -------------------------------------------------- */
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);
  --bg-alt: #f1f5f9;
  --bg-muted: #e2e8f0;

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

  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0284c7;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #cbd5e1;

  /* --------------------------------------------------
     10% ACCENT (CTAs, Badges, Glows, Focus Focal Points)
     -------------------------------------------------- */
  --primary: #0284c7;         /* Sky Blue Tech Accent */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);

  --accent-orange: #f59e0b;   /* Engineering Gold Accent */
  --accent-orange-hover: #d97706;
  --accent-orange-light: #fef3c7;

  --success: #10b981;
  --danger: #ef4444;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.2);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --header-height: 76px;
  --container-max-width: 1280px;
}

[data-theme="dark"] {
  /* --------------------------------------------------
     60% DOMINANT (Base / Background Canvas)
     -------------------------------------------------- */
  --bg-body: #0a0f1d;
  --bg-backdrop: #060913;

  /* --------------------------------------------------
     30% STRUCTURAL & SECONDARY (Cards, Nav, Text, Borders)
     -------------------------------------------------- */
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-surface-glass: rgba(17, 24, 39, 0.88);
  --bg-alt: #162032;
  --bg-muted: #243048;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #090d16;

  --border-color: #1e293b;
  --border-light: #334155;
  --border-focus: #38bdf8;
  --card-bg: #111827;
  --card-border: #1e293b;
  --card-hover-border: #334155;

  /* --------------------------------------------------
     10% ACCENT (CTAs, Badges, Glows, Focus Focal Points)
     -------------------------------------------------- */
  --primary: #38bdf8;         /* Sky Blue Tech Accent */
  --primary-hover: #0284c7;
  --primary-light: rgba(56, 189, 248, 0.15);
  --primary-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);

  --accent-orange: #fbbf24;   /* Engineering Gold Accent */
  --accent-orange-hover: #f59e0b;
  --accent-orange-light: rgba(251, 191, 36, 0.15);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   FORM CONTROLS & DROPDOWN ACCESSIBILITY (DARK / LIGHT THEME SUPPORT)
   ========================================================================== */
select, .form-select, .auth-select, .flow-select, .sel {
  color-scheme: light;
}

[data-theme="dark"] select,
[data-theme="dark"] .form-select,
[data-theme="dark"] .auth-select,
[data-theme="dark"] .flow-select,
[data-theme="dark"] .sel,
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  color-scheme: dark;
}

select option,
.form-select option,
.auth-select option,
.flow-select option,
.sel option {
  background-color: var(--bg-surface-elevated, #1e293b);
  color: var(--text-primary, #f8fafc);
}

[data-theme="light"] select option,
[data-theme="light"] .form-select option,
[data-theme="light"] .auth-select option,
[data-theme="light"] .flow-select option,
[data-theme="light"] .sel option {
  background-color: #ffffff;
  color: #0f172a;
}
