﻿.nav-container {
    display: flex;
    -ms-flex-direction: row;
    -webkit-flex-direction: row;
    flex-direction: row;
    justify-content: flex-end; /* keep all items on the right */
    align-items: center; /* align labels at the same baseline */
    gap: 70px; /* equal horizontal spacing */
    background-color: #2b2f80;
    padding: 0 50px;
    height: 60px;
}

/* Common style for nav items */
.nav-item {
    display: flex;
    flex-direction: column; /* stack icon above label */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
    line-height: 1.2;
    gap: 5px;
    position: relative;
    height: 100%;
}

    .nav-item img {
        height: 22px; /* uniform icon size */
        width: auto;
    }

    .nav-item span {
        font-size: 0.85rem;
        margin-top: 2px;
        line-height: 1;
    }

    .nav-item:hover {
        color: white;
        background-color: transparent;
    }

/* Profile dropdown setup */
.profile-container {
    position: relative;
}

.profile-container:hover::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* prevents flicker when moving down */
}

/* Default: hidden */
.profile-dropdown {
    display: none;
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%);
    background: #2b2f80;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 99999;
}

    /* Always allow Blazor to toggle it */
    .profile-dropdown.show {
        display: block;
    }

/* Dropdown item style */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
}

    .dropdown-item img {
        height: 15px;
    }

    .dropdown-item:hover {
        background-color: #FFFFFF33;
        color:white;
    }

