/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ===== Layout ===== */
.page[b-6ogmtugder] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-6ogmtugder] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ===== Sidebar ===== */
.sidebar[b-6ogmtugder] {
    background: linear-gradient(160deg, #05276b 0%, #0d1f4e 50%, #2d0540 100%);
    display: flex;
    flex-direction: column;
}

/* nav-scrollable: flex-grow region between brand and footer */
.nav-scrollable[b-6ogmtugder] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* ===== Brand ===== */
.sidebar-brand[b-6ogmtugder] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.brand-link[b-6ogmtugder] {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: white;
}

.brand-link:hover[b-6ogmtugder] {
    color: rgba(255,255,255,0.85);
}

.brand-icon[b-6ogmtugder] {
    font-size: 1.6rem;
    color: #7fffb2;
}

.brand-text[b-6ogmtugder] {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name[b-6ogmtugder] {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

.brand-tagline[b-6ogmtugder] {
    font-size: .68rem;
    color: rgba(255,255,255,0.5);
}

/* ===== Toggler buttons ===== */
.toggler-btn[b-6ogmtugder] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: .4rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .15s ease, color .15s ease;
    flex-shrink: 0;
}

.toggler-btn:hover[b-6ogmtugder] {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

/* Light variant for the white top-row */
.toggler-btn--light[b-6ogmtugder] {
    background: transparent;
    border-color: #dee2e6;
    color: #495057;
}

.toggler-btn--light:hover[b-6ogmtugder] {
    background: #f1f3f5;
    color: #212529;
    border-color: #ced4da;
}

/* Close (X) button inside the drawer: hidden on desktop, shown on mobile */
.sidebar-close-btn[b-6ogmtugder] {
    display: none;
}

/* ===== Sidebar footer ===== */
.sidebar-footer[b-6ogmtugder] {
    margin-top: auto;
    padding: .75rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user[b-6ogmtugder] {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,0.6);
    font-size: .8rem;
    margin-bottom: .5rem;
}

.sidebar-user-icon[b-6ogmtugder] {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.45);
}

.sidebar-user-name[b-6ogmtugder] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout-btn[b-6ogmtugder] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: .45rem .85rem;
    font-size: .82rem;
    border-radius: .5rem;
    border: 1px solid rgba(220,53,69,0.45);
    background: rgba(220,53,69,0.1);
    color: rgba(255,120,130,0.9);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.sidebar-logout-btn:hover[b-6ogmtugder] {
    background: rgba(220,53,69,0.25);
    color: #fff;
    border-color: rgba(220,53,69,0.7);
}

/* ===== Top bar ===== */
.top-row[b-6ogmtugder] {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    gap: .5rem;
    flex-shrink: 0;
}

.top-row[b-6ogmtugder]  a,
.top-row[b-6ogmtugder]  .btn-link {
    white-space: nowrap;
    text-decoration: none;
}

/* ===== Backdrop (mobile only) ===== */
.sidebar-backdrop[b-6ogmtugder] {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sidebar-backdrop--visible[b-6ogmtugder] {
    display: block;
    animation: fadeIn-b-6ogmtugder .2s ease;
}

@keyframes fadeIn-b-6ogmtugder {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ===== Mobile (< 768px): fixed overlay drawer ===== */
@media (max-width: 767.98px) {
    /* Sidebar is a fixed drawer that slides in from the right (RTL) */
    .sidebar[b-6ogmtugder] {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 270px;
        z-index: 1050;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.25, .46, .45, .94);
        box-shadow: -6px 0 28px rgba(0, 0, 0, 0.4);
        visibility: hidden;
    }

    .sidebar.sidebar--open[b-6ogmtugder] {
        transform: translateX(0);
        visibility: visible;
    }

    /* Show the in-drawer close (X) button on mobile */
    .sidebar-close-btn[b-6ogmtugder] {
        display: flex;
    }

    article.content[b-6ogmtugder] {
        padding: .75rem !important;
    }
}

/* ===== Desktop (≥ 768px): sticky side panel ===== */
@media (min-width: 768px) {
    .page[b-6ogmtugder] {
        flex-direction: row;
    }

    .sidebar[b-6ogmtugder] {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow-y: auto;
        overflow-x: hidden;
        flex-shrink: 0;
    }

    /* Nav is always visible on desktop regardless of collapseNavMenu state */
    .nav-scrollable[b-6ogmtugder] {
        display: flex !important;
    }

    main[b-6ogmtugder] {
        flex: 1;
        overflow-x: hidden;
    }

    .top-row[b-6ogmtugder] {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .top-row[b-6ogmtugder], article[b-6ogmtugder] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* ===== Blazor error UI ===== */
#blazor-error-ui[b-6ogmtugder] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-6ogmtugder] {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ===== Nav menu wrapper ===== */
.nav-menu[b-4esovrklgw] {
    padding: .5rem 0;
}

/* ===== Section labels ===== */
.nav-section-label[b-4esovrklgw] {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: .9rem 1.1rem .3rem 1.1rem;
}

/* ===== Nav items ===== */
.nav-item[b-4esovrklgw] {
    padding: .1rem .75rem;
}

.nav-item[b-4esovrklgw]  .nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .85rem;
    border-radius: .5rem;
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: .88rem;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.nav-item[b-4esovrklgw]  .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-item[b-4esovrklgw]  a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-weight: 600;
    border-inline-end: 3px solid #7fffb2;
}

/* ===== Icons ===== */
.nav-icon[b-4esovrklgw] {
    font-size: 1rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    opacity: .85;
}

.nav-item[b-4esovrklgw]  a.active .nav-icon {
    opacity: 1;
    color: #7fffb2;
}

/* ===== Nav text ===== */
.nav-text[b-4esovrklgw] {
    flex: 1;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-oyoozo6irc],
.components-reconnect-repeated-attempt-visible[b-oyoozo6irc],
.components-reconnect-failed-visible[b-oyoozo6irc],
.components-pause-visible[b-oyoozo6irc],
.components-resume-failed-visible[b-oyoozo6irc],
.components-rejoining-animation[b-oyoozo6irc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-retrying[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-failed[b-oyoozo6irc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-oyoozo6irc] {
    display: block;
}


#components-reconnect-modal[b-oyoozo6irc] {
    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-oyoozo6irc 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-oyoozo6irc 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-oyoozo6irc 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-oyoozo6irc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-oyoozo6irc 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-oyoozo6irc {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-oyoozo6irc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-oyoozo6irc {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-oyoozo6irc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-oyoozo6irc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-oyoozo6irc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-oyoozo6irc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-oyoozo6irc] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-oyoozo6irc] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-oyoozo6irc] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-oyoozo6irc 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-oyoozo6irc] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-oyoozo6irc {
    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;
    }
}
