/* ══════════════════════════════════════════════════════════════════
   RateFlow — Slate Indigo Light Admin Theme Tokens
   
   Override admin-theme.css Design Tokens for data-theme="light"
   
   Layered slate gray-blue base with Indigo accent.
   Brand unified with dark theme — same Indigo, opposite ground.
   ══════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {

  /* ═══ Brand Reference ═══ */
  --freightos-navy: #111827;
  --freightos-blue: #4f6ef7;
  --freightos-blue-light: #eef1ff;

  /* ═══ Colors — Background Layer System ═══ */
  --bg-primary: #f4f6f9;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #fafbfc;
  --bg-hover: #edf0f4;

  /* ═══ Colors — Border System ═══ */
  --border-subtle: #e5e7eb;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --border-hint: #f1f5f9;

  /* ═══ Colors — Text Hierarchy ═══ */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  /* ═══ Accent System — Indigo ═══ */
  --accent: #4f6ef7;
  --accent-light: #7c8ffa;
  --accent-dark: #3a4fd9;
  --accent-glow: rgba(79,110,247,0.12);

  /* ═══ Semantic Colors ═══ */
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;

  /* ═══ Gradients ═══ */
  --gradient-1: linear-gradient(135deg, #4f6ef7 0%, #3a4fd9 100%);
  --gradient-2: linear-gradient(135deg, #ff6b35 0%, #ff8855 100%);

  /* ═══ Shadows — Layered depth ═══ */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
  --shadow-glow: 0 0 40px rgba(79,110,247,0.06);

  /* ═══ Border Radius ═══ */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ═══ Transitions ═══ */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* ═══ Typography ═══ */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 13px;
  --font-size-lg: 14px;

  /* ═══ Select/Dropdown Visual System ═══ */
  --select-input-bg: #ffffff;
  --select-input-bg-focus: #ffffff;
  --select-input-border: #e5e7eb;
  --select-input-focus-border: var(--accent);
  --select-input-focus-shadow: 0 0 0 3px rgba(79,110,247,0.12);
  --select-input-color: #111827;
  --select-input-placeholder: #9ca3af;
  --select-input-height: 40px;
  --select-input-radius: var(--radius-md);

  /* BaseSelect.js token aliases */
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --input-border: #e5e7eb;
  --input-focus-border: var(--accent);
  --input-focus-shadow: 0 0 0 3px rgba(79,110,247,0.12);
  --input-color: #111827;
  --input-placeholder: #9ca3af;
  --input-height: 40px;
  --input-radius: var(--radius-md);

  /* Dropdown */
  --dropdown-bg: #ffffff;
  --dropdown-backdrop-blur: 0px;
  --dropdown-border: #e5e7eb;
  --dropdown-radius: var(--radius-md);
  --dropdown-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
  --dropdown-padding: 6px;

  /* Dropdown Options */
  --option-height: 36px;
  --option-color: #4b5563;
  --option-hover-bg: rgba(79,110,247,0.06);
  --option-selected-bg: rgba(79,110,247,0.1);
  --option-selected-color: #111827;
  --option-radius: var(--radius-sm);

  /* ═══ DatePicker Visual System ═══ */
  --date-quick-btn-bg: #f0f1f5;
  --date-quick-btn-border: #e5e7eb;
  --date-quick-btn-color: #4b5563;
  --date-quick-btn-hover-bg: var(--accent);
  --date-quick-btn-hover-color: #ffffff;
  --date-cell-hover-bg: rgba(79,110,247,0.1);
  --date-cell-selected-bg: var(--accent);
  --date-cell-today-color: var(--accent);
  --date-cell-today-border: var(--accent);
  --date-footer-btn-hover-border: #dc2626;
  --date-footer-btn-hover-color: #dc2626;
  --date-footer-btn-hover-bg: rgba(220,38,38,0.06);
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL OVERRIDES
   ══════════════════════════════════════════════════════════════════ */

html[data-theme="light"] {
  body {
    background: var(--bg-primary);
    color: var(--text-primary);
  }

  /* Scrollbar */
  ::-webkit-scrollbar-track {
    background: #f0f1f5;
  }
  ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
  }

  /* Selection */
  ::selection {
    background: rgba(79,110,247,0.15);
    color: #111827;
  }
}
