/* CSS cho biểu đồ */

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.chart-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
}

.chart-title {
  font-size: 1rem;
  color: #4b5563;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 600;
}

canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
  .charts-container {
    grid-template-columns: 1fr;
  }
}

/* Loading indicator */
.chart-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  z-index: 5;
}

.chart-loading:after {
  content: '';
  width: 30px;
  height: 30px;
  border: 3px solid #f3f4f6;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
