/* =========================
   BASE CARD
========================= */
.stat-card {
  border-radius: 22px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 0.3s ease;
  height: 100%;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.stat-card:hover {
  transform: translateY(-4px);
}

.stat-card small {
  font-size: 0.9rem;
  opacity: 0.9;
  display: block;
  margin-bottom: 6px;
}

.stat-card h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
}

/* =========================
   WARNA CARD
========================= */

.card-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.card-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
}

.card-orange {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 20px rgba(217, 119, 6, 0.25);
}

.card-purple {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.25);
}

.card-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 10px 20px rgba(8, 145, 178, 0.25);
}

.card-emerald {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}

.card-yellow {
  background: linear-gradient(135deg, #eab308, #ca8a04);
  box-shadow: 0 10px 20px rgba(202, 138, 4, 0.25);
}

.card-pink {
  background: linear-gradient(135deg, #ec4899, #db2777);
  box-shadow: 0 10px 20px rgba(219, 39, 119, 0.25);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .stat-card {
    padding: 18px;
  }

  .stat-card h2 {
    font-size: 1.6rem;
  }

  .icon-box {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

/* =========================
   CHART CARD
========================= */
.chart-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.chart-title {
  font-weight: 700;
  color: #0f172a;
}

.chart-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.chart-wrapper {
  position: relative;
  height: 320px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .chart-card {
    padding: 20px;
  }

  .chart-wrapper {
    height: 260px;
  }
}

/* =========================
   FILTER CARD
========================= */
.table-filter-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f7;
}

.table-info-text {
  color: #64748b;
  font-size: 0.95rem;
}

/* =========================
   TABLE CARD
========================= */
.table-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
}

.table-card .dataTables_wrapper {
  padding: 24px;
}

/* =========================
   TABLE STYLE
========================= */
.custom-table {
  min-width: 1200px;
}

.custom-table thead {
  background: #f8fafc;
}

.custom-table thead th {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.custom-table tbody td {
  padding: 18px 20px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.custom-table tbody tr {
  transition: 0.2s ease;
}

.custom-table tbody tr:hover {
  background: #f8fbff;
}

/* =========================
   MAP BUTTON
========================= */
.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.map-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* =========================
   BADGE
========================= */
.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .table-filter-card,
  .table-card {
    border-radius: 18px;
  }

  .table-filter-card {
    padding: 20px;
  }

  .custom-table thead th,
  .custom-table tbody td {
    padding: 14px 16px;
  }
}

/* =========================
   CARD
========================= */
.rekap-card,
.rekap-table-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
}

.rekap-title {
  font-weight: 700;
  color: #0f172a;
}

.rekap-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =========================
   CHART
========================= */
.chart-wrapper-sm {
  height: 320px;
  position: relative;
}

.chart-wrapper-lg {
  height: 320px;
  position: relative;
}

/* =========================
   TABLE
========================= */
.rekap-table thead {
  background: #f8fafc;
}

.rekap-table thead th {
  padding: 16px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.rekap-table tbody td {
  padding: 18px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.rekap-table tbody tr:hover {
  background: #f8fbff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .rekap-card,
  .rekap-table-card {
    padding: 20px;
    border-radius: 20px;
  }

  .chart-wrapper-sm,
  .chart-wrapper-lg {
    height: 260px;
  }
}

/* =========================
   CARD
========================= */
.akreditasi-card,
.akreditasi-table-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
}

.akreditasi-title {
  font-weight: 700;
  color: #0f172a;
}

.akreditasi-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =========================
   CHART
========================= */
.chart-wrapper-sm {
  height: 320px;
  position: relative;
}

.chart-wrapper-lg {
  height: 340px;
  position: relative;
}

/* =========================
   TABLE
========================= */
.akreditasi-table thead {
  background: #f8fafc;
}

.akreditasi-table thead th {
  padding: 16px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.akreditasi-table tbody td {
  padding: 18px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.akreditasi-table tbody tr:hover {
  background: #f8fbff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .akreditasi-card,
  .akreditasi-table-card {
    padding: 20px;
    border-radius: 20px;
  }

  .chart-wrapper-sm,
  .chart-wrapper-lg {
    height: 260px;
  }
}

/* =========================
   CARD
========================= */
.kecamatan-card,
.kecamatan-table-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
}

.kecamatan-title {
  font-weight: 700;
  color: #0f172a;
}

.kecamatan-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =========================
   CHART
========================= */
.chart-wrapper-kecamatan {
  position: relative;
  min-height: 700px;
}

/* =========================
   MINI TABLE
========================= */
.mini-table thead {
  background: #f8fafc;
}

.mini-table thead th {
  padding: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.mini-table tbody td {
  padding: 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f5f9;
}

/* =========================
   TABLE DETAIL
========================= */
.kecamatan-table thead {
  background: #f8fafc;
}

.kecamatan-table thead th {
  padding: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  white-space: nowrap;
}

.kecamatan-table tbody td {
  padding: 16px;
  font-size: 0.92rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.kecamatan-table tbody tr:hover {
  background: #f8fbff;
}

.kecamatan-table tbody td:nth-child(2) {
  text-align: left;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .kecamatan-card,
  .kecamatan-table-card {
    padding: 20px;
    border-radius: 20px;
  }

  .chart-wrapper-kecamatan {
    height: 350px;
  }
}

.page-header-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: 28px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f7;
  position: relative;
  overflow: hidden;
}

.page-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, #0d6efd, #4f8cff);
}

.header-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d6efd, #4f8cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
}

.page-subtitle {
  color: #64748b;
  font-size: 15px;
}

.active-year-badge {
  background: #eff6ff;
  color: #0d6efd;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
}
