* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pastikan halaman penuh dan tanpa spasi putih */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/*untuk layout hal utama terbaru*/
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #ffffff;
}

/* ================= HEADER ================= */
.header {
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(90deg, #1d8c58, #266738, #202f66);
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.left-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-masjid {
    width: 55px;
}

.judul-header {
    color: white;
    font-size: 26px;
    letter-spacing: 1px;
}

/* Right Header */
.right-header {
    position: relative;
}

.admin-icon, .menu-icon {
    font-size: 22px;
    margin-left: 18px;
    cursor: pointer;
    color: white;
}
.admin-link i {
    cursor: pointer;
    z-index: 9999;
}
/*pagination tabel admin*/
.pagination {
    margin-top: 15px;
    text-align: center;
}

.pagination button {
    margin: 0 3px;
    padding: 5px 10px;
    cursor: pointer;
}

.pagination button.active {
    background-color: #2c7be5;
    color: white;
}

/* Dropdown admin */
.admin-menu {
    position: absolute;
    right: 0;
    top: 45px;
    background: white;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
}

.admin-menu a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
}

.admin-menu a:hover {
    background: #f0f0f0;
}

/* ================= KONTEN ================= */
.container {
    margin-top: 40px;
    display: flex;
    align-items: flex-start; 
    gap: 40px;
}

.left-content {
    width: 45%;
}

.judul-besar {
    font-family: 'Montserrat', sans-serif;
    font-size: 35px;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(0, 255, 180, 0.5);

    /* fallback background (warna biasa jika gradient tidak didukung) */
    background: #00a859;

    /* warna teks gradient */
    background: linear-gradient(90deg, #00a859, #004e92);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.deskripsi {
    font-size: 17px;
    color: #333;
    width: 90%;
}

/* Tombol lanjut */
.btn-lanjut {
    margin-top: 25px;
    padding: 12px 22px;
    border: none;
    background: #673ab7;
    color: white;
    border-radius: 8px;
    font-size: 17px;
    cursor: pointer;
}

/* Dropdown pilihan */
.dropdown {
    margin-top: 10px;
    background: white;
    width: 240px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: none;
}

.dropdown button {
    padding: 12px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown button:hover {
    background: #f3f3f3;
}

/* Gambar kanan */
.right-content {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-zakat {
    width: 100%;
    max-width: 650px; /* batas maksimal */
    height: auto;
    object-fit: contain;
}





/* Kontainer isi halaman */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
}



/* TEKS HEADER */
.header h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.3;
}

.header p {
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.5;
}

/* IKON */
.mosque-icon {
    font-size: 2.1rem;
}



/* Bagian penjelasan utama */
.main-content {
    margin-top: 30px;
    padding: 20px;
    text-align: justify;
    line-height: 1.8;
    background-color: #f9f9f9;
    border-radius: 10px;
}

/* Supaya teksnya tidak terlalu melebar */
.description {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
}



/* ====== SUPAYA ISI TIDAK KETUTUP HEADER ====== */
main.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* ====== TEKS “TENTANG KAMI” AGAR RAPI ====== */
main.container section {
    line-height: 1.8;
    text-align: justify;
}

main.container h2 {
    color: #2e7d32;
    margin-bottom: 15px;
}

        .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-bottom: 50px;
            align-items: center;
        }

        .left-content {
            padding: 30px;
        }

        .description {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #333;
            margin-bottom: 30px;
            text-align: justify;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .btn {
            padding: 15px 30px;
            border: none;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .btn-primary {
            background: linear-gradient(135deg, #4caf50, #2196f3);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0,0,0,0.15);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #a84040, #a44b4b, #ba7e7e);
            color: white;
            padding: 0.5rem 0.9rem;
            line-height: 1.2;
            font-size: 0.9rem;
        }

        .btn-secondary:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0,0,0,0.15);
        }

/*emas*/
/* Tombol Ubah Emas - Gradasi hijau-biru-putih */
.ubah-emas-btn {
    padding: 17px 16px;       /* tinggi & lebar tombol sama */
    border-radius: 20px;       /* sudut membulat sama */
    font-weight: 600;         /* tebal sama */
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, #10b981, #3b82f6, #47bc35);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.ubah-emas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Modal Background */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Harga Emas Container */
.harga-emas-container {
    background: #fff;
    width: 400px;
    padding: 30px 25px 25px;
    border-radius: 10px;
    position: relative; /* PENTING */
}
.harga-emas-container input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.8px solid #e5e7eb;
    font-size: 1rem;
}

.harga-emas-container input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

.harga-emas-container h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;

    background: linear-gradient(135deg, #10b981, #3b82f6);

    background-clip: text;            /* versi standar */
    -webkit-background-clip: text;    /* Chrome, Safari */

    color: transparent;
}


.harga-emas-container label {
    display: block;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 10px;
    font-size: 1rem;
}

.harga-emas-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
    outline: none;
}

.harga-emas-container input[type="text"]:focus {
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Tombol silang pojok kanan */
.close-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    color: #9ca3af;
    cursor: pointer;
    user-select: none;
}

.close-btn:hover {
    color: #ef4444;
}

.harga-emas-container button {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #10b981, #3b82f6, #15803d);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.harga-emas-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}


/* Responsive */
@media screen and (max-width: 500px) {
    .harga-emas-container {
        padding: 20px;
    }
/*emas/* Tombol Ubah Emas - Gradasi hijau-biru-putih */
/* Tombol Ubah Emas - Gradasi hijau-biru-putih */

.ubah-emas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Modal Background */
.modal {
    display: none; /* default hidden */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Modal Inner */
.harga-emas-container {
    width: 90%;
    max-width: 400px;
    padding: 25px 30px;
    background: #f0fdfa;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}


.harga-emas-container label {
    display: block;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 10px;
    font-size: 1rem;
}

.harga-emas-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border-radius: 10px;
    border: 2px solid #d1fae5;
    transition: all 0.3s ease;
    outline: none;
}

.harga-emas-container input[type="text"]:focus {
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.harga-emas-container button {
    margin-top: 15px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.harga-emas-container button:hover {
    background: linear-gradient(135deg, #059669, #0d9488);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media screen and (max-width: 500px) {
    .harga-emas-container {
        padding: 20px;
    }

    .harga-emas-container input[type="text"],
    .harga-emas-container button {
        font-size: 0.95rem;
    }
}
*/
    .harga-emas-container input[type="text"],
    .harga-emas-container button {
        font-size: 0.95rem;
    }
}
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
@keyframes popup {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/*akhir emas*/
/*chart dashboard publik*/
.chart-box {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.chart-box h3 {
    margin-bottom: 1rem;
    color: #2e7d32;
    text-align: center;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
}

.chart-wrapper canvas {
    background: #f8f9fa;
    border-radius: 10px;
}
@media (max-width: 768px) {
    .chart-wrapper {
        height: 220px;
    }
}
/*ed*/
#admin-dashboard {
    display: none;
}


        .btn-admin {
            background: linear-gradient(135deg, #ff9800, #f44336);
            color: white;
        }

        .btn-admin:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0,0,0,0.15);
        }

        .right-content {
            text-align: center;
        }

        .logo-container {
            width: 400px;
            height: 300px;
            background: linear-gradient(135deg, #4caf50, #ffffff, #2196f3);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 12px 35px rgba(0,0,0,0.1);
            margin: 0 auto;
            position: relative;
            overflow: hidden;
        }

        .logo-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% { transform: rotate(45deg) translate(-100%, -100%); }
            50% { transform: rotate(45deg) translate(0%, 0%); }
            100% { transform: rotate(45deg) translate(100%, 100%); }
        }

        .logo-text {
            font-size: 4rem;
            color: #2e7d32;
            z-index: 1;
        }
        .zakat-wrapper {
            max-width: 1200px;  /* samakan dengan container atas */
            margin: 0 auto;     /* center horizontal */
            padding-top: 40px;
        }

        .zakat-types {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }


        .zakat-card {
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            border-radius: 20px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            border: 3px solid transparent;
        }

        .zakat-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 40px rgba(0,0,0,0.15);
            border-color: #4caf50;
        }

        .zakat-card h3 {
            color: #2e7d32;
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .zakat-card p {
            color: #666;
            line-height: 1.6;
        }
/*privasi*/
/* =======================
   HEADER PRIVASI – CENTER ATAS
========================== */

/* Wrapper halaman privasi agar konten tertata */
.privacy-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* tetap di atas */
    align-items: center;
    width: 100%;
    padding: 20px;
    text-align: center;
}

/* Header di bagian atas tengah */

.header{
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(90deg, #16814f, #198c60, #20c294);
    color: white;
}

/* Judul utama */
.header h1 {
    font-size: 1.8rem;     /* lebih kecil */
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Subjudul */
.header p {
    font-size: 1rem;       /* diperkecil */
    color: #ffffff;
    margin-top: 5px;
}

/* =======================
   KONTEN PRIVASI
========================== */

.privacy-content {
    max-width: 800px;
    margin-top: 30px;
    margin-bottom: 40px;
    text-align: justify;
}

/* =======================
   TOMBOL KEMBALI
========================== */

.privacy-back-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.privacy-back-btn .btn {
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 10px;
}


/**/

/* =========================
   FOOTER NU CARE LAZISNU (GRADIENT)
========================= */
/* =========================
   FOOTER NU CARE LAZISNU
========================= */

.footer {
    width: 100vw;
    margin: 0;
    padding: 60px 80px 30px 80px;
    background: linear-gradient(90deg, #31845d, #29a663, #11a789);
    color: #ffffff;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
}
.footer-logo {
    width: 150px;
    display: block;
    margin: 15px auto;
    transform: translateX(-8px);
}


/* GRID DESKTOP NORMAL */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Jangan center di desktop! */
.footer-section {
    text-align: left;
}

.footer-section h2, .footer-section h3 {
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.footer-section p, .footer-section a, .footer-section li {
    color: #f5fff7;
    font-size: 0.95rem;
    text-decoration: none;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 1.8rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #d7fff1;
}

.footer-bottom {
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    text-align: justify;

    /* kunci agar selalu di bawah */
    grid-column: 1 / -1;
}


.footer-bottom h4 {
    margin-bottom: 10px;
    font-weight: bold;
}

/* =========================
   RESPONSIVE MODE MOBILE
========================= */
@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        text-align: center; /* Khusus mobile */
    }

    .contact-item {
        justify-content: center; /* Icon + teks ikut tengah */
    }

    .social-icons {
        justify-content: center;
    }

    .footer {
        padding: 40px 30px;
    }
}


        .page {
             display: none;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    min-height: 80vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        .page.active {
            display: block;
        }

        .form-group {
            margin-bottom: 25px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #333;
        }

        .form-group input, 
        .form-group select {
            width: 100%;
            padding: 15px;
            border: 2px solid #e0e0e0;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: #4caf50;
        }

        .error {
            color: #f44336;
            font-size: 0.9rem;
            margin-top: 5px;
        }

        .success {
            color: #4caf50;
            font-size: 1rem;
            margin-top: 10px;
            padding: 15px;
            background: #e8f5e9;
            border-radius: 10px;
        }
        .zakat-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.zbtn {
    flex: 1;
    padding: 12px;
    background: #3A86FF;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.zbtn:hover {
    background: #2664c7;
}
/*ini dashboard publik*/
        .welcome-header {
            background: linear-gradient(135deg, #1e9351, #178068, #1e9351);
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 15px;
            margin-bottom: 30px;
            position: relative; /* WAJIB */
        }
        /* Panah kiri pojok */
.back-arrow {
    position: absolute;
    top: 20px;
    left: 20px;

    font-size: 20px;
    color: white;
    cursor: pointer;

    width: 38px;
    height: 38px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.2);
    transition: all 0.2s ease;
}

.back-arrow:hover {
    background: rgba(255,255,255,0.35);
}

        .back-btn {
            background: #757575;
            color: white;
            margin-right: 15px;
        }

        .back-btn:hover {
            background: #616161;
        }

        .payment-info {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            margin: 20px 0;
        }

        .payment-info h4 {
            color: #2e7d32;
            margin-bottom: 15px;
        }

        .upload-area {
            border: 2px dashed #4caf50;
            padding: 30px;
            text-align: center;
            border-radius: 15px;
            margin: 20px 0;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .upload-area:hover {
            background: #f8fdf8;
        }

        /* Wrapper scroll */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Jarak antara tabel dan tombol kembali */
#history-page .back-btn {
    margin-top: 20px;
}

        .history-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .history-table th,
        .history-table td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }

        .history-table th {
            background: linear-gradient(135deg, #4caf50, #2196f3);
            color: white;
        }

        .status-pending {
            color: #ff9800;
            font-weight: bold;
        }

        .status-paid {
            color: #4caf50;
            font-weight: bold;
        }
.status-paid {
    color: green;
    font-weight: bold;
}
.status-pending {
    color: orange;
    font-weight: bold;
}
.status-unpaid {
    color: red;
    font-weight: bold;
}

        .dashboard-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-bottom: 40px;
        }

        .stat-card {
            background: linear-gradient(135deg, #168447, #0e8d6f, #0ac089);
            color: white;
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        }

        .stat-card h3 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }

      /* --- Grafik agar proporsional --- */
.thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/*Untuk kolom tanggal*/
.table-wrapper table th,
.table-wrapper table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.table-wrapper table th:nth-child(6), /* kolom Tanggal */
.table-wrapper table td:nth-child(6) {
    width: 120px;          /* Lebar kolom tanggal */
    white-space: nowrap;   /* Jangan pecah ke baris baru */
}

/*Untuk tombol export di penyaluran*/
.btn-submit.btn-export {
    font-size: 12px;
    padding: 5px 10px;
}


.penyaluran-page .chart-container {
    width: 100%;
    height: 260px;
}

.penyaluran-page canvas {
    width: 100% !important;
    height: 100% !important;
}

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        .admin-table th,
        .admin-table td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }

        .admin-table th {
            background: #2e7d32;
            color: white;
        }

        .btn-small {
            padding: 8px 15px;
            font-size: 0.9rem;
            margin: 2px;
        }

        .btn-success {
            background: linear-gradient(135deg, #31c458, #5991c6, #31c458);
            color: white;
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
            transition: transform 0.15s ease, box-shadow 0.25s ease;
        }
        .btn-success:active {
    transform: scale(0.92);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4)
}
.btn-success:hover {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

        .btn-warning {
            background: #ff9800;
            color: white;
        }

        .btn-danger {
            background: #f44336;
            color: white;
        }

        @media (max-width: 768px) {
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .zakat-types {
                grid-template-columns: 1fr;
            }
            
            .dashboard-stats {
                grid-template-columns: 1fr;
            }
        }
        .btn-success {
    background-color: #10b981;
    color: white;
}
.btn-success:hover {
    background-color: #059669;
}
.btn-warning {
    background-color: #f59e0b;
    color: white;
}
.btn-warning:hover {
    background-color: #d97706;
}
/* ===========================================
   PENYALURAN PAGE STYLE (Isolated)
   =========================================== */
/*css serach penyaluran*/
.search-input {
    padding: 8px 10px;
    width: 260px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}


   .penyaluran-page {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ecfdf5 0%, #dbeafe 50%, #ccfbf1 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Header */
.penyaluran-page .header {
  background: linear-gradient(90deg, #10b981, #3b82f6);
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-bottom: 5px solid #22d3ee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Container utama */
.penyaluran-page .container {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Judul */
.penyaluran-page h2 {
  text-align: center;
  color: #065f46;
  margin-bottom: 1rem;
}

/* Tabel penyaluran */
.penyaluran-page table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.penyaluran-page th,
.penyaluran-page td {
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  text-align: left;
}

.penyaluran-page th {
  background: #10b981;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.penyaluran-page tr:nth-child(even) {
  background: #f0fdf4;
}

/* Tombol */
.penyaluran-page .btn {
  display: inline-block;
  background: linear-gradient(90deg, #10b981, #3b82f6);
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.penyaluran-page .btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Footer */
.penyaluran-page .footer {
  text-align: center;
  margin-top: 2rem;
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===============================
   PENYALURAN ZAKAT PAGE
   =============================== */
body.penyaluran-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ecfdf5 0%, #dbeafe 50%, #ccfbf1 100%);
    min-height: 100vh;
    padding: 2rem;
    margin: 0;
}

/* Container utama */
body.penyaluran-page .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
body.penyaluran-page .header {
    background: linear-gradient(135deg, #086e4e 0%, #02a595 100%);
    border-radius: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
}

body.penyaluran-page .header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

body.penyaluran-page .header p {
    color: #a7f3d0;
    font-size: 1.1rem;
    margin-top: 0;
}

/* Statistik grid */
.penyaluran-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.penyaluran-page .stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

body.penyaluran-page .stat-card:hover {
    transform: scale(1.02);
}

.penyaluran-page .stat-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #202f66;
}
.penyaluran-page .amount {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00a859;
}

body.penyaluran-page .chart-container {
    height: 180px;
}
/*chart penyaluran*/ 
.chart-container {
    position: relative;
    width: 100%;
    height: 220px;
}

@media (max-width: 768px) {
    .chart-container {
        height: 180px;
    }
}

/* Form section */
body.penyaluran-page .form-section {
    background: #f0fdfa;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

body.penyaluran-page .form-section h2 {
    margin-bottom: 1rem;
    color: #0f766e;
}

body.penyaluran-page .form-section p {
    color: #155e75;
    margin-bottom: 1.5rem;
}

body.penyaluran-page .form-group {
    margin-bottom: 1.2rem;
}

body.penyaluran-page .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #064e3b;
}

body.penyaluran-page .form-group input {
    width: 100%;
    padding: 0.7rem;
    border-radius: 0.5rem;
    border: 1px solid #a7f3d0;
    font-size: 1rem;
}

body.penyaluran-page .btn-submit.btn-export {
    padding: 0.35rem 0.75rem;  /* tinggi & lebar lebih kecil */
    font-size: 0.75rem;       /* teks lebih kecil */
    font-weight: 600;         /* tidak terlalu tebal */
}

/* Tombol submit */
body.penyaluran-page .btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
}

body.penyaluran-page .btn-submit:hover {
    background: linear-gradient(135deg, #1c4b35 0%, #04a194 100%);
}

/* Table section */
body.penyaluran-page .table-section {
    background: #ecfdf5;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.05);
}

body.penyaluran-page table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

body.penyaluran-page th, 
body.penyaluran-page td {
    padding: 0.8rem;
    border: 1px solid #d1fae5;
    text-align: left;
    text-align: center;
}

body.penyaluran-page th {
    background: linear-gradient(135deg, #198050, #099986);
    color: white;
}

body.penyaluran-page tr:nth-child(even) {
    background: #f0fdfa;
}

/* Tombol Aksi */
body.penyaluran-page .btn-hapus {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    cursor: pointer;
}

body.penyaluran-page .btn-hapus:hover {
    background: #dc2626;
}

/* Tombol kembali */
body.penyaluran-page .btn-back {
    background: #e5e7eb;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

body.penyaluran-page .btn-back:hover {
    background: #d1d5db;
}


/* ==========================================
   PERBAIKAN KHUSUS HALAMAN PENYALURAN
   Supaya layout dari atas ke bawah (vertical)
=========================================== */
.penyaluran-page .container {
    display: block !important;   /* bukan flex */
    flex-direction: column !important;
    padding: 20px !important;
    margin-top: 0 !important;
    width: 100%;
}

/* Header tetap full width */
.penyaluran-page .header {
    width: 100%;
    display: block;
    text-align: center;
    padding: 30px 20px;
}
/*edit hapus penyaluran*/
td.aksi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.btn-edit {
    background: #3498db;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
/* Popup Edit */
.popup-edit {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    max-width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.popup-box h2 {
    margin-top: 0;
}
.popup-box label {
    display: block;
    margin-top: 10px;
}
.popup-box input, .popup-box select, .popup-box textarea {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

.icon-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #4CAF50; /* hijau agar terlihat */
    color: white;
    font-size: 24px;
    border-radius: 50%;
    text-decoration: none;
    position: fixed; /* biar selalu di kiri atas layar */
    top: 20px;
    left: 20px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: background-color 0.2s;
}

.icon-back:hover {
    background-color: #388E3C; /* hijau lebih gelap saat hover */
}

/* Stats card disusun 2 kolom saat besar, 1 kolom saat HP */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 30px;
}

/* Form dan tabel full lebar */
.form-section,
.table-section {
    width: 100%;
    margin-top: 40px;
}

/* Tombol kembali rapi */
.btn-back {
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.social-icons i {
    font-size: 1.8rem;
}
/*Responsif untuk halaman utama yang atas */
/* ===============================
   RESPONSIVE KONTEN UTAMA (HERO)
=============================== */
@media (max-width: 768px) {

    .container {
        flex-direction: column;   /* dari kiri-kanan jadi atas-bawah */
        gap: 25px;
        padding: 20px;
    }

    .left-content,
    .right-content {
        width: 100%;              /* full lebar */
        text-align: center;
    }

    .judul-besar {
        font-size: 26px;          /* diperkecil di HP */
    }

    .deskripsi {
        width: 100%;
        font-size: 15px;
        text-align: justify;      /* tetap rapi */
    }

    .btn-lanjut {
        width: 100%;              /* tombol full */
        font-size: 16px;
    }

    .dropdown {
        width: 100%;
    }

    .img-zakat {
        max-width: 280px;         /* gambar diperkecil */
        margin: 0 auto;
    }
}
