/* =========================
   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 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 {
  height: 420px;
  position: relative;
}

/* =========================
   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: #334155;
  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;
  }
}

/* ===================================
   GEO HERO SECTION
=================================== */

.geo-hero-section {
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

/* ===================================
   LEFT CONTENT
=================================== */

.geo-hero-content {
  padding-right: 40px;
}

/* BADGE */

.geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 24px;

  border-radius: 999px;

  background: #ffffff;

  border: 1px solid #dbe7e4;

  color: #0f766e;

  font-size: 1rem;
  font-weight: 700;

  margin-bottom: 30px;

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.geo-badge i {
  color: #0f766e;
}

/* TITLE */

.geo-title {
  font-size: 4.5rem;
  line-height: 1.05;
  font-weight: 800;

  color: #0f2f2f;

  margin-bottom: 30px;
}

/* DESCRIPTION */

.geo-description {
  font-size: 1.25rem;
  line-height: 1.9;

  color: #476161;

  max-width: 90%;
}
/* ===================================
   RIGHT CARD
=================================== */

.geo-summary-card {
  background: #ffffff;

  border-radius: 40px;

  padding: 40px;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);

  position: relative;
}

/* LABEL */

.geo-summary-label {
  display: block;

  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 6px;

  color: #0ea5a4;

  margin-bottom: 12px;
}

/* TOTAL */

.geo-summary-total {
  font-size: 3.5rem;
  font-weight: 800;

  color: #0f2f2f;

  margin: 0;
}

/* ICON */

.geo-summary-icon {
  width: 90px;
  height: 90px;

  border-radius: 24px;

  background: linear-gradient(135deg, #1fb6aa, #14b8a6);

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 15px 25px rgba(20, 184, 166, 0.25);
}

.geo-summary-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

/* ===================================
   INFO BOX
=================================== */

.geo-info-box {
  background: #f8fafc;

  border-radius: 24px;

  padding: 24px;

  border: 1px solid #e2e8f0;

  height: 100%;
}

.geo-info-box small {
  display: block;

  font-size: 1rem;
  font-weight: 600;

  color: #64748b;

  margin-bottom: 10px;
}

.geo-info-box h5 {
  font-size: 2rem;
  font-weight: 800;

  color: #0f2f2f;

  margin: 0;
}

/* ===================================
   TEXT
=================================== */

.geo-summary-text {
  font-size: 1.1rem;
  line-height: 1.8;

  color: #64748b;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1200px) {
  .geo-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .geo-hero-section {
    padding: 50px 20px;
  }

  .geo-hero-content {
    padding-right: 0;
  }

  .geo-title {
    font-size: 3rem;
  }

  .geo-description {
    max-width: 100%;
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .geo-title {
    font-size: 2.4rem;
  }

  .geo-summary-card {
    padding: 28px;
    border-radius: 28px;
  }

  .geo-summary-total {
    font-size: 2.5rem;
  }

  .geo-summary-icon {
    width: 70px;
    height: 70px;
  }

  .geo-summary-icon i {
    font-size: 2rem;
  }

  .geo-info-box h5 {
    font-size: 1.4rem;
  }
}

/* ===================================
   COORDINATE BUTTON
=================================== */

.coordinate-btn {
  border: none;
  background: #eff6ff;
  color: #2563eb;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}

.coordinate-btn:hover {
  background: #2563eb;
  color: white;
}

/* ===================================
   MAP CARD
=================================== */

.map-preview-card {
  background: #ffffff;

  border-radius: 28px;

  padding: 24px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

  border: 1px solid #e5e7eb;

  position: sticky;
  top: 20px;
}

/* TITLE */

.map-title {
  font-size: 1.5rem;
  font-weight: 800;

  color: #0f2f2f;
}

.map-subtitle {
  color: #64748b;
  line-height: 1.7;
}

/* MAP */

#madrasahMap {
  width: 100%;
  height: 420px;

  border-radius: 22px;

  overflow: hidden;

  background: #f1f5f9;
}

.map-preview-card.active-map {
  animation: mapHighlight 1s ease;
}

@keyframes mapHighlight {
  0% {
    transform: scale(0.98);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.25);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
}

/* BUTTON */

.btn-open-maps {
  width: 100%;

  border: none;
  text-decoration: none;

  background: linear-gradient(135deg, #0f766e, #14b8a6);

  color: #ffffff;

  padding: 16px;

  border-radius: 16px;

  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: 0.3s;
}

.btn-open-maps:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.status-table-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 24px;
  border: 1px solid #eef2f7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

/* wrapper datatable */
.status-table-card .dataTables_wrapper {
  padding: 0;
}

/* table */
.status-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* header */
.status-table thead th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  white-space: nowrap;
}

/* rounded header */
.status-table thead th:first-child {
  border-top-left-radius: 16px;
}

.status-table thead th:last-child {
  border-top-right-radius: 16px;
}

/* body */
.status-table tbody td {
  padding: 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  font-size: 14px;
}

/* hover */
.status-table tbody tr {
  transition: 0.3s;
}

.status-table tbody tr:hover {
  background: #f8fafc;
}

/* last row */
.status-table tbody tr:last-child td {
  border-bottom: none;
}

/* datatable search */
.status-table-card .dataTables_filter {
  margin-bottom: 20px;
}

.status-table-card .dataTables_filter input {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 10px 14px;
  margin-left: 10px;
  transition: 0.3s;
}

.status-table-card .dataTables_filter input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* length menu */
.status-table-card .dataTables_length select {
  border-radius: 12px;
  border: 1px solid #dbeafe;
  padding: 6px 10px;
}

/* info */
.status-table-card .dataTables_info {
  margin-top: 18px;
  color: #64748b;
  font-size: 14px;
}

/* responsive */
@media (max-width: 768px) {
  .status-table-card {
    padding: 18px;
  }

  .status-table thead th,
  .status-table tbody td {
    padding: 12px;
    font-size: 13px;
  }
}
