/* ===== DESIGN TOKENS (CSS VARIABLES) ===== */
:root {
  /* Backgrounds */
  --bg-base: #0f1117;
  --bg-elevated: #1a1b23;
  --bg-module: #13141a;
  --bg-gradient: linear-gradient(180deg, #0f1117 0%, #1a1b23 100%);

  /* Surfaces (semi-transparent overlays on dark) */
  --surface-1: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.05);
  --surface-4: rgba(255, 255, 255, 0.06);
  --surface-5: rgba(255, 255, 255, 0.1);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);

  /* Text */
  --text-primary: #f4f4f5;
  --text-body: #e4e4e7;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --text-faint: #52525b;

  /* Brand / Accent */
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-deep: #d97706;
  --accent-alt: #eab308;
  --accent-gradient: linear-gradient(135deg, #f59e0b, #eab308);
  --accent-gradient-btn: linear-gradient(135deg, #f59e0b, #d97706);
  --accent-gradient-logo: linear-gradient(135deg, #f59e0b, #fbbf24, #f59e0b);

  /* Category colors */
  --cat-sales: #f59e0b;
  --cat-purchasing: #3b82f6;
  --cat-warehouse: #10b981;
  --cat-system: #8b5cf6;

  /* Status colors */
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-info: #3b82f6;
  --status-danger: #ef4444;
  --status-neutral: #a1a1aa;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 20px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;

  /* Shadows */
  --shadow-accent-glow: 0 0 20px rgba(245, 158, 11, 0.3);
  --shadow-btn-primary: 0 4px 15px rgba(245, 158, 11, 0.3);

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

  /* Z-index */
  --z-settings: 100;
  --z-overlay: 999;
  --z-module: 1000;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LINKS ===== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-base, 0.2s ease);
}
a:hover {
  opacity: 0.8;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  border: 2px solid var(--bg-elevated);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.5);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) var(--bg-elevated);
}
