/* Loader styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4e79a7;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

h3 {
  text-align: center;
  color: #444;
}

/* 🔷 First Row */
.top-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 10px;
}

.top-card {
  flex: 1;
  background: #ffffff;
  height: 70px; /* 🔥 Fixed height */
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 13px;
  color: #333;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔽 Dropdown */
.dropdown-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 70px; /* 🔥 Match top-card height */
}

.dropdown-container label {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
}

.dropdown-container select {
  width: 100%;
  padding: 6px;
  font-size: 13px;
  border-radius: 5px;
  border: 1px solid #ccc;
  height: 34px;
}

/* 🔷 Second Row Cards */
.cards-container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  align-items: stretch;
}

.card {
  flex: 1;
  background: #ffffff;
  height: 70px; /* 🔥 Same as .top-card */
  padding: 6px 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 13px;
  color: #333;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 🔷 Charts Section */
.charts-group {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #fff;
}

.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
  align-items: flex-start;
  margin-top: 16px;
}

canvas {
  flex: 1 1 45%;
  max-width: 600px;
  max-height: 400px;
}

/* Map */
#map {
  height: 500px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 20px;
}

/* Tight Label */
.jk-label {
  background: transparent !important;
  color: #555 !important;
  font-weight: bold;
  font-size: 11px;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 🔷 Mobile Responsive */
@media (max-width: 600px) {
  .top-row,
  .cards-container {
    flex-direction: column;
  }

  .top-card,
  .card {
    width: 100%;
    height: auto;
  }

  .dropdown-container {
    height: auto;
  }
}
