/* ==========================================================================
   UBI Data Visualizer Studio - Theme Tokens
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: rgba(22, 27, 34, 0.85);
  --bg-card-hover: rgba(33, 38, 45, 0.95);
  --bg-glass: rgba(13, 17, 23, 0.75);
  --bg-input: #0b0e14;
  --bg-input-focus: #121820;

  --border-color: rgba(240, 246, 252, 0.1);
  --border-subtle: rgba(240, 246, 252, 0.06);
  --border-focus: #58a6ff;

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --text-inverse: #0d1117;

  /* Accent Colors (CTU Blue + Vibrant Modern) */
  --accent-primary: #0065bd;        /* CTU Primary Blue */
  --accent-primary-hover: #1976d2;
  --accent-cyan: #00b4d8;
  --accent-success: #2ea043;
  --accent-success-hover: #3fb950;
  --accent-warning: #d29922;
  --accent-danger: #f85149;
  --accent-purple: #a371f7;
  --accent-coral: #ff7b72;

  --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 24px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 16px rgba(0, 101, 189, 0.4);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-heading: 'Inter', sans-serif;

  /* Sizing & Transitions */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.35s ease;

  --sidebar-width: 380px;
  --header-height: 56px;
  --drawer-height: 280px;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f6f8fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #eaeef2;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;

  --border-color: rgba(27, 31, 36, 0.15);
  --border-subtle: rgba(27, 31, 36, 0.08);
  --border-focus: #0969da;

  --text-primary: #1f2328;
  --text-secondary: #59636e;
  --text-muted: #8c959f;
  --text-inverse: #ffffff;

  --accent-primary: #0065bd;
  --accent-primary-hover: #005096;
  --accent-cyan: #0096c7;
  --accent-success: #1a7f37;
  --accent-success-hover: #2da44e;
  --accent-warning: #9a6700;
  --accent-danger: #cf222e;
  --accent-purple: #8250df;
  --accent-coral: #d13d32;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 16px rgba(0, 101, 189, 0.2);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
