/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-shell[b-hxhcus9n49] {
    display: flex;
    min-height: 100vh;
}

.sidebar-toggle-input[b-hxhcus9n49],
.sidebar-collapse-toggle-input[b-hxhcus9n49] {
    display: none;
}

.sidebar[b-hxhcus9n49] {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 1.25rem 0.9rem;
    transform: translateX(-100%);
    transition: transform 0.2s ease, width 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
    z-index: 40;
    /* Only the links scroll (NavMenu), so the brand and MPS logo stay in view. */
    overflow: hidden;
    /* Column layout so the MPS logo in NavMenu can sit at the bottom. */
    display: flex;
    flex-direction: column;
}

.sidebar-backdrop[b-hxhcus9n49] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 30;
}

.sidebar-toggle-input:checked ~ .sidebar[b-hxhcus9n49] {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
}

.sidebar-toggle-input:checked ~ .sidebar-backdrop[b-hxhcus9n49] {
    display: block;
}

.app-main[b-hxhcus9n49] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar[b-hxhcus9n49] {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0 1.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.hamburger[b-hxhcus9n49] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.hamburger:hover[b-hxhcus9n49] {
    background: var(--color-surface-alt);
}

.hamburger span[b-hxhcus9n49] {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
}

.sidebar-toggle-btn[b-hxhcus9n49] {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--color-text-muted);
}

.sidebar-toggle-btn svg[b-hxhcus9n49] {
    width: 1.2rem;
    height: 1.2rem;
}

.sidebar-toggle-btn:hover[b-hxhcus9n49] {
    background: var(--color-surface-alt);
    color: var(--color-text);
}

.topbar-title[b-hxhcus9n49] {
    font-weight: 700;
    letter-spacing: 0.01em;
    /* Pushes help, account and log-out to the right. */
    margin-right: auto;
}

.account-badge[b-hxhcus9n49] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
}

.account-avatar[b-hxhcus9n49] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.account-info[b-hxhcus9n49] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.account-name[b-hxhcus9n49] {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.account-role[b-hxhcus9n49] {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .account-info[b-hxhcus9n49] {
        display: none;
    }
}

.logout-form[b-hxhcus9n49] {
    display: flex;
    align-items: center;
    margin-left: 0.4rem;
}

.logout-btn svg[b-hxhcus9n49] {
    width: 1.1rem;
    height: 1.1rem;
}

.content[b-hxhcus9n49] {
    flex: 1;
    padding: 1.25rem;
    max-width: 1280px;
    width: 100%;
}

@media (min-width: 900px) {
    .sidebar[b-hxhcus9n49] {
        position: sticky;
        transform: none;
    }

    .sidebar-backdrop[b-hxhcus9n49] {
        display: none !important;
    }

    .hamburger[b-hxhcus9n49] {
        display: none;
    }

    .sidebar-toggle-btn[b-hxhcus9n49] {
        display: inline-flex;
    }

    .sidebar-collapse-toggle-input:checked ~ .sidebar[b-hxhcus9n49] {
        width: 0;
        padding: 0;
        border-right: 0;
        overflow: hidden;
        opacity: 0;
    }

    .sidebar-collapse-toggle-input:checked ~ .app-main .content[b-hxhcus9n49] {
        max-width: none;
    }

    .content[b-hxhcus9n49] {
        padding: 2rem 2.5rem;
        transition: max-width 0.2s ease;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.brand[b-8bvd7hnkd9] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem 1.75rem;
}

.brand-mark[b-8bvd7hnkd9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.brand-name[b-8bvd7hnkd9] {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}

.nav-links[b-8bvd7hnkd9] {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

    .nav-links[b-8bvd7hnkd9]  .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.45rem 0.75rem;
        border-radius: var(--radius-sm);
        color: var(--color-text-muted);
        font-size: 0.92rem;
        font-weight: 500;
    }

        .nav-links[b-8bvd7hnkd9]  .nav-link svg {
            width: 1.1rem;
            height: 1.1rem;
            flex-shrink: 0;
        }

        .nav-links[b-8bvd7hnkd9]  .nav-link:hover {
            background: var(--color-surface-alt);
            color: var(--color-text);
        }

    .nav-links[b-8bvd7hnkd9]  a.active {
        background: var(--color-primary-light);
        color: var(--color-primary);
    }

.brand[b-8bvd7hnkd9] {
    flex-shrink: 0;
}

/* Links and MPS footer scroll together under the brand, so the SimVision brand
   always stays in view. */
.sidebar-scroll[b-8bvd7hnkd9] {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
}

.nav-links[b-8bvd7hnkd9] {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

/* MPS logo and copyright at the bottom: pushed down when the menu is short,
   after the links when it is long. */
.sidebar-footer[b-8bvd7hnkd9] {
    flex-shrink: 0;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.6rem 0.25rem;
    border-top: 1px solid var(--color-border);
}

/* The logo links to mps.aero. */
.mps-footer[b-8bvd7hnkd9] {
    display: flex;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}

.copyright[b-8bvd7hnkd9] {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.mps-footer:hover[b-8bvd7hnkd9],
.mps-footer:focus-visible[b-8bvd7hnkd9] {
    opacity: 1;
}

.mps-footer img[b-8bvd7hnkd9] {
    display: block;
    width: 110px;
    height: auto;
}

/* The logo is dark navy; show it white on the dark sidebar. */
@media (prefers-color-scheme: dark) {
    .mps-footer img[b-8bvd7hnkd9] {
        filter: brightness(0) invert(1);
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-hmq106qaz8],
.components-reconnect-repeated-attempt-visible[b-hmq106qaz8],
.components-reconnect-failed-visible[b-hmq106qaz8],
.components-pause-visible[b-hmq106qaz8],
.components-resume-failed-visible[b-hmq106qaz8],
.components-rejoining-animation[b-hmq106qaz8] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-retrying[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-failed[b-hmq106qaz8],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-hmq106qaz8] {
    display: block;
}


#components-reconnect-modal[b-hmq106qaz8] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-hmq106qaz8 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-hmq106qaz8 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-hmq106qaz8 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-hmq106qaz8]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-hmq106qaz8 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-hmq106qaz8 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-hmq106qaz8 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-hmq106qaz8 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-hmq106qaz8] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-hmq106qaz8] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-hmq106qaz8] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-hmq106qaz8] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-hmq106qaz8] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-hmq106qaz8] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-hmq106qaz8] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-hmq106qaz8 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-hmq106qaz8] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-hmq106qaz8 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
