/* /Components/Layout/AdminLayout.razor.rz.scp.css */
/* Admin console chrome — visually distinct from the public site, on-brand.

   NOTE: this file is SCOPED CSS. It can only style markup owned by AdminLayout itself
   (sidebar, topbar, <main>). Page content rendered via @Body cannot be styled here —
   those styles live in the global wwwroot/css/admin.css, loaded via <HeadContent>
   in AdminLayout.razor. */

.admin-shell[b-fiju9mt7w8] {
    display: flex;
    min-height: 100vh;
    background: var(--zwab-cream);
}

/* Sidebar */
.admin-sidebar[b-fiju9mt7w8] {
    width: 256px;
    flex-shrink: 0;
    background: var(--zwab-evergreen);
    color: var(--zwab-text-on-dark-muted);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1040;
}
.admin-brand[b-fiju9mt7w8] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-brand img[b-fiju9mt7w8] { height: 38px; width: auto; }
.ab-name[b-fiju9mt7w8] { color: #fff; font-family: var(--zwab-font-display); font-size: 1.15rem; letter-spacing: 0.04em; line-height: 1; }
.ab-sub[b-fiju9mt7w8] { color: var(--zwab-gold-light); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; }

.admin-nav[b-fiju9mt7w8] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
[b-fiju9mt7w8] .admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.62rem 0.8rem;
    border-radius: var(--zwab-radius-sm);
    color: var(--zwab-text-on-dark-muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--zwab-transition);
}
[b-fiju9mt7w8] .admin-nav-item span { width: 18px; text-align: center; opacity: 0.85; display: inline-flex; justify-content: center; }
[b-fiju9mt7w8] .admin-nav-item .rzi { font-size: 18px; }
[b-fiju9mt7w8] .admin-nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
[b-fiju9mt7w8] .admin-nav-item.active { background: rgba(198,154,58,0.18); color: var(--zwab-gold-light); font-weight: 600; }
.admin-nav-divider[b-fiju9mt7w8] {
    color: rgba(255,255,255,0.4);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1rem 0.8rem 0.35rem;
}
.admin-sidebar-footer[b-fiju9mt7w8] { padding: 0.6rem; border-top: 1px solid rgba(255,255,255,0.08); }

/* Main column */
.admin-main[b-fiju9mt7w8] { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.admin-topbar[b-fiju9mt7w8] {
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--zwab-border-soft);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.admin-menu-btn[b-fiju9mt7w8] {
    display: none;
    background: transparent;
    border: 0;
    color: var(--zwab-forest);
    width: 42px;
    height: 42px;
    border-radius: var(--zwab-radius-sm);
}
.admin-menu-btn .rzi[b-fiju9mt7w8] { font-size: 22px; }
.admin-user[b-fiju9mt7w8] { display: flex; align-items: center; gap: 0.7rem; margin-inline-start: auto; }
.admin-user-meta[b-fiju9mt7w8] { text-align: right; line-height: 1.2; }
.admin-user-name[b-fiju9mt7w8] { display: block; font-weight: 600; font-size: 0.9rem; color: var(--zwab-text); }
.admin-user-role[b-fiju9mt7w8] { display: block; font-size: 0.72rem; color: var(--zwab-text-secondary); }
.admin-user-avatar[b-fiju9mt7w8] {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--zwab-forest); color: var(--zwab-gold-light);
    display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.admin-logout-form[b-fiju9mt7w8] { margin: 0; }

.admin-content[b-fiju9mt7w8] {
    padding: clamp(1rem, 3vw, 2rem);
    flex: 1;
}

@media (max-width: 991.98px) {
    .admin-menu-btn[b-fiju9mt7w8] { display: inline-flex; align-items: center; justify-content: center; }
    .admin-sidebar[b-fiju9mt7w8] {
        position: fixed; top: 0; left: 0; bottom: 0; height: 100vh;
        transform: translateX(-100%); transition: transform 0.28s var(--zwab-ease);
        box-shadow: var(--zwab-shadow-lg);
    }
    .admin-sidebar.open[b-fiju9mt7w8] { transform: none; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-fpavq43kn1] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-fpavq43kn1] {
    flex: 1;
}

.sidebar[b-fpavq43kn1] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-fpavq43kn1] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-fpavq43kn1]  a, .top-row[b-fpavq43kn1]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-fpavq43kn1]  a:hover, .top-row[b-fpavq43kn1]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-fpavq43kn1]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-fpavq43kn1] {
        justify-content: space-between;
    }

    .top-row[b-fpavq43kn1]  a, .top-row[b-fpavq43kn1]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-fpavq43kn1] {
        flex-direction: row;
    }

    .sidebar[b-fpavq43kn1] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-fpavq43kn1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-fpavq43kn1]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-fpavq43kn1], article[b-fpavq43kn1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-fpavq43kn1] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-fpavq43kn1] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-i2563scmbe],
.components-reconnect-repeated-attempt-visible[b-i2563scmbe],
.components-reconnect-failed-visible[b-i2563scmbe],
.components-pause-visible[b-i2563scmbe],
.components-resume-failed-visible[b-i2563scmbe],
.components-rejoining-animation[b-i2563scmbe] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-retrying[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-failed[b-i2563scmbe],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-i2563scmbe] {
    display: block;
}


#components-reconnect-modal[b-i2563scmbe] {
    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-i2563scmbe 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-i2563scmbe 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-i2563scmbe 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-i2563scmbe]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-i2563scmbe 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-i2563scmbe {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-i2563scmbe {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-i2563scmbe {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-i2563scmbe] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-i2563scmbe] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-i2563scmbe] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-i2563scmbe] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-i2563scmbe] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-i2563scmbe] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-i2563scmbe] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-i2563scmbe 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-i2563scmbe] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-i2563scmbe {
    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;
    }
}
