body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #eef1f5;
}

/* TOP BAR */
.topbar {
  height: 55px;
  background: #2f6fb2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo {
  font-weight: bold;
  font-size: 18px;
}

/* LAYOUT */
.layout {
  display: flex;
  height: calc(100vh - 55px);
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #2f3b52;
  color: #fff;
  padding-top: 20px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 12px 20px;
}

.sidebar li.active,
.sidebar li:hover {
  background: #3d4a63;
}

/* CONTENT */
.content {
  flex: 1;
  padding: 20px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 20px;
}

/* FILTRI */
.filters {
  display: flex;
  gap: 10px;
}

.pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  background: #e0e6ef;
  cursor: pointer;
}

.pill.active {
  background: #2f6fb2;
  color: white;
}

/* TABLE */
.styled-table {
  width: 100%;
  border-collapse: collapse;
}

.styled-table th {
  text-align: left;
  padding: 10px;
  background: #f6f8fb;
}

.styled-table td {
  padding: 10px;
  border-top: 1px solid #eee;
}

/* BADGE */
.badge {
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  color: white;
}

.badge.green { background: #2ecc71; }
.badge.orange { background: #f39c12; }
.badge.red { background: #e74c3c; }

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #2f3b52;
  color: #cfd6e4;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin: 4px 10px;
  border-radius: 6px;
}

.sidebar li a,
.sidebar li {
  display: block;
  padding: 12px 16px;
  color: #cfd6e4;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

/* hover */
.sidebar li:hover {
  background: #3d4a63;
  color: #ffffff;
}

/* voce attiva */
.sidebar li.active {
  background: #2f6fb2;
  color: #ffffff;
  font-weight: 600;
}

/* disabilita blu dei link */
.sidebar a {
  color: inherit;
}
/* DASHBOARD KPI */
.dashboard-kpi {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.kpi-card {
  background: white;
  border-radius: 6px;
  padding: 20px;
  min-width: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.kpi-card.warning {
  border-left: 6px solid #e67e22;
}

.kpi-title {
  font-size: 14px;
  color: #7b8a9b;
}

.kpi-value {
  font-size: 32px;
  font-weight: bold;
  margin-top: 5px;
}

/* GRID DASHBOARD */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

/* LISTE */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.list li:last-child {
  border-bottom: none;
}

.list.warning li {
  color: #e67e22;
  font-weight: 500;
}
.lotto-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-size: 15px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

label {
  display: block;
  font-size: 13px;
  color: #7b8a9b;
  margin-bottom: 4px;
}

input, select {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.btn-primary {
  background: #2f6fb2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #255a94;
}
.pill.danger {
  background: #e74c3c;
  color: white;
}


