/* Shared AppTopMenuComponent styles (EUG + Preview). Linked from each host App.razor. */

nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1040;
}

.preview-app-navbar {
    padding-top: env(safe-area-inset-top, 0);
}

.navbar-brand-img {
    height: 40px;
    width: auto;
}

.mobile-menu-offcanvas {
    width: 100vw !important;
    max-width: 100vw !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;
    }
}
