@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ─── Global ─── */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1a2e1f;
    overflow-x: hidden;
    background-color: #ffffff;
    padding-top: 70px;
}

/* ════════════════════════════════
   NAVBAR
════════════════════════════════ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 70px;
}

.navbar-brand {
    color: #4F7C59;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1px;
}
.navbar-brand:hover {
    color: #2D5A3D;
}

.navbar-logo {
    height: 100px;
    width: auto;
    margin: -20px 2px -20px 0;
    filter: contrast(1.2) saturate(1.3);
    position: relative;
    z-index: 10;
}

.navbar .nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #5a6b5e !important;
    position: relative;
    padding: 6px 4px !important;
    transition: color 0.25s ease, transform 0.25s ease;
}
.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4F7C59;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}
.navbar .nav-link:hover {
    color: #4F7C59 !important;
    transform: translateY(-1px);
}
.navbar .nav-link:hover::after {
    width: 80%;
}

/* Login button */
.navbar .nav-link.nav-btn-login {
    background-color: #4F7C59;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 8px 22px !important;
    font-weight: 600;
    border: 2px solid #4F7C59;
    transition: all 0.25s ease;
}
.navbar .nav-link.nav-btn-login::after {
    display: none;
}
.navbar .nav-link.nav-btn-login:hover {
    background-color: transparent;
    color: #4F7C59 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(79,124,89,0.2);
}

/* ════════════════════════════════
   HAMBURGER
════════════════════════════════ */
.navbar-toggler {
    border: none;
    background: transparent;
    padding: 4px 6px;
    box-shadow: none !important;
    outline: none !important;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #4F7C59;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animasi X saat menu terbuka */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Dropdown mobile */
.navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0 0 16px 16px;
    padding: 0;
    margin-top: 0;
}

@media (max-width: 991px) {
    .navbar {
        height: auto;
        min-height: 70px;
    }

    .navbar-collapse {
        padding: 12px 8px 16px;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 8px;
    }

    .navbar .nav-link {
        padding: 10px 12px !important;
        border-radius: 8px;
    }

    .navbar .nav-link:hover {
        background-color: rgba(79, 124, 89, 0.06);
        transform: none;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .nav-link.nav-btn-login {
        display: inline-block;
        margin-top: 4px;
        text-align: center;
    }
}

/* ════════════════════════════════
   FOOTER
════════════════════════════════ */
footer {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #6b7c6e;
    border-top: 1px solid #e8f0e5;
    padding: 20px 0;
    text-align: center;
}

/* ─── Profil Dropdown ─── */
.nav-profil-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #D8E8D2;
    border-radius: 50px;
    padding: 5px 12px 5px 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-profil-btn:hover {
    border-color: #7DAA6E;
    background: #F4FAF1;
}
.nav-profil-btn::after {
    color: #4F7C59;
}
.nav-profil-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F7C59, #2D5A3D);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-profil-name {
    font-size: 13px;
    font-weight: 600;
    color: #2D5A3D;
}
.nav-dropdown {
    border: 1.5px solid #D8E8D2;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(45,90,61,0.12);
    padding: 6px;
    min-width: 180px;
}
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #2D5A3D;
    border-radius: 8px;
    padding: 9px 12px;
    transition: background 0.15s;
}
.nav-dropdown-item:hover {
    background: #F4FAF1;
    color: #2D5A3D;
}
.nav-dropdown-item i {
    width: 14px;
    color: #7DAA6E;
    font-size: 13px;
}
.nav-dropdown-divider {
    border-color: #D8E8D2;
    margin: 4px 0;
}
.nav-dropdown-logout {
    color: #c0392b !important;
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
}
.nav-dropdown-logout:hover {
    background: #fff5f5 !important;
}
.nav-dropdown-logout i {
    color: #c0392b !important;
}
