/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 15px 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

/* FORCE FULL WIDTH */
nav.navbar {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    box-sizing: border-box;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    color: #2e7d32;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 3px;
    width: 0%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ===== ANALYSIS DROPDOWN (MATCH THEME) ===== */
.nav-dropdown {
    position: relative;
}


.nav-dropdown > .nav-link {
    cursor: pointer;
}

/* Dropdown panel */
.dropdown-menu {
    position: absolute;
    top: 100%;          /* nempel ke menu */
    margin-top: 8px;    /* jarak visual tanpa memutus hover */
    left: 0;
    transform: none;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 6px 0;
    min-width: 140px;
    display: none;
    z-index: 2000;
}

/* Dropdown items */
.dropdown-item {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    position: relative;
}

/* Same underline animation */
.dropdown-item::after {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 4px;
    height: 3px;
    width: 0%;
    background: #4caf50;
    transition: width 0.3s ease;
}

.dropdown-item:hover::after,
.dropdown-item.active::after {
    width: calc(100% - 36px);
}

/* Show dropdown on hover */
/* .nav-dropdown:hover .dropdown-menu {
    display: block;
} */

/* ===== ACTIVE MENU ===== */
.nav-link.active {
    color: #1b5e20;
}

.nav-link.active::after {
    width: 100%;
}
