:root {
  --brand: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --bg: #0b1220;
  --surface: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}
body {
  background: #f6f8fb;
  color: #0f172a;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial;
}
.container {
  max-width: 1200px;
}
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 0;
}
.navbar {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-link.active {
  color: var(--brand) !important;
  font-weight: 600;
}
.kpi {
  display: flex;
  align-items: center;
  gap: 16px;
}
.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  display: grid;
  place-items: center;
  color: white;
}
.kpi-number {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}
table.table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  border-bottom: 1px solid #e2e8f0;
}
table.table tbody tr:hover {
  background: #f8fafc;
}
.badge-state-open {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}
.badge-state-progress {
  background: rgba(99, 102, 241, 0.12);
  color: #3730a3;
}
.badge-state-closed {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}

.kpi-card .kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-600));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35);
}
.kpi-card .kpi-number {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.kpi-card {
  border: 0;
}

/* Priority badges (mantieni sfondo, testo bianco) */
.badge-prio-low {
  background: #0ea5e9 !important;
}
.badge-prio-medium {
  background: #3b82f6 !important;
}
.badge-prio-high {
  background: #f59e0b !important;
}
.badge-prio-critical {
  background: #ef4444 !important;
}
/* Status badges */
.badge-state-new {
  background: #64748b !important;
}
.badge-state-inprogress {
  background: #6366f1 !important;
}
.badge-state-waiting {
  background: #f59e0b !important;
}
.badge-state-closed {
  background: #10b981 !important;
}

/* Testo sempre ad alto contrasto sulle badge (ultimo per precedenza) */
.badge,
.badge a,
.badge span,
.badge i {
  color: #ffffff !important;
}
