body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

.hero {
    background: #f4f4f4;
    padding: 20px;
    text-align: center;
}

.hero-images img {
    width: 30%;
    margin: 10px;
}

.berita-terkini {
    padding: 20px;
}

.layanan {
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.layanan-item {
    border: 1px solid #ccc;
    padding: 10px;
    width: 30%;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer .social-media a {
    color: #fff;
    margin: 0 10px;
}
/* Gaya Umum (dari sebelumnya) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f8f8f8; /* Warna latar belakang sedikit abu-abu */
    color: #333;
}

header {
    background: #28a745; /* Warna hijau yang lebih menarik */
    color: #fff;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h1, h2, h3 {
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 10px;
}

.hero {
    background: #e6ffe6; /* Hijau muda */
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
    color: #28a745;
}

.hero p {
    font-size: 1.2em;
    color: #555;
}

.hero-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.hero-images img {
    width: 22%; /* Lebih kecil agar muat 4 per baris */
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.hero-images img:hover {
    transform: scale(1.05);
}

.berita-terkini, .layanan, .laporan-form-section, .about-section {
    padding: 30px 0;
    border-top: 1px solid #eee;
    margin-top: 30px;
}

.berita-terkini h2, .layanan h1, .laporan-form-section h1, .about-section h1 {
    margin-bottom: 30px;
}

.berita-terkini article {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.berita-terkini article h3 {
    color: #28a745;
    margin-top: 0;
    text-align: left;
}

.layanan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.layanan-item {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.layanan-item h2 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 15px;
}

.layanan-item p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.layanan-item button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.layanan-item button:hover {
    background-color: #218838;
}

/* Form Styling */
form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

form input[type="text"],
form input[type="email"],
form select,
form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

form input[type="file"] {
    margin-bottom: 20px;
}

form button[type="submit"] {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: 100%;
}

form button[type="submit"]:hover {
    background-color: #218838;
}

#konfirmasi {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

footer {
    background: #343a40; /* Warna abu-abu gelap */
    color: #f8f9fa;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

footer p {
    margin: 5px 0;
}

footer .social-media a {
    color: #f8f9fa;
    margin: 0 12px;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

footer .social-media a:hover {
    color: #28a745; /* Warna hijau saat hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    header .logo {
        font-size: 24px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 8px 0;
    }
    .hero h1 {
        font-size: 2.2em;
    }
    .hero-images img {
        width: 45%; /* 2 per baris di mobile */
        height: 150px;
    }
    .layanan {
        grid-template-columns: 1fr; /* 1 per baris di mobile */
    }
    .layanan-item {
        width: auto;
    }
    form {
        padding: 20px;
    }
    form input[type="text"],
    form input[type="email"],
    form select,
    form textarea {
        width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }
    .hero-images img {
        width: 80%; /* 1 per baris di mobile sangat kecil */
    }
}


/* Gaya Baru untuk Halaman Pengurus Dusun */
.section-pengurus {
    padding: 30px 0;
}

.section-pengurus h1 {
    margin-bottom: 30px;
}

.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background-color: #e6ffe6; /* Hijau muda */
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.card h2 {
    color: #28a745;
    margin-top: 0;
    margin-bottom: 15px;
}

.card p {
    color: #555;
    margin-bottom: 20px;
}

.card button {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.card button:hover {
    background-color: #218838;
}

.content-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: #28a745;
    margin-bottom: 25px;
    text-align: left;
}

.struktur-list, .kegiatan-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.struktur-item, .kegiatan-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.struktur-item h3, .kegiatan-item h4 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.struktur-item p, .kegiatan-item p {
    font-size: 0.95em;
    color: #666;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.data-table tr:hover {
    background-color: #e9e9e9;
}

.content-section ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 15px;
}

.content-section ul li {
    margin-bottom: 8px;
}

.content-section a {
    color: #28a745;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Responsive untuk halaman pengurus */
@media (max-width: 768px) {
    .card {
        width: 100%; /* Kartu akan memenuhi lebar di mobile */
    }
    .struktur-list, .kegiatan-list {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
    }
    .data-table, .data-table thead, .data-table tbody, .data-table th, .data-table td, .data-table tr {
        display: block;
    }
    .data-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .data-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }
    .data-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 45%; /* Sesuaikan lebar label kiri */
        text-align: right;
        min-height: 40px;
        display: flex; /* Tambahan agar konten sejajar */
        justify-content: flex-end;
        align-items: center;
    }
    .data-table td:before {
        position: absolute;
        top: 12px; /* Sesuaikan dengan padding td */
        left: 10px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #28a745; /* Warna hijau biar senada */
    }
    .data-table td:nth-of-type(1):before { content: "Tanggal"; }
    .data-table td:nth-of-type(2):before { content: "Keterangan"; }
    .data-table td:nth-of-type(3):before { content: "Pihak"; }
    .data-table td:nth-of-type(4):before { content: "Pemasukan"; }
    .data-table td:nth-of-type(5):before { content: "Pengeluaran"; }
    .data-table td:nth-of-type(6):before { content: "Saldo"; }
    
    /* Menghilangkan border bawah pada kolom terakhir di setiap "kartu" */
    .data-table td:last-child {
        border-bottom: 0;
    }
    .data-table tfoot td:before {
        content: none !important;
    }

    /* Mengatur ulang tampilan Footer agar rapi di HP */
    .data-table tfoot td {
        display: block;
        width: 100%;
        text-align: center !important; /* Saldo jadi rata tengah di HP */
        padding-left: 12px; /* Kembalikan padding normal */
        background-color: #e6ffe6; /* Beri warna background tipis agar menonjol */
        font-size: 1.2em;
        border-top: 2px solid #28a745;
    }

    /* Menyembunyikan label "SALDO AKHIR KAS" yang lama jika bertumpuk, 
       atau cukup buat dia jadi baris sendiri */
    .data-table tfoot tr td:first-child {
        color: #28a745;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}
/* Container utama untuk scroll */
.table-scroll-container {
    width: 100%;
    overflow-x: auto; /* Untuk scroll horizontal jika tabel lebar */
}

@media (max-width: 768px) {
    .table-scroll-container {
        max-height: 450px; /* Batasi tinggi kotak laporan di HP */
        overflow-y: auto;  /* Aktifkan scroll vertikal */
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 5px;
        background: #f1f1f1;
        -webkit-overflow-scrolling: touch; /* Biar scroll halus di iPhone/Android */
    }

    /* Opsional: Beri penanda visual scrollbar agar warga tahu itu bisa di-scroll */
    .table-scroll-container::-webkit-scrollbar {
        width: 6px;
    }
    .table-scroll-container::-webkit-scrollbar-thumb {
        background-color: #28a745;
        border-radius: 10px;
    }
}
<style>
  .modal-popup {
    /* Kelas hidden di atas akan mengatur display: none secara default */
    opacity: 0;
    pointer-events: none;
  }
  .modal-popup.show {
    opacity: 1;
    pointer-events: auto;
  }
</style>

