/* Professional Navigation Menu Styles */
.bpt-nav-menu {
    padding: 0.25rem;
    font-family: 'Neusa Next Std', 'robotoregular', Arial;
    /* Keep the menu within the drawer width and never expose a horizontal
       scrollbar: box-sizing stops the padding from widening the element,
       overflow-x clips hover transforms and nested-group indentation. */
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

/* Truncate long labels with an ellipsis instead of forcing the menu wider. */
.bpt-nav-menu .mud-nav-link-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tighten the vertical rhythm between items to save space (default MudBlazor
   nav-link padding is ~0.75rem top/bottom). Horizontal padding is preserved
   so indentation and readability are unaffected. */
.bpt-nav-menu .mud-nav-link {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    min-height: 0;
}

.bpt-nav-section-label {
    margin: 0.25rem 1rem 0.05rem 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bpt-nav-section-label:hover {
    opacity: 1;
}

.bpt-nav-divider {
    margin: 0.25rem 0;
    opacity: 0.6;
}

.bpt-nav-item {
    border-radius: 8px;
    margin: 0.15rem 0.5rem;
    transition: all 0.2s ease;
}

.bpt-nav-item:hover {
    transform: translateX(4px);
    background-color: rgba(0, 0, 0, 0.04);
}

.bpt-nav-item.mud-selected {
    background-color: var(--mud-palette-primary);
    color: white;
    font-weight: 500;
}

.bpt-nav-item.mud-selected:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bpt-nav-sign-out {
    margin: 1rem 0.5rem 0.5rem 0.5rem;
    border-radius: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 1rem;
    transition: all 0.2s ease;
}

.bpt-nav-sign-out:hover {
    transform: translateX(4px);
    background-color: rgba(244, 67, 54, 0.08);
    color: var(--mud-palette-error);
}

/* Dark theme support */
.mud-theme-dark .bpt-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .bpt-nav-sign-out {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.mud-theme-dark .bpt-nav-sign-out:hover {
    background-color: rgba(244, 67, 54, 0.15);
}

/* Smooth transitions for expand/collapse */
.mud-navmenu-item-group .mud-collapse-container {
    transition: height 0.3s ease;
}

/* Icon styling in navigation */
.bpt-nav-item .mud-icon-root {
    transition: transform 0.2s ease;
}

.bpt-nav-item:hover .mud-icon-root {
    transform: scale(1.1);
}
