/* ======================================================= */
/* 1. GLOBAL & RESET (FLEXBOX STICKY FOOTER SETUP) */
/* ======================================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #F4F7FE; 
    color: #2B3674;
    
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* ======================================================= */
/* 2. NAVIGATION (Glassmorphism) */
/* ======================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    flex-shrink: 0; /* Header tidak boleh gepeng */
}

.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 26px; color: #0b1a3c; letter-spacing: -0.5px; }
.logo-img { height: 45px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: #5d6778; }
.nav-links a:hover { color: #0d6efd; }

/* Dropdown Modern */
.dropdown { position: relative; cursor: pointer; }
.dropdown::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
.dropdown-content {
    position: absolute; top: 140%; right: 0; width: 240px; background: #ffffff;
    border-radius: 12px; padding: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #edf2f7; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column;
}
.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateY(0); top: 100%; }
.dropdown-item { padding: 10px 15px; margin-bottom: 2px; font-size: 14px; border-radius: 8px; color: #4a5568; transition: all 0.2s; }
.dropdown-item:hover { background: #f0f5ff; color: #0d6efd; padding-left: 20px; }

/* ======================================================= */
/* 3. MAIN CONTENT LAYOUT (PERBAIKAN FOOTER DISINI) */
/* ======================================================= */
.page-content {
    /* Flex: 1 akan memaksa konten mengisi ruang kosong antara Header & Footer */
    flex: 1 0 auto; 
    width: 100%;
    padding: 40px 50px; /* Padding standar */
    padding-bottom: 80px; /* Jarak aman ke footer */
}

.section-title {
    text-align: center; margin: 80px 0 40px; font-size: 36px;
    font-weight: 800; color: #0b1a3c; position: relative;
    display: inline-block; width: 100%;
}

/* ======================================================= */
/* 4. HERO SECTION */
/* ======================================================= */
.hero {
    position: relative;
    background: linear-gradient(150deg, rgba(11, 26, 60, 0.95) 0%, rgba(32, 118, 247, 0.8) 90%), url('/assets/putih.jpeg');
    background-size: cover; background-position: center; color: white;
    padding: 180px 20px 140px; text-align: center; border-radius: 0 0 50px 50px;
    margin-bottom: 60px; box-shadow: 0 20px 60px rgba(13, 110, 253, 0.15);
}
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; line-height: 1.2; }
.hero p { font-size: 1.25rem; font-weight: 300; opacity: 0.9; max-width: 700px; margin: 0 auto; }
.hero-top-right-logo { position: absolute; top: 30px; right: 50px; width: 150px; height: auto; z-index: 10; }
@media (max-width: 768px) { .hero-top-right-logo { width: 100px; top: 20px; right: 20px; } }

/* ======================================================= */
/* 5. CARDS & ELEMENTS */
/* ======================================================= */
.gallery {
    display: flex; gap: 20px; overflow-x: auto; padding: 10px 20px 40px;
    scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none;
    min-height: 280px; align-items: center;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
    height: 220px; width: 350px; object-fit: cover; border-radius: 20px;
    flex-shrink: 0; box-shadow: 0 10px 20px rgba(0,0,0,0.08); transition: transform 0.3s ease; background: #fff;
}
.gallery img:hover { transform: scale(1.03); }

.news-container, .leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 0 10px; }

.news-card, .leader-box {
    background: #ffffff; border-radius: 24px; overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(11, 26, 60, 0.04); border: 1px solid rgba(255,255,255,0.5);
    display: flex; flex-direction: column;
}
.news-card:hover, .leader-box:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(11, 26, 60, 0.12); }

.news-card img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #f0f0f0; }
.leader-box img { width: 100%; height: 380px; object-fit: contain; object-position: bottom; background-color: transparent; margin-top: 15px; }

