/* Design tokens matching Locust's MUI theme (#15803d primary, #00C853 success) */
:root {
  --color-primary: #15803d;
  --color-primary-hover: #166534;
  --color-primary-contrast: #ffffff;
  --color-success: #00c853;
  --color-success-dark: #00a844;
  --color-secondary: #7c3aed;
  --color-secondary-hover: #6d28d9;
  --color-warning: #ed6c02;
  --color-warning-hover: #e65100;
  --color-error: #d32f2f;
  --color-error-hover: #b71c1c;

  --bg-page: #fafafa;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f3f4f6;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-info: #e0f2fe;
  --bg-error: #fee2e2;
  --bg-warn: #fef3c7;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --text-info: #075985;
  --text-error: #991b1b;
  --text-warn: #92400e;

  --border-color: #e5e7eb;
  --navbar-bg: #111111;
  --navbar-fg: #ffffff;
  --footer-height: 44px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.18);
  --font-sans: 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
}

[data-theme='dark'] {
  --bg-page: #121212;
  --bg-surface: #1e1e1e;
  --bg-surface-alt: #27272a;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-info: rgba(2, 132, 199, 0.16);
  --bg-error: rgba(220, 38, 38, 0.18);
  --bg-warn: rgba(217, 119, 6, 0.18);

  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --text-info: #7dd3fc;
  --text-error: #fca5a5;
  --text-warn: #fcd34d;

  --border-color: #333338;
  --navbar-bg: #111111;
  --navbar-fg: #f3f4f6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}
