/* --- assets/css/style.css --- */

/* 1. RESET & FONTS */
* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif; /* Font modern */
    box-sizing: border-box;
}

/* 2. BACKGROUND GRADIENT (HIJAU SEGAR) */
body {
    background: linear-gradient(135deg, #d8f3dc, #b7e4c7, #95d5b2);
    min-height: 100vh;
    color: #333;
    padding-bottom: 50px;
}

/* 3. NAVBAR GLASSMORPHISM */
.nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.4); /* Transparan */
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav .brand {
    font-size: 24px;
    font-weight: 700;
    color: #064420; /* Hijau Tua */
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav ul li a {
    text-decoration: none;
    color: #1b4332;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav ul li a:hover, .nav ul li a.active {
    background: rgba(255, 255, 255, 0.6);
    color: #064420;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 4. KARTU UTAMA (CONTENT CARD) */
.content-card, .login-card {
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.55); /* Efek Kaca */
    margin: 40px auto;
    padding: 40px;
    backdrop-filter: blur(15px);
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.content-card h2 {
    color: #064420;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(6, 68, 32, 0.1);
    padding-bottom: 15px;
}

/* 5. FORM & INPUTS */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2) !important;
    border-color: #2d6a4f !important;
}

/* 6. TOMBOL */
.btn-primary {
    background: #2d6a4f !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: 0.3s !important;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.btn-primary:hover {
    background: #1b4332 !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: white !important;
    color: #2d6a4f !important;
    border: 2px solid #2d6a4f !important;
    padding: 10px 25px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background: #2d6a4f !important;
    color: white !important;
}

/* 7. ACCORDION (List Gejala) */
.accordion-button {
    background: rgba(255, 255, 255, 0.6) !important;
    color: #064420 !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1b4332 !important;
}

.accordion-item {
    background: transparent !important;
    border: none !important;
    margin-bottom: 10px;
}

/* 8. TABLE STYLING */
.table {
    --bs-table-bg: transparent !important;
}
.table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.4) !important;
}

/* 9. PENGATURAN CETAK (PRINT) */
@media print {
    .nav, .btn, footer, .d-print-none { display: none !important; }
    body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 0; }
    .content-card {
        box-shadow: none !important; border: none !important;
        background: white !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
    }
    .alert { border: 1px solid #000 !important; color: #000 !important; }
}