.news-card h3, .leader-box h3 { padding: 25px 25px 10px; font-size: 1.2rem; color: #0b1a3c; margin: 0; }
.news-card p { padding: 0 25px 25px; color: #718096; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; }
.leaders { display: flex; justify-content: center; flex-wrap: wrap; }
.leader-box { width: 300px; text-align: center; height: auto; }
.leader-box h4 { padding: 0 15px 20px; margin: 0; color: #0d6efd; font-weight: 500; font-size: 0.9rem; }

.news-card button {
    margin: 0 25px 25px; padding: 10px 20px; background-color: #f0f5ff;
    color: #0d6efd; border: none; border-radius: 12px; font-weight: 600;
    cursor: pointer; transition: 0.2s; width: fit-content;
}
.news-card button:hover { background-color: #0d6efd; color: white; }

/* ======================================================= */
/* 6. TABLE & MODALS */
/* ======================================================= */
.table-container {
    background: #ffffff; border-radius: 20px; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.03);
    margin: 0 auto 30px; width: 100%; overflow: hidden; border: 1px solid #eff0f6; overflow-x: auto;
}
.table-header { display: flex; justify-content: space-between; align-items: center; padding: 25px 30px; background: #ffffff; }
.table-header h2 { margin: 0; font-size: 20px; color: #0b1a3c; }

.btn-add {
    background: linear-gradient(135deg, #0d6efd 0%, #0043ce 100%); color: white;
    padding: 10px 24px; border-radius: 10px; font-size: 14px; font-weight: 500;
    border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3); transition: 0.3s;
}
.btn-add:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4); }

.table-custom { width: 100%; border-collapse: collapse; min-width: 1000px; }
.table-custom thead tr { background-color: #f8f9fa; text-align: left; }
.table-custom th { padding: 18px 25px; font-size: 13px; font-weight: 600; color: #64748b; text-transform: uppercase; border-bottom: 2px solid #edf2f7; white-space: nowrap; }
.table-custom td { padding: 18px 25px; font-size: 14px; color: #2B3674; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.table-custom tr:last-child td { border-bottom: none; }
.table-custom tbody tr:hover { background-color: #fcfdff; }

.action-link { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; text-decoration: none; transition: 0.2s; }
.action-edit { background-color: #e0f2ff; color: #0066cc; }
.action-edit:hover { background-color: #0066cc; color: white; }
.action-delete { background-color: #ffe5e5; color: #cc0000; margin-left: 5px; }
.action-delete:hover { background-color: #cc0000; color: white; }

.modal, .modal-overlay {
    display: none; position: fixed; z-index: 999999; left: 0; top: 0;
    width: 100%; height: 100%; overflow: hidden; background: rgba(11, 26, 60, 0.7);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); justify-content: center; align-items: center;
}
.modal[style*="display: flex"], .modal-overlay[style*="display: flex"] { display: flex !important; }
.modal-content, .modal-box {
    background: #ffffff; padding: 30px; border-radius: 20px; width: 150%; max-width: 600px;
    max-height: 85vh; overflow-y: auto; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
@keyframes zoomIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.close-btn, .modal-close {
    position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold;
    color: #a0aec0; cursor: pointer; transition: 0.2s; line-height: 1;
}
.close-btn:hover, .modal-close:hover { color: #e53e3e; }

/* ======================================================= */
/* 7. FOOTER FIXED (SELALU DI BAWAH) */
/* ======================================================= */
footer {
    flex-shrink: 0; /* Footer tidak boleh mengecil */
    margin-top: auto; /* Mendorong footer ke bawah jika konten sedikit */
    background: #0b1a3c;
    color: rgba(255,255,255,0.7);
    padding: 60px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
footer strong { color: white; }

.btn-download, .btn-import {
    color: white; padding: 10px 24px; border-radius: 10px; font-size: 14px;
    font-weight: 500; border: none; cursor: pointer; transition: 0.3s;
    text-decoration: none; display: inline-block;
}
.btn-download { background: linear-gradient(135deg, #198754 0%, #157347 100%); box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3); }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4); color: white; }
.btn-import { background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%); box-shadow: 0 4px 15px rgba(111, 66, 193, 0.3); padding: 8px 16px; }
.btn-import:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4); color: white; }

/* ======================================================= */
/* 8. STYLE KHUSUS HALAMAN REKON (MODERN & RAPI) */
/* ======================================================= */

/* Card Modern */
.card-modern {
    background: #fff; border: none; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); margin-bottom: 24px; overflow: hidden;
}
.card-header-modern {
    background: #fff; padding: 20px 25px; border-bottom: 1px solid #f0f0f0;
    font-weight: 700; color: #1e293b; font-size: 16px; display: flex; align-items: center; gap: 10px;
}
.card-body-modern { padding: 25px; }

/* Input Group yang Rapi */
.input-group-custom {
    display: flex; width: 100%; border-radius: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.input-group-custom .input-group-text {
    background-color: #f8fafc; border: 1px solid #e2e8f0; border-right: none;
    color: #64748b; font-weight: 600; padding: 12px 15px; border-radius: 10px 0 0 10px; display: flex; align-items: center;
}
.input-group-custom .form-control {
    border: 1px solid #e2e8f0; border-left: none; padding: 12px 15px;
    font-weight: 600; color: #334155; border-radius: 0 10px 10px 0; height: 50px; width: 100%; flex: 1;
}
.input-group-custom .form-control:focus { border-color: #3b82f6; box-shadow: none; outline: none; }
.form-label-custom { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }

/* Sticky Sidebar & Total Card */
.sticky-sidebar { position: sticky; top: 100px; z-index: 10; }
.total-card {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); color: white;
    padding: 30px; border-radius: 16px; text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25); margin-bottom: 20px;
}
.total-title { font-size: 12px; text-transform: uppercase; font-weight: 600; opacity: 0.8; margin-bottom: 5px; }
.total-amount { font-size: 32px; font-weight: 800; letter-spacing: -1px; }

/* Upload Modern */
.upload-modern-wrapper { position: relative; width: 100%; margin-bottom: 20px; }
.input-file-hidden { position: absolute; width: 0.1px; height: 0.1px; opacity: 0; overflow: hidden; z-index: -1; }
.upload-label-btn {
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    width: 100%; padding: 25px; border: 2px dashed #cbd5e1; border-radius: 12px;
    background-color: #f8fafc; color: #64748b; cursor: pointer; transition: all 0.3s ease;
}
.upload-label-btn:hover { background-color: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.upload-icon-large { font-size: 32px; margin-bottom: 10px; color: #94a3b8; }
.upload-label-btn:hover .upload-icon-large { color: #3b82f6; }
.file-name-display {
    margin-top: 10px; font-size: 13px; font-weight: 600; color: #0f172a;
    background: #e2e8f0; padding: 5px 15px; border-radius: 20px; display: none;
}

/* Submit Button Modern */
.btn-submit-modern {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: white;
    font-weight: 700; padding: 15px 30px; border-radius: 12px; border: none; width: 100%;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-submit-modern:hover {
    transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}
.btn-submit-modern:active { transform: translateY(0); }

/* === PAGE === */
.page-content {
    padding: 60px 20px;
    min-height: 70vh;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #0b2a4a;
}

.page-desc {
    margin-top: 8px;
    color: #555;
}

/* === GRID === */
.rekon-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

/* === CARD === */
.rekon-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    color: #0b2a4a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all .3s ease;
}

.rekon-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.rekon-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

/* === FORM CARD === */
.form-card {
    margin-top: 40px;
    max-width: 420px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-card select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 20px;
}

/* === BUTTON === */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #003c8f);
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.btn-primary:hover {
    opacity: 0.9;
}

