/* Charts Section */
.charts-section {
  margin-top: 2rem;
}

.charts-section h2 {
  margin-bottom: 1rem;
}

/* Chart Controls */
.chart-controls {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chart-tab {
  padding: 0.5rem 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-tab:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.chart-tab.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Chart Container */
.chart-container {
  position: relative;
  height: 300px;
  padding: 1rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.chart-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Distribution Chart */
.distribution-chart {
  margin-top: 1.5rem;
}

.distribution-chart .chart-container {
  height: 250px;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* Retro theme overrides */
[data-theme="retro"] .chart-tab {
  border-radius: 0;
  border-width: 2px;
  font-family: 'Courier New', monospace;
}

[data-theme="retro"] .chart-tab.active {
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="retro"] .chart-container {
  border-radius: 0;
  border-width: 2px;
}

/* Leather theme overrides */
[data-theme="leather"] .chart-tab {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="leather"] .chart-tab.active {
  box-shadow: 0 4px 8px rgba(201, 162, 39, 0.3);
}

[data-theme="leather"] .chart-container {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}