/* ==============================================
   GENERAL STYLES
============================================== */
.header-title {
  font-size: 26px;
  font-weight: bold;
  color: #007bff;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
}

.chart-card {
  border-radius: 12px;
  overflow: hidden;
}

/* ==============================================
   CHART CONTAINER
============================================== */
.chart-container {
  position: relative;
  height: 300px;
}

.chart-container-tall {
  position: relative;
  height: 400px;
}

/* ==============================================
   INFO BOX (CUSTOM LEGEND)
============================================== */
.info-box-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-box-grid .info-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.info-box-grid .info-color {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* ==============================================
   LOADING SPINNER
============================================== */
.loading-wrapper {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  text-align: center;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 5px solid #e6e6e6;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 12px;
}

.loading-text {
  font-size: 0.9rem;
  color: #555;
  letter-spacing: 0.3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==============================================
   RESPONSIVE - TABLET
============================================== */
@media (max-width: 768px) {
  .header-title {
    font-size: 20px;
    text-align: center;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .chart-container,
  .chart-container-tall {
    height: 250px;
  }

  .info-box-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   RESPONSIVE - SMARTPHONE
============================================== */
@media (max-width: 480px) {
  .chart-container,
  .chart-container-tall {
    height: 200px;
  }

  .info-box-grid .info-item {
    font-size: 0.8rem;
  }
}
