:root {
    /* Palet Granodiorit Lebak - sama dengan profil */
    --penduduk-primary: #6B7280;   /* Granodiorit Grey */
    --penduduk-secondary: #3B5E4A; /* Moss Green Geosite */
    --penduduk-dark: #1F2937;     /* Biotite Black */
    --penduduk-light: #F2F4F5;    /* Quartz White */
    --text-dark: #1F2937;         /* Biotite Black */
    --text-muted: #6B7280;        /* Granodiorit Grey */
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--penduduk-light);
    color: var(--text-dark);
}

/* Hero menggunakan styling dari profil.css */
.hero-penduduk {
    /* Background gambar hero dari assets/images */
    background-image: url('../images/gambar-hero.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-penduduk::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Overlay gelap untuk kontras teks - menggunakan Biotite Black */
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.75) 0%, rgba(107, 114, 128, 0.65) 100%);
    z-index: 1;
}

.hero-penduduk .container {
    max-width: var(--saphira-content-width, calc(100vw - 400px));
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.section-card {
    background: var(--penduduk-light);
    border-radius: 0;
    padding: 32px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    box-shadow: 0 4px 12px rgba(31, 41, 55, 0.08);
    margin-bottom: 28px;
}

.section-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--penduduk-secondary);
}

.section-card h2 i {
    color: var(--penduduk-primary);
}

.section-card > p {
    margin: 0 0 24px;
    color: var(--text-muted);
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #ffffff;
    border-radius: 0;
    padding: 20px;
    border: 1px solid rgba(107, 114, 128, 0.15);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
}

.chart-card canvas {
    width: 100% !important;
    height: 260px !important;
}

.table-responsive {
    overflow-x: auto;
}

.penduduk-table {
    width: 100%;
    border-collapse: collapse;
}

.penduduk-table th,
.penduduk-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.penduduk-table th {
    text-align: left;
    background: var(--penduduk-light);
    color: var(--text-dark);
    font-weight: 600;
}

.search-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.search-bar input {
    flex: 1;
    min-width: 220px;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 0;
    padding: 12px 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--penduduk-secondary);
    box-shadow: 0 0 0 3px rgba(59, 94, 74, 0.1);
}

.btn-search {
    border: none;
    border-radius: 0;
    padding: 12px 24px;
    font-weight: 600;
    background: var(--penduduk-secondary);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-search:hover {
    background: #2d4a3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 94, 74, 0.3);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}

@media (max-width: 1200px) {
    .hero-penduduk .container,
    .profil-content {
        max-width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    /* Hero layout jadi column di mobile */
    .hero-penduduk .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .stats-grid {
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
    
    .section-card {
        padding: 24px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .search-bar input {
        min-width: 100%;
    }
    
    .btn-search {
        width: 100%;
        justify-content: center;
    }
}

