/* ── Global ── */
body { font-size: 0.9rem; background: #f5f7fb; }

/* ── Stat cards ── */
.stat-card {
  border-radius: 12px;
  padding: 1rem 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,.12);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.4rem;
  opacity: .25;
}
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-lbl { font-size: .8rem; opacity: .9; margin-top: 2px; }

/* ── Tables ── */
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.table td { vertical-align: middle; }

/* ── Tabs ── */
.nav-tabs .nav-link { color: #495057; font-weight: 500; }
.nav-tabs .nav-link.active { color: #0d6efd; font-weight: 600; }

/* ── Badge pills ── */
.badge-laki { background: #0d6efd22; color: #0d6efd; }
.badge-perempuan { background: #dc354522; color: #dc3545; }
.badge-produktif { background: #19875422; color: #198754; }
.badge-lansia { background: #ffc10722; color: #856404; }

/* ── Chart ── */
.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: .8rem;
}
.bar-chart-label { min-width: 155px; text-align: right; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-chart-bar-wrap { flex: 1; background: #e9ecef; border-radius: 4px; height: 18px; }
.bar-chart-bar { height: 18px; border-radius: 4px; transition: width .6s ease; }
.bar-chart-val { min-width: 28px; color: #333; font-weight: 600; }

/* ── Donut placeholder ── */
.donut-wrap { position: relative; width: 160px; height: 160px; margin: 0 auto; }
.donut-svg { width: 160px; height: 160px; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.donut-pct { font-size: 1.3rem; font-weight: 700; }

/* ── Pagination ── */
.pagination { gap: 3px; }

/* ── Responsive ── */
@media (max-width: 576px) {
  .stat-num { font-size: 1.5rem; }
  .bar-chart-label { min-width: 110px; font-size: .72rem; }
}
