body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 20px;
  color: #222;
}

h1 {
  margin-bottom: 5px;
}

p {
  margin-top: 0;
}

button {
  cursor: pointer;
}

#zones {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 30px;
}

.zone-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.zone-group-header {
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 22px;
  font-weight: bold;
  color: #222;
  text-align: left;
}

.zone-group-header:hover {
  background: #f9f9f9;
}

.zone-group-header span:last-child {
  font-size: 14px;
  font-weight: normal;
  color: #666;
}

.zone-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.zone-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.zone-card h2 {
  margin-top: 0;
}

.zone-card button,
.hidden-zone-row button {
  border: none;
  border-radius: 6px;
  background: #e9e9e9;
  padding: 8px 10px;
  font-size: 14px;
}

.zone-card button:hover,
.hidden-zone-row button:hover {
  background: #dcdcdc;
}

#hidden-zones {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hidden-zone-row {
  background: white;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zone-card-primary-stat {
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f7f7;
}

.zone-card-stat-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.zone-card-stat-number {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 4px;
}

.zone-card-stat-percent {
  font-size: 14px;
  color: #666;
}

.dashboard-controls {
  display: flex;
  justify-content: flex-start;
  margin-bottom: -8px;
}

.dashboard-controls button {
  border: none;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 14px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dashboard-controls button:hover {
  background: #f9f9f9;
}

.dashboard-controls .active-filter-button {
  background: #222;
  color: #ffffff;
}

.dashboard-controls .active-filter-button:hover {
  background: #333;
}

.dashboard-controls-summary {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.global-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: -8px;
}

.global-summary-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-top: 8px solid #999;
}

.global-summary-card.critical {
  border-top-color: #f44336;
}

.global-summary-card.warning {
  border-top-color: #ff9800;
}

.global-summary-card.good {
  border-top-color: #4caf50;
}

.global-summary-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.global-summary-value {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 4px;
}

.global-summary-detail {
  font-size: 13px;
  color: #666;
}

.zone-card-expired {
  opacity: 0.55;
}

.zone-state-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.zone-state-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.zone-state-upcoming {
  background: #fff3e0;
  color: #ef6c00;
}

.zone-state-expired {
  background: #eceff1;
  color: #546e7a;
}

.zone-relative-time {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #616161;
}