/* Shared AppTopMenuComponent styles (EUG + Preview). Linked from each host App.razor. */

/* Navbar stays in document flow inside .clubivate-app-shell (flex-shrink-0 in listview-page-fill.css).
   Do not use position:fixed here — it overlaps page content unless every host adds manual offset. */

nav.navbar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    z-index: 1040;
    flex-shrink: 0;
    overflow-x: clip;
}

.top-menu-navbar .container-fluid {
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-menu-status-toolbar {
    margin-left: auto;
}

.top-menu-navbar .dropdown-menu:not(.show) {
    display: none;
}

.top-menu-navbar .top-menu-nav-disabled {
    color: rgba(255, 255, 255, 0.55) !important;
}

.preview-app-navbar {
    padding-top: env(safe-area-inset-top, 0);
}

.navbar-brand-img {
    height: 40px;
    width: auto;
}

.mobile-menu-offcanvas {
    width: 100% !important;
    max-width: 100% !important;
    background-color: #033A3F !important;
    color: #fff;
}

.mobile-menu-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
}

.mobile-menu-offcanvas .offcanvas-title {
    color: #fff;
    font-weight: 600;
}

.mobile-menu-offcanvas .offcanvas-body {
    padding: 1.5rem;
}

.mobile-menu-user-info {
    text-align: center;
    padding: 1rem 0;
}

.mobile-menu-user-icon {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-user-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    word-break: break-word;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.15s ease-in-out;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.mobile-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.mobile-menu-link:focus {
    outline: none;
}

.mobile-menu-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.mobile-menu-actions {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-actions .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.mobile-menu-actions .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }

    .navbar-nav .nav-link.active {
        font-weight: 600;
    }
}
