/**
 * SIDARCO — Rekapitulasi Data Pemilih Publik (Stylesheet)
 * File: assets/css/publik-pemilih.css
 */

.rekap-page {
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Header Halaman */
.rekap-page-heading {
    margin-bottom: 20px;
    text-align: center;
}

.rekap-heading-copy {
    display: inline-block;
    max-width: 700px;
}

.rekap-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #0369a1;
    background: #e0f2fe;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    display: inline-block;
    margin-bottom: 8px;
}

.rekap-page-heading h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #1e3a8a;
    margin: 8px 0;
}

.rekap-page-heading p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Badge Update Terakhir */
.rekap-update-badge {
    margin-top: 10px;
}

.rekap-update-badge span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #15803d;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid #bbf7d0;
}

/* Panel Filter Wilayah */
.rekap-filter-section {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.04);
}

.rekap-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rekap-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.rekap-filter-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    margin-bottom: 4px;
}

.rekap-filter-group .form-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

.rekap-filter-actions {
    display: flex;
    justify-content: flex-end;
}

.rekap-reset-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s;
}

.rekap-reset-btn:hover {
    background: #e2e8f0;
}

/* Section Utama Card Total & Tren */
.rekap-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.rekap-total-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.2);
    position: relative;
    overflow: hidden;
}

.rekap-total-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.1;
}

.rekap-badge-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 999px;
}

.rekap-total-value {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 12px 0 6px 0;
}

.rekap-total-value span {
    font-size: 1rem;
    font-weight: 600;
}

.rekap-gender-breakdown {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.95;
}

.rekap-trend-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rekap-trend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rekap-trend-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.rekap-trend-badge-naik {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
}

.rekap-trend-badge-turun {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
}

.rekap-trend-val-naik {
    font-size: 1.5rem;
    font-weight: 900;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rekap-trend-val-turun {
    font-size: 1.5rem;
    font-weight: 900;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rekap-trend-val-naik span,
.rekap-trend-val-turun span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.rekap-trend-desc {
    margin: 10px 0 0 0;
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

/* Section Status Pemilih */
.rekap-status-heading h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rekap-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.rekap-status-box-ms {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-top: 4px solid #22c55e;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(34, 197, 94, 0.05);
}

.rekap-status-box-tms {
    background: #ffffff;
    border: 1px solid #fecdd3;
    border-top: 4px solid #f43f5e;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.05);
}

.rekap-status-box-baru {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-top: 4px solid #0ea5e9;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.05);
}

.rekap-status-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.rekap-status-label-ms { font-size: 0.75rem; font-weight: 800; color: #15803d; text-transform: uppercase; }
.rekap-status-label-tms { font-size: 0.75rem; font-weight: 800; color: #be123c; text-transform: uppercase; }
.rekap-status-label-baru { font-size: 0.75rem; font-weight: 800; color: #0369a1; text-transform: uppercase; }

.rekap-status-icon-ms { background: #f0fdf4; color: #15803d; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.rekap-status-icon-tms { background: #fff1f2; color: #be123c; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.rekap-status-icon-baru { background: #e0f2fe; color: #0369a1; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }

.rekap-status-val-ms { font-size: 1.6rem; font-weight: 900; color: #14532d; }
.rekap-status-val-tms { font-size: 1.6rem; font-weight: 900; color: #881337; }
.rekap-status-val-baru { font-size: 1.6rem; font-weight: 900; color: #0c4a6e; }

.rekap-status-val-ms span,
.rekap-status-val-tms span,
.rekap-status-val-baru span {
    font-size: 0.8rem;
    font-weight: 600;
}

.rekap-status-desc {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}