@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

.navbar {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 66px;
    padding: 6px 0 !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid #FFC700 !important;
    z-index: 1000;
}

.navbar .container,
.navbar .container-xl,
.navbar .container-fluid {
    max-width: 1480px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .navbar .container-fluid {
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

.logo,
.navbar-brand img {
    height: 60px !important;
    max-height: 66px !important;
    width: auto !important;
    transition: 0.3s;
    object-fit: contain;
}

.navbar-brand {
    position: static !important;
    left: auto;
    top: auto;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav.mx-auto {
    justify-content: center;
    flex-grow: 1;
}

.navbar-nav .nav-item {
    padding: 0;
}

.navbar-nav .nav-link {
    color: #00A99D !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 6px 12px !important;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: #00564F !important;
}

.navbar-nav .nav-link.active {
    color: #003632 !important;
    font-weight: 900 !important;
}

/* Custom Action Buttons */
.btn-masuk {
    background-color: #00A99D !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 7px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-masuk:hover {
    background-color: #00877D !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 169, 157, 0.3);
}

.btn-daftar {
    background-color: #FFB800 !important;
    color: #ffffff !important;
    border-radius: 50px !important;
    padding: 7px 20px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-daftar:hover {
    background-color: #E5A500 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}

/* ── Desktop Standalone Admin Dashboard Button ── */
.btn-admin-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #f8fafc;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-admin-dashboard i {
    color: #00A99D;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-admin-dashboard:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-admin-dashboard:hover i {
    transform: scale(1.1);
}

/* ── Desktop Standalone User Quick Navigation Buttons (Tryout & Kelas Saya) ── */
.btn-user-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background: #f8fafc;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-user-nav i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-user-nav.btn-user-tryout i,
.btn-user-nav .fa-graduation-cap {
    color: #d97706;
}

.btn-user-nav.btn-user-course i,
.btn-user-nav .fa-laptop-code {
    color: #0284c7;
}

.btn-user-nav:hover {
    background: #f1f5f9;
    color: #0f172a !important;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.btn-user-nav:hover i {
    transform: scale(1.12);
}

.btn-user-nav.active {
    background: #e6f7f5;
    border-color: #00A99D;
    color: #00877D !important;
}

.btn-user-nav.active i {
    color: #00A99D !important;
}

/* ── Modern Minimalist User Pill & Dropdown ── */
.user-dropdown-container {
    position: relative;
}

.user-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
}

.user-pill-btn:hover,
.user-pill-btn[aria-expanded="true"] {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-pill-btn .user-avatar-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A99D 0%, #00877D 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0, 169, 157, 0.25);
    flex-shrink: 0;
    overflow: hidden;
}

.user-pill-btn .user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-pill-btn .user-name-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.2px;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-pill-btn .user-chevron {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-pill-btn[aria-expanded="true"] .user-chevron {
    transform: rotate(180deg);
}

/* Modern Minimalist Floating Dropdown Menu */
.navbar .dropdown-menu.modern-user-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    width: 250px;
    min-width: 240px;
    max-width: calc(100vw - 24px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #eef2f6;
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 16px 40px -6px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
    transform-origin: top right;
    animation: dropdownPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    display: none;
    margin: 0;
}

.navbar .dropdown-menu.modern-user-dropdown.show {
    display: block !important;
}

@keyframes dropdownPopIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modern-user-dropdown .user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 10px 10px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
}

.modern-user-dropdown .user-dropdown-header .header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00A99D 0%, #0284c7 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

.modern-user-dropdown .user-dropdown-header .header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.modern-user-dropdown .user-dropdown-header .header-info {
    overflow: hidden;
}

.modern-user-dropdown .user-dropdown-header .header-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-user-dropdown .user-dropdown-header .header-email {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748b;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modern-user-dropdown .dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-user-dropdown .dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.18s ease;
    cursor: pointer;
}

.modern-user-dropdown .dropdown-item-modern .item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Icon modern soft pastel themes */
.modern-user-dropdown .dropdown-item-modern.item-dashboard .item-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.modern-user-dropdown .dropdown-item-modern.item-tryout .item-icon {
    background: #fef3c7;
    color: #d97706;
}

.modern-user-dropdown .dropdown-item-modern.item-course .item-icon {
    background: #e0f2fe;
    color: #0284c7;
}

.modern-user-dropdown .dropdown-item-modern.item-profile .item-icon {
    background: #f1f5f9;
    color: #475569;
}

.modern-user-dropdown .dropdown-item-modern.item-logout .item-icon {
    background: #ffe4e6;
    color: #e11d48;
}

.modern-user-dropdown .dropdown-item-modern:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(3px);
}

.modern-user-dropdown .dropdown-item-modern:hover .item-icon {
    transform: scale(1.08);
}

.modern-user-dropdown .dropdown-item-modern.item-logout {
    color: #e11d48;
}

.modern-user-dropdown .dropdown-item-modern.item-logout:hover {
    background: #fff1f2;
    color: #be123c;
}

.modern-user-dropdown .dropdown-divider-modern {
    height: 1px;
    background: #f1f5f9;
    margin: 5px 4px;
}

/* ── Modern Animated 3-Line Hamburger Toggler ── */
.navbar-toggler {
    display: none !important;
    padding: 6px 8px !important;
    width: 40px !important;
    height: 40px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

@media (max-width: 1199.98px) {
    .navbar-toggler {
        display: flex !important;
    }
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2.5px;
    background-color: #00A99D;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.navbar-toggler.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-toggler.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggler.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Mobile Guest Icon ── */
.btn-guest-mobile {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #00A99D;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-guest-mobile:hover {
    background: #00A99D;
    color: #ffffff;
}

/* ── Mobile & Tablet Dedicated Top Header (< 1200px) ── */
.navbar-mobile-header {
    min-height: 48px;
    width: 100%;
}

.navbar-brand-mobile {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* When guest: Logo stays on the left */
.navbar-mobile-header.is-guest .navbar-brand-mobile,
.navbar-brand-mobile.is-left {
    position: static !important;
    transform: none !important;
    margin-right: auto !important;
    z-index: 10 !important;
}

/* When authenticated: Logo locked in the center */
.navbar-mobile-header.is-authenticated .navbar-brand-mobile,
.navbar-brand-mobile.is-center {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    justify-content: center !important;
}

.navbar-brand-mobile img {
    height: 48px !important;
    max-height: 52px !important;
    width: auto !important;
    object-fit: contain;
}

@media (max-width: 575.98px) {
    .navbar-brand-mobile img {
        height: 42px !important;
    }
}

/* ── Mobile & Tablet Layout (< 1200px): Dropdown Left | Logo Center | Hamburger Right ── */
@media (max-width: 1199.98px) {
    .navbar-user-slot {
        z-index: 20 !important;
        display: flex !important;
        align-items: center !important;
    }

    .navbar-toggler {
        margin-left: auto !important;
        z-index: 20 !important;
    }

    .navbar-collapse {
        width: 100% !important;
        background-color: #ffffff;
        padding: 16px 20px;
        border-radius: 16px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
        margin-top: 12px;
        border: 1px solid #f1f5f9;
        text-align: center;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        width: 100%;
    }

    .navbar-nav .nav-item {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .navbar-nav .nav-link {
        text-align: center !important;
        display: inline-block;
        width: 100%;
        padding: 10px 14px !important;
        border-radius: 10px;
    }

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: #f0fdfa;
    }

    /* User dropdown opens from the left side on mobile/tablet */
    .navbar .dropdown-menu.modern-user-dropdown {
        left: 0 !important;
        right: auto !important;
        transform-origin: top left !important;
    }
}

@media (min-width: 1200px) {
    .navbar-brand {
        position: static !important;
        transform: none !important;
        margin-right: 1.5rem !important;
    }

    .navbar-user-slot {
        margin-left: auto !important;
    }

    .navbar .dropdown-menu.modern-user-dropdown {
        right: 0 !important;
        left: auto !important;
        transform-origin: top right !important;
    }
}

@media (max-width: 575.98px) {
    .logo,
    .navbar-brand img {
        height: 44px !important;
    }

    .user-pill-btn {
        padding: 4px 8px 4px 4px;
    }

    .navbar .dropdown-menu.modern-user-dropdown {
        width: 230px;
        left: 0 !important;
        right: auto !important;
    }
}
