/* Header styles moved from inline and <style> block */
.header-container {
    display: flex;
    flex-direction: row;
}

.nav-link.active {
    text-decoration: underline;
    line-height: 150%;
    color: #FF8300 !important;
    font-weight: 700;
}

.navbar-toggler-icon {
    padding: 12px;
}

.header-nav {
    z-index: 100;
}

.iseevn-avatar-dropdown {
    position: relative;
    margin-left: 8px;
    display: flex;
    align-items: center;
}

.header-username {
    margin-right: 8px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.header-avatar {
    border: 2px solid #003EAB;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-menu {
    position: absolute;
    right: 0;
    top: 44px;
    display: none;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 160px;
    z-index: 2000;
}

.avatar-menu .dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
}

/* Mobile: container for cloned navbar items */
.iseevn-avatar-dropdown .mobile-nav-copy {
    display: none;
}

@media (max-width: 992px) {

    /* Show the mobile nav copy inside avatar dropdown */
    .iseevn-avatar-dropdown .mobile-nav-copy {
        display: block;
        padding: 8px 0 0 0;
    }

    .iseevn-avatar-dropdown .mobile-nav-copy .navbar-nav {
        display: block;
        margin: 0;
        padding: 0;
    }

    .iseevn-avatar-dropdown .mobile-nav-copy .navbar-nav .nav-item {
        display: block;
        padding: 0;
    }

    .iseevn-avatar-dropdown .mobile-nav-copy .navbar-nav .nav-link {
        display: block;
        padding: 8px 16px;
        color: #333;
        text-decoration: none;
    }
}

/* Mobile/Tablet full-screen centered dropdown for #mainNavbar */
@media (max-width: 991.98px) {
    .mobile-dropdown.collapse {
        display: none;
    }

    .mobile-dropdown.collapse.show {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1040;
        padding: 1.5rem;
    }

    .mobile-dropdown .navbar-nav {
        text-align: center;
    }

    .mobile-dropdown .nav-link {
        font-size: 1.25rem;
        padding: .75rem 0;
        display: block;
    }
}