/* =====================================================
   PAGE HEADER (PUBLIK NASIONAL)
===================================================== */
.page-header {
    text-align: center;
    margin: 40px 0 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.page-subtitle {
    font-size: 14px;
    color: #4B5563;
}

.page-subtitle .muted {
    display: block;
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* MOBILE */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 22px;
    }
}


/* =====================================================
   STAT CARDS (RINGKASAN NASIONAL)
===================================================== */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 50px;
}

.stat-card {
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
}

.stat-sub {
    font-size: 13px;
    opacity: .9;
}

.stat-icon {
    font-size: 40px;
    opacity: .25;
}

/* VARIAN WARNA */
.stat-card.green {
    background: #E8FFF3;
    color: #047857;
}

.stat-card.blue {
    background: #EAF2FF;
    color: #1D4ED8;
}

.stat-card.purple {
    background: #F3E8FF;
    color: #7C3AED;
}

/* MOBILE */
@media (max-width: 768px) {
    .stat-cards {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 30px;
    }
}


/* =====================================================
   TABLE PUBLIK NASIONAL
===================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 16px;
    margin-bottom: 32px;
}

/* tombol icon (lihat pokja) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #F1F5F9;
    transition: all .2s ease;
}

.icon-btn img {
    width: 18px;
    height: 18px;
}

.icon-btn:hover {
    background: #DBEAFE;
    transform: scale(1.05);
}


/* =====================================================
   CHART (DOUGHNUT)
===================================================== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.chart-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.chart-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.chart-note {
    font-size: 13px;
    color: #6B7280;
    margin-top: 14px;
}

.chart-canvas {
    max-width: 260px;
    margin: 0 auto;
}

/* MOBILE */
@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-canvas {
        max-width: 220px;
    }
}


/* =====================================================
   MAP NASIONAL
===================================================== */
.map-section {
    margin: 60px 0;
    text-align: center;
}

.map-section h2 {
    font-size: 26px;
    font-weight: 700;
}

.map-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 20px;
}

.map-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    overflow-x: auto;
}

.map-legend {
    margin-top: 20px;
    font-size: 14px;
}

/* legend warna */
.legend {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin: 0 6px 0 14px;
}

.legend.terbentuk { background: #22C55E; }
.legend.proses    { background: #3B82F6; }
.legend.belum     { background: #9CA3AF; }

/* provinsi SVG */
.provinsi {
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
}

.provinsi.terbentuk { fill: #22C55E; }
.provinsi.proses    { fill: #3B82F6; }
.provinsi.belum     { fill: #9CA3AF; }

.provinsi:hover {
    opacity: 0.85;
}

/* MOBILE */
@media (max-width: 768px) {
    .map-section h2 {
        font-size: 22px;
    }
}

.admin-sidebar-toggle {
    display: none;
}


/* ===============================
   POKJA DETAIL
================================ */
.btn-back {
    display: inline-block;
    margin-top: 20px;
    color: #2563EB;
    font-weight: 500;
}

.status-row {
    text-align: center;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.clean-table {
    width: 100%;
    border-collapse: collapse;
}

.clean-table th {
    background: #2563EB;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 12px;
}

.clean-table td {
    padding: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.clean-table td.name {
    font-weight: 600;
    color: #1D4ED8;
}

.sk-card {
    border-left: 6px solid #22C55E;
}

.sk-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    font-size: 14px;
}

.sk-grid span {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.sk-footer {
    margin-top: 16px;
    font-size: 13px;
    color: #374151;
}

.empty-note {
    text-align: center;
    color: #6B7280;
    font-style: italic;
}

/* MOBILE */
@media (max-width: 768px) {
    .sk-grid {
        grid-template-columns: 1fr;
    }
}

.breadcrumb-simple {
    font-size: 0.9rem;
}
.breadcrumb-simple a {
    text-decoration: none;
    color: #0d6efd;
}
.breadcrumb-simple .active {
    font-weight: 600;
    color: #333;
}

.sk-meta {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 0.85rem;
    color: #666;
    border-top: 1px dashed #e3e3e3;
}


/* =====================================================
   BUTTON - LIHAT POKJA
===================================================== */
/* kolom aksi */
.col-action {
    text-align: center;
    vertical-align: middle;
}

/* tombol */
.btn-view-pokja {
    display: inline-flex;              /* kunci di sini */
    align-items: center;
    justify-content: center;

    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;

    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;

    text-decoration: none;
    transition: all .2s ease;
}

.btn-view-pokja:hover {
    background: #DBEAFE;
    color: #1E40AF;
    transform: translateY(-1px);
}

/* kolom aksi */
.col-action {
    text-align: center;
    vertical-align: middle;
}

/* tombol lihat pokja */
.btn-view-pokja {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 110px;
    padding: 6px 14px;

    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;

    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;

    text-decoration: none;
    transition: all .2s ease;
}

.btn-view-pokja:hover {
    background: #DBEAFE;
    color: #1E40AF;
    transform: translateY(-1px);
}

/* ===== DISABLED STATE ===== */
.btn-view-pokja.disabled {
    background: #F3F4F6;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;

    cursor: not-allowed;
    pointer-events: none;   /* kunci total */
    transform: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;
    border-radius: 999px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    white-space: nowrap;
}

/* SUCCESS = Ada / Terbentuk */
.badge.success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
}

/* MUTED = Belum */
.badge.muted {
    background: #F3F4F6;
    color: #6B7280;
    border: 1px solid #E5E7EB;
}

/* OPTIONAL: warning / proses (kalau kepakai) */
.badge.warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

