:root {
  /* Primary Brand Colors */
  --color-primary: #3b82f6; /* Modern Blue */
  --color-primary-hover: #2563eb;
  --color-primary-soft: rgba(59, 130, 246, 0.1);
  --color-accent: #8b5cf6; /* Violet */
  --color-accent-soft: rgba(139, 92, 246, 0.1);

  /* Neutral Colors (Light Mode) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;       /* Hover/zebra/inactive bg */
  --bg-elevated: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-soft: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.12);
  --color-error: #ef4444;
  --color-error-soft: rgba(239, 68, 68, 0.1);
  --color-info: #0ea5e9;
  --color-info-soft: rgba(14, 165, 233, 0.1);

  /* Spacing & Layout */
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -1px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.04);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, monospace;
}

/* Dark Mode Overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-subtle: #273345;
    --bg-elevated: #283449;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --border-color: #334155;
    --border-strong: #475569;
    --color-primary-soft: rgba(59, 130, 246, 0.18);
    --color-accent-soft: rgba(139, 92, 246, 0.18);
    --color-success-soft: rgba(16, 185, 129, 0.18);
    --color-warning-soft: rgba(245, 158, 11, 0.18);
    --color-error-soft: rgba(239, 68, 68, 0.18);
    --color-info-soft: rgba(14, 165, 233, 0.18);
  }
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--text-main);
}
