/* ==========================================================================
   Header Navigation Stylesheet - Bikiran Training
   ========================================================================== */

.web-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: all 0.3s ease;
}

.web-header.position-high {
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.header-section {
    height: 76px;
    display: flex;
    align-items: center;
    width: 100%;
}

.web-header-gap {
    height: 76px;
}

.header-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

/* Brand Logo */
.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    height: 42px;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-logo-img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Desktop Menu */
.menu-area-s {
    margin-left: auto;
    margin-right: 28px;
}

.menu-top {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.menu-top > li > a {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    font-size: 14.5px;
    font-weight: 500;
    color: #334155;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-top > li > a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Auth Buttons (Guest) */
.auth-btn-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b-btn-login-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b !important;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.b-btn-login-outline:hover {
    background: #f1f5f9;
    border-color: #6366f1;
    color: #6366f1 !important;
    transform: translateY(-1px);
}

.b-btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    transition: all 0.25s ease;
}

.b-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
    color: #ffffff !important;
}

/* User Profile Dropdown (Logged In) */
.user-dropdown-wrapper {
    position: relative;
}

.user-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px 5px 6px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

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

.sideFooter-user-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.user-name-text {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-chevron {
    color: #64748b;
    transition: transform 0.2s ease;
}

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

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    z-index: 1001;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 14px 18px;
}

.dropdown-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-email {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-item svg {
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #6366f1;
}

.dropdown-item:hover svg {
    color: #6366f1;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger svg {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* ==========================================================================
   Mobile Menu & Sidebar Drawer
   ========================================================================== */
.mobile-menu {
    display: none;
}

.openBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #1e1b4b;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.openBtn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #6366f1;
}

.left-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.left-modal.active {
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.menu-content {
    background: #ffffff;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    text-align: left;
    overflow-y: auto;
}

.left-modal.active .menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
}

.closeBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    outline: none;
}

.closeBtn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.mobile-user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
}

.mobile-user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-user-meta strong {
    font-size: 14px;
    color: #0f172a;
}

.mobile-user-meta small {
    font-size: 12px;
    color: #64748b;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-list li a svg {
    color: #6366f1;
    flex-shrink: 0;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:active {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.mobile-drawer-footer {
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.mobile-auth-actions {
    display: flex;
    gap: 10px;
}

.b-btn-drawer-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e1b4b !important;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
}

.b-btn-drawer-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

/* Mobile Drawer Top Auth */
.mobile-drawer-auth-top {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* ==========================================================================
   Responsive Rules
   ========================================================================== */
@media (max-width: 991px) {
    .menu-area-s {
        display: none !important;
    }

    .mobile-menu {
        display: flex;
        align-items: center;
    }

    .header-actions {
        gap: 8px;
    }

    .auth-btn-group {
        gap: 8px;
    }

    .b-btn-login-outline {
        padding: 7px 14px;
        font-size: 13.5px;
    }

    .b-btn-register {
        padding: 7px 16px;
        font-size: 13.5px;
    }
}

@media (max-width: 575px) {
    .header-section {
        height: 64px;
        padding: 0 12px;
    }
    .header-logo {
        height: 34px;
    }
    .web-header-gap {
        height: 64px;
    }
    .header-actions {
        gap: 6px;
    }
    .auth-btn-group {
        gap: 6px;
    }
    .b-btn-login-outline {
        padding: 6px 10px;
        font-size: 12.5px;
        border-radius: 8px;
    }
    .b-btn-register {
        padding: 6px 12px;
        font-size: 12.5px;
        border-radius: 8px;
    }
    .user-name-text {
        display: none;
    }
}

@media (max-width: 380px) {
    .header-section {
        padding: 0 8px;
    }
    .header-actions {
        gap: 4px;
    }
    .auth-btn-group {
        gap: 4px;
    }
    .b-btn-login-outline {
        padding: 5px 8px;
        font-size: 11.5px;
    }
    .b-btn-register {
        padding: 5px 9px;
        font-size: 11.5px;
    }
    .openBtn {
        width: 34px;
        height: 34px;
    }
}
