@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Tutti i controlli nativi (datepicker, select, scrollbar) in tema scuro. */
  color-scheme: dark;
  --bg: #0d1117;
  --surface: #161b27;
  --surface-2: #1e2535;
  --accent: #8b5cf6;
  --accent-2: #3b82f6;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #eab308;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --border: rgba(139, 92, 246, 0.2);
  --radius: 14px;
  --transition: 0.18s ease;
  --font: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar custom (tema scuro) — globale su tutte le viste ───── */
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.45) transparent;
}
/* WebKit (Chrome/Edge — target dell'estensione) */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.35);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.6); background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }

a {
  color: inherit;
  text-decoration: none;
}
