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

.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; }
[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-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;
}

/* Admin content helpers */
.admin-page-head[b-fiju9mt7w8] { margin-bottom: 1.5rem; }
.admin-page-head h1[b-fiju9mt7w8] { font-size: 1.6rem; margin: 0 0 0.2rem; }
.admin-page-head p[b-fiju9mt7w8] { color: var(--zwab-text-secondary); margin: 0; }

.stat-grid[b-fiju9mt7w8] { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.stat-card[b-fiju9mt7w8] {
    background: #fff; border: 1px solid var(--zwab-border-soft);
    border-radius: var(--zwab-radius); padding: 1.25rem;
    border-inline-start: 4px solid var(--zwab-green);
}
.stat-card .stat-label[b-fiju9mt7w8] { font-size: 0.8rem; color: var(--zwab-text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .stat-value[b-fiju9mt7w8] { font-family: var(--zwab-font-display); font-size: 2rem; color: var(--zwab-forest); line-height: 1.1; margin-top: 0.25rem; }
.stat-card.pending[b-fiju9mt7w8] { border-inline-start-color: var(--zwab-gold); }
.stat-card.review[b-fiju9mt7w8] { border-inline-start-color: var(--zwab-green); }
.stat-card.approved[b-fiju9mt7w8] { border-inline-start-color: #2e7d32; }
.stat-card.rejected[b-fiju9mt7w8] { border-inline-start-color: #b3261e; }

.admin-toolbar[b-fiju9mt7w8] {
    display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end;
    background: #fff; border: 1px solid var(--zwab-border-soft);
    border-radius: var(--zwab-radius); padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.admin-panel[b-fiju9mt7w8] {
    background: #fff; border: 1px solid var(--zwab-border-soft);
    border-radius: var(--zwab-radius); padding: 1.25rem;
}
.status-pill[b-fiju9mt7w8] {
    display: inline-flex; align-items: center; padding: 0.18rem 0.6rem;
    border-radius: var(--zwab-radius-pill); font-size: 0.74rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pill.pending[b-fiju9mt7w8] { background: rgba(198,154,58,0.16); color: var(--zwab-gold-muted); }
.status-pill.underreview[b-fiju9mt7w8] { background: rgba(20,90,53,0.12); color: var(--zwab-green); }
.status-pill.approved[b-fiju9mt7w8] { background: rgba(46,125,50,0.14); color: #2e7d32; }
.status-pill.rejected[b-fiju9mt7w8] { background: rgba(179,38,30,0.12); color: #b3261e; }
.status-pill.withdrawn[b-fiju9mt7w8] { background: rgba(28,42,34,0.08); color: var(--zwab-text-secondary); }

.detail-grid[b-fiju9mt7w8] { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.detail-grid .field[b-fiju9mt7w8] { background: var(--zwab-cream); border: 1px solid var(--zwab-border-soft); border-radius: var(--zwab-radius-sm); padding: 0.7rem 0.9rem; }
.detail-grid .field .lbl[b-fiju9mt7w8] { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--zwab-text-secondary); }
.detail-grid .field .val[b-fiju9mt7w8] { font-weight: 600; color: var(--zwab-text); word-break: break-word; }

.admin-actions[b-fiju9mt7w8] { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.btn-sm[b-fiju9mt7w8] { padding: 0.4rem 0.9rem; font-size: 0.85rem; }

/* Modal overlay (used by complaints/messages viewers) */
.admin-modal-overlay[b-fiju9mt7w8] {
    position: fixed; inset: 0; background: rgba(5, 43, 26, 0.55);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 4vh 1rem; z-index: 1080; overflow-y: auto;
}
.admin-modal[b-fiju9mt7w8] {
    background: var(--zwab-cream); border-radius: var(--zwab-radius);
    max-width: 760px; width: 100%; padding: 1.5rem;
    box-shadow: var(--zwab-shadow-lg); border: 1px solid var(--zwab-border-soft);
}

@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;
    }
}
