/* ============================
   GLOBAL LAYOUT - Padding untuk Fixed Navbar
============================ */
body {
    padding-top: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================
   NAVBAR CUSTOM STYLING
============================ */
.navbar-custom {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(30, 58, 95, 0.85) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar scrolled effect */
.navbar-custom.scrolled {
    background: rgba(30, 58, 95, 0.97) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ============================
   NAVBAR BRAND & TITLE
============================ */
.navbar-brand {
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05) rotate(3deg);
}

.navbar-title {
    color: white !important;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* ============================
   NAV LINKS STYLING
============================ */
.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    letter-spacing: 0.01em;
}

.navbar-custom .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Active Link with Underline Effect */
.navbar-custom .nav-link.active {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-custom .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        width: 0%;
        opacity: 0;
    }

    to {
        width: 50%;
        opacity: 1;
    }
}

/* ============================
   DROPDOWN MENU STYLING
============================ */
.navbar-custom .dropdown-menu {
    background: rgba(30, 58, 95, 0.97) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-top: 8px;
    padding: 0.5rem;
    animation: dropdownFadeIn 0.25s ease;
    transform-origin: top center;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.6rem 1rem;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    margin: 2px 0;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    padding-left: 1.25rem;
}

.navbar-custom .dropdown-toggle::after {
    margin-left: 0.4rem;
    transition: transform 0.3s ease;
    font-size: 0.7em;
}

.navbar-custom .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ============================
   NAVBAR TOGGLER (Mobile)
============================ */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.2);
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================
   RESPONSIVE - MOBILE
============================ */
@media (max-width: 991px) {
    body {
        padding-top: 65px;
    }

    .navbar-custom {
        min-height: 65px;
    }

    .navbar-collapse {
        background: rgba(30, 58, 95, 0.98);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar-custom .nav-link {
        padding: 0.65rem 1rem;
        border-radius: 8px;
    }

    .navbar-custom .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        transform: none;
    }

    .navbar-custom .nav-link.active::before {
        display: none;
    }

    .navbar-custom .nav-link.active {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .navbar-title {
        font-size: 0.95rem;
    }

    .navbar-custom .dropdown-menu {
        background-color: rgba(20, 48, 80, 0.95) !important;
        margin-top: 0.25rem;
        margin-left: 0.5rem;
        border: none;
        box-shadow: none;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 60px;
    }

    .navbar-custom {
        min-height: 60px;
    }

    .navbar-title {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }

    .navbar-brand img {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ============================
   SMOOTH SCROLL OFFSET
============================ */
html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* ============================
   LOGIN ICON STYLING
============================ */
.navbar-custom .nav-link i.fa-right-to-bracket {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.navbar-custom .nav-link:hover i.fa-right-to-bracket {
    transform: translateX(3px);
}