:root {
    --hijau-tua: #0b4f3a;
    --hijau: #0f7a52;
    --hijau-muda: #16a765;
    --emas: #d4af37;
    --emas-terang: #f2d675;
    --bg: #f4f7f5;
    --teks: #1c2b25;
    --card-bg: #ffffff;
    --border: #e1e8e4;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    color: var(--teks);
    font-family: 'Segoe UI', 'Poppins', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.navbar-custom {
    background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
    padding: 18px 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.navbar-custom .brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .brand span.icon {
    font-size: 1.6rem;
}

.hero {
    background: linear-gradient(160deg, var(--hijau-tua) 0%, var(--hijau) 55%, var(--hijau-muda) 100%);
    color: #fff;
    padding: 48px 0 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    max-width: 780px;
    margin: 0 auto 12px auto;
}

.hero p.subtitle {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    font-size: 1.02rem;
}

.container-main {
    max-width: 1040px;
    margin: -30px auto 40px auto;
    padding: 0 16px;
    position: relative;
    z-index: 2;
}

.card-custom {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 60, 40, 0.08);
    border: 1px solid var(--border);
    padding: 26px;
    margin-bottom: 24px;
}

.card-custom h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hijau-tua);
    margin-top: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==== KOTAK PEROLEHAN HARI INI - EFEK GLOW ==== */
.box-hari-ini {
    background: radial-gradient(circle at top, #08301f, #04140c 85%);
    border-radius: 18px;
    padding: 32px 20px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 0 40px rgba(15, 122, 82, 0.25) inset;
}

.box-hari-ini .label {
    color: #a9d9c4;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.angka-glow {
    font-size: clamp(2.4rem, 8vw, 4rem);
    font-weight: 900;
    color: #6dffc0;
    text-shadow:
        0 0 8px rgba(109, 255, 192, 0.9),
        0 0 22px rgba(109, 255, 192, 0.7),
        0 0 46px rgba(16, 200, 130, 0.55),
        0 0 80px rgba(16, 200, 130, 0.35);
    letter-spacing: 1px;
    animation: pulseGlow 2.4s ease-in-out infinite;
    margin: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(109, 255, 192, 0.9),
            0 0 22px rgba(109, 255, 192, 0.7),
            0 0 46px rgba(16, 200, 130, 0.55),
            0 0 80px rgba(16, 200, 130, 0.35);
    }
    50% {
        text-shadow:
            0 0 14px rgba(109, 255, 192, 1),
            0 0 34px rgba(109, 255, 192, 0.9),
            0 0 65px rgba(16, 200, 130, 0.75),
            0 0 110px rgba(16, 200, 130, 0.5);
    }
}

.box-hari-ini .tanggal-kecil {
    color: #7fbfa3;
    font-size: 0.85rem;
    margin-top: 6px;
}

/* ==== PROGRESS BAR ==== */
.progress-wrap {
    background: #eef3f0;
    border-radius: 999px;
    height: 26px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hijau), var(--emas));
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding-right: 8px;
    transition: width 0.6s ease;
    white-space: nowrap;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #4a5a52;
    margin-top: 6px;
}

/* ==== STATS GRID ==== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.stat-box {
    background: #f6faf8;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-box .val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hijau-tua);
}

.stat-box .lbl {
    font-size: 0.78rem;
    color: #6b7b73;
    margin-top: 2px;
}

/* ==== TABEL ==== */
.table-custom {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-custom th, .table-custom td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table-custom th {
    background: #eef6f1;
    color: var(--hijau-tua);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-custom tbody tr:hover {
    background: #fafdfb;
}

.badge-jenis {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-uang {
    background: #e3f6ec;
    color: var(--hijau-tua);
}

.badge-barang {
    background: #fdf3dc;
    color: #8a6d1f;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.94rem;
}

.info-list li:last-child { border-bottom: none; }

.info-list .ic {
    width: 22px;
    text-align: center;
    color: var(--hijau);
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover { opacity: 0.92; color: #fff; }

.footer-custom {
    text-align: center;
    padding: 26px 16px;
    color: #6b7b73;
    font-size: 0.85rem;
}

.timeline-item {
    border-left: 3px solid var(--hijau);
    padding-left: 16px;
    margin-bottom: 18px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -7.5px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--emas);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--hijau);
}

.timeline-item .tgl {
    font-size: 0.78rem;
    color: #6b7b73;
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-item h4 {
    margin: 4px 0;
    font-size: 1rem;
    color: var(--hijau-tua);
}

.empty-state {
    text-align: center;
    color: #8a978f;
    padding: 24px;
    font-size: 0.9rem;
}

/* ==== ADMIN ==== */
.admin-wrap {
    max-width: 960px;
    margin: 30px auto;
    padding: 0 16px;
}

.login-box {
    max-width: 380px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 34px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.form-control-custom {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d3ddd8;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-top: 4px;
}

.form-group-custom {
    margin-bottom: 16px;
}

.form-group-custom label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--teks);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary-custom:hover { opacity: 0.92; }

.btn-danger-custom {
    background: #d9534f;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
}

.btn-secondary-custom {
    background: #eef3f0;
    color: var(--teks);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: none;
}

.alert-custom {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.alert-success { background: #e3f6ec; color: #0b4f3a; border: 1px solid #b7e3cb; }
.alert-error { background: #fdeaea; color: #a83232; border: 1px solid #f3c2c2; }

.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.admin-nav a {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--hijau-tua);
    background: #eef6f1;
    font-size: 0.88rem;
    font-weight: 600;
}

.admin-nav a.active, .admin-nav a:hover {
    background: var(--hijau);
    color: #fff;
}

@media (max-width: 600px) {
    .hero h1 { font-size: 1.5rem; }
    .card-custom { padding: 18px; }
}
