/* SMART-i floating glass nav pill (iOS-style) */

.navbar-glass-wrap {
    gap: 0.75rem;
}

.navbar-glass-pill {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 0.3rem 0.45rem;
}

.navbar-glass-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
}

.navbar-glass-nav .nav-item {
    margin: 0;
}

.navbar-glass-nav .nav-link {
    color: #1e293b !important;
    font-weight: 500;
    font-size: 0.84rem;
    line-height: 1.25;
    padding: 0.5rem 0.9rem !important;
    margin: 0 !important;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-glass-nav .nav-link:hover,
.navbar-glass-nav .nav-link:focus {
    background: rgba(0, 122, 61, 0.1);
    color: #007a3d !important;
}

.navbar-glass-nav .nav-link.text-success {
    background: rgba(0, 122, 61, 0.14);
    color: #007a3d !important;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 122, 61, 0.12);
}

/* Navbar atas hero — kekalkan pill, longgarkan padding bar */
.navbar-custom:not(.nav-sticky) {
    background: transparent !important;
    box-shadow: none !important;
}

.navbar-custom:not(.nav-sticky) .navbar-glass-pill {
    background: rgba(255, 255, 255, 0.82);
}

/* Sticky: bar separuh lutsinar, pill lebih menonjol */
.nav-sticky.navbar-custom {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-sticky .navbar-glass-pill {
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 10px 40px rgba(0, 60, 30, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Override legacy navbar link colours inside pill */
.navbar-custom .navbar-glass-nav li a,
.navbar-custom.navbar-dark .navbar-glass-nav .nav-link,
.nav-sticky.navbar-custom .navbar-glass-nav li a {
    color: #1e293b !important;
}

.navbar-custom .navbar-glass-nav li a:hover,
.nav-sticky.navbar-custom .navbar-glass-nav li a:hover {
    color: #007a3d !important;
}

.navbar-glass-login {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 122, 61, 0.25);
}

@media (min-width: 992px) {
    .navbar-custom {
        padding: 14px 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-glass-wrap {
        width: 100%;
        margin-top: 0.75rem;
    }

    .navbar-custom {
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-sticky.navbar-custom {
        background: rgba(255, 255, 255, 0.55) !important;
    }

    .navbar-glass-pill {
        border-radius: 1.25rem;
        width: 100%;
        padding: 0.5rem;
    }

    .navbar-glass-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.15rem;
    }

    .navbar-glass-nav .nav-link {
        text-align: center;
        padding: 0.65rem 1rem !important;
    }

    .navbar-glass-login {
        width: 100%;
    }

    .navbar-custom:not(.nav-sticky) .navbar-toggler {
        color: #fff;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 0.75rem;
        padding: 0.35rem 0.55rem;
    }

    .nav-sticky .navbar-toggler,
    .navbar-custom.navbar-dark .navbar-toggler {
        color: #1e293b;
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
}
