/* ============================================
   NATURA — CHARTS & DATA VIZ STYLES
   ============================================ */

.chart-container {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.chart-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.chart-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}

.bar-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.bar-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--color-navy);
  min-height: 4px;
  transition: height 0.6s ease;
  position: relative;
}

.bar-chart-bar--green { background: var(--color-green); }
.bar-chart-bar--light { background: var(--color-border); }

.bar-chart-bar:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.bar-chart-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Line chart (SVG-based) */
.line-chart-svg {
  width: 100%;
  height: 180px;
  overflow: visible;
}

.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot--navy { background: var(--color-navy); }
.legend-dot--green { background: var(--color-green); }
.legend-dot--light { background: #a0b4cc; }

/* Donut chart placeholder */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 32px;
}

.donut-chart {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.donut-legend {
  flex: 1;
}

.donut-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.8rem;
}

.donut-legend-item:last-child { border-bottom: none; }

.donut-legend-label { display: flex; align-items: center; gap: 8px; color: var(--color-text-muted); }
.donut-legend-swatch { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend-val { font-weight: 700; color: var(--color-navy); }

/* Trend indicator */
.trend-up { color: var(--color-green); font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; gap: 3px; }
.trend-down { color: #e24444; font-weight: 600; font-size: 0.8rem; display: flex; align-items: center; gap: 3px; }
.trend-up svg, .trend-down svg { width: 13px; height: 13px; }
