/* Bar Chart Styles */
.bar-chart-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 8px;
  box-shadow: none;
  padding: 1rem;
  margin-bottom: 1rem;
}

.bar-chart-canvas {
  max-width: 100%;
  height: 100%;
  display: block;
}

.bar-chart-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 1rem;
  padding: 0;
}

.bar-chart-wrapper {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Responsive styles */
@media (max-width: 768px) {
  .bar-chart-container {
    padding: 0.5rem;
    height: 300px;
  }

  .bar-chart-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .bar-chart-container {
    height: 250px;
  }

  .bar-chart-title {
    font-size: 1rem;
  }
}

/* Animation for chart containers */
@keyframes bar-chart-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bar-chart-container {
  animation: bar-chart-fade-in 0.5s ease-out;
}

/* Loading state */
.bar-chart-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 1rem;
}

.bar-chart-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: bar-chart-spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes bar-chart-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Error state */
.bar-chart-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #e74c3c;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

/* Custom tooltip styles */
.bar-chart-tooltip {
  background: rgba(0, 0, 0, 0.8) !important;
  color: white !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}
