:root {
  --bg-base: #0a0a0f;
  --bg-surface: #12121a;
  --bg-elevated: #1a1a2e;
  --border: #2a2a3e;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --blue: #3b82f6;
  --danger: #ef4444;
  --warning: #f59e0b;
}

/* Glow effects */
.glow-accent { box-shadow: 0 0 12px rgba(0, 255, 136, 0.15); }
.glow-danger  { box-shadow: 0 0 12px rgba(239, 68, 68, 0.15); }
.glow-blue    { box-shadow: 0 0 12px rgba(59, 130, 246, 0.15); }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a52; }

/* Probability bar gradient */
.prob-bar { background: linear-gradient(90deg, var(--accent), var(--blue)); }

/* Detail drawer */
.drawer-overlay { background: rgba(0, 0, 0, 0.5); }
.drawer-panel {
  width: 480px;
  max-width: 100vw;
  transition: transform 200ms ease-out;
}

/* Skeleton loading */
.skeleton {
  background: var(--bg-elevated);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Toast styles */
.toast {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 240px;
  max-width: 400px;
  animation: slideIn 200ms ease-out;
}
.toast-error   { background: var(--danger); color: white; }
.toast-success { background: var(--accent); color: var(--bg-base); }
.toast-warning { background: var(--warning); color: var(--bg-base); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Alpine x-cloak — hide until Alpine initialises */
[x-cloak] { display: none !important; }

/* Stat card */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
