/* ========================================
   Shared navigation chrome
   ----------------------------------------
   What survived the move to the vertical sidebar: the logo, the user
   dropdown, the profile/jewels cluster and the NAUJAS badge. The sidebar
   itself lives in vertical-navmenu.css and reuses these by name.
   ======================================== */

.nav-logo {
    height: 60px;
    min-width: 80px;
    object-fit: contain;
}


/* Shared dropdown surface (user menu) */
/* Opacity only — Bootstrap positions this menu with an inline `transform:
   translate3d(...)` from Popper, and a running animation outranks inline styles,
   so animating transform parks the menu at its untranslated origin for the
   duration and then snaps it into place. */
@keyframes nav-dropdown-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.875rem;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease !important;
    border-radius: 0 !important;
}

.nav-dropdown-item:hover {
    background: rgba(13, 202, 240, 0.1) !important;
    color: #fff !important;
    padding-left: 1.25rem !important;
}

.nav-badge-new {
    font-size: 0.6rem;
    padding: 0.2em 0.5em;
    background: linear-gradient(135deg, #0dcaf0, #0d6efd);
    color: #fff;
    border-radius: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* User profile area */
.nav-profile-btn {
    transition: opacity 0.2s ease;
}

.nav-profile-btn:hover {
    opacity: 0.85;
}

.nav-profile-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s ease;
}

.nav-profile-btn:hover .nav-profile-avatar {
    border-color: rgba(13, 202, 240, 0.5);
}

.nav-profile-name {
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Jewels amount beside the avatar in the sidebar's mobile top bar. */
.nav-profile-jewels {
    font-size: 0.8rem;
    opacity: 0.85;
}

.nav-jewel-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.nav-profile-caret {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.2s ease;
}

/* Bootstrap 5 marks the toggle, not the `.dropdown` wrapper — a `.dropdown.show`
   selector here silently never matched and the caret stayed put. */
[data-bs-toggle="dropdown"][aria-expanded="true"] .nav-profile-caret {
    transform: rotate(180deg);
}

/* User dropdown menu */
.nav-user-dropdown {
    background: rgba(15, 22, 33, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 0.5rem 0 !important;
    min-width: 200px;
    animation: nav-dropdown-fade 0.15s ease-out;
}

.nav-dropdown-divider {
    border-color: rgba(255, 255, 255, 0.08) !important;
    margin: 0.35rem 0.75rem !important;
}

