/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* --- PRIMARY SYSTEM CONTAINER --- */
.page[b-sms8m86q15] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-sms8m86q15] {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    /* 📱 Mobile Top Padding: Keeps content clear of the mobile top header bar */
    padding-top: 60px; 
    transition: padding 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

article[b-sms8m86q15] {
    flex: 1;
    width: 100%;
}

/* --- LARGE VIEWPORT ADJUSTMENTS (992px and up) --- */
@media (min-width: 992px) {
    .page[b-sms8m86q15] {
        flex-direction: row;
    }

    main[b-sms8m86q15] {
        /* 💻 Desktop Left Padding: Shifts workspace content nicely out of the 280px sidebar route path */
        padding-top: 0;
        padding-left: 280px; 
    }
}

/* --- SYSTEM ALERTS LAYOUT --- */
#blazor-error-ui[b-sms8m86q15] {
    color-scheme: light only;
    background: #fef2f2;
    color: #991b1b;
    border-top: 1px solid #fee2e2;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}

#blazor-error-ui .dismiss[b-sms8m86q15] {
    cursor: pointer;
    position: absolute;
    right: 1.25rem;
    top: 0.75rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.sidebar-container[b-fvyugr6wcl] {
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', system-ui, sans-serif;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-top-bar[b-fvyugr6wcl] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
}

.mobile-toggle-btn[b-fvyugr6wcl] {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0f172a;
    padding: 4px 8px;
    border-radius: 6px;
}
.mobile-toggle-btn:hover[b-fvyugr6wcl] { background: rgba(0, 0, 0, 0.04); }

.sidebar-overlay[b-fvyugr6wcl] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 999;
}

@media (max-width: 991.98px) {
    .sidebar-container[b-fvyugr6wcl] {
        transform: translateX(-100%);
        top: 60px;
        height: calc(100vh - 60px);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    }
    .sidebar-container.mobile-open[b-fvyugr6wcl] {
        transform: translateX(0);
    }
}

@media (min-width: 992px) {
    .d-lg-none[b-fvyugr6wcl] { display: none !important; }
    .d-lg-block[b-fvyugr6wcl] { display: block !important; }
}

.brand-section[b-fvyugr6wcl] {
    padding: 24px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar-brand-custom[b-fvyugr6wcl] {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
}

.blue-accent[b-fvyugr6wcl] {
    color: #2563eb;
    font-weight: 800;
    font-size: 5;
}

.nav-scrollable-custom[b-fvyugr6wcl] {
    flex: 1;
    overflow-y: auto;
    padding: 20px 14px;
}

.nav-list[b-fvyugr6wcl] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-divider[b-fvyugr6wcl] {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.06em;
    margin: 24px 0 6px 12px;
}

.nav-link-custom[b-fvyugr6wcl] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #475569;
    text-decoration: none !important;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link-custom:hover[b-fvyugr6wcl] {
    background: rgba(37, 99, 235, 0.06);
    color: #2563eb;
}

.nav-link-custom .icon[b-fvyugr6wcl] {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.nav-link-custom::deep active[b-fvyugr6wcl], 
.nav-link-custom.active[b-fvyugr6wcl] {
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.user-footer-section[b-fvyugr6wcl] {
    padding: 20px 16px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.5);
}

.auth-gate-links[b-fvyugr6wcl] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-btn[b-fvyugr6wcl] {
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.login-btn[b-fvyugr6wcl] {
    background: #2563eb;
    color: white !important;
}
.login-btn:hover[b-fvyugr6wcl] {
    background: #1d4ed8;
    color: white !important;
}

.register-btn[b-fvyugr6wcl] {
    background: white;
    border-color: #cbd5e1;
    color: #475569;
}
.register-btn:hover[b-fvyugr6wcl] {
    background: #f8fafc;
    color: #0f172a;
}

.user-pill[b-fvyugr6wcl] {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.user-avatar[b-fvyugr6wcl] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.user-meta[b-fvyugr6wcl] {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.username[b-fvyugr6wcl] {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.role[b-fvyugr6wcl] {
    font-size: 0.68rem;
    font-weight: 700;
    color: #2563eb;
}

.logout-btn[b-fvyugr6wcl] {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}
.logout-btn:hover[b-fvyugr6wcl] { background: #fee2e2; }

.confirm-pill[b-fvyugr6wcl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0f172a;
    padding: 10px 14px;
    border-radius: 12px;
}
.confirm-text[b-fvyugr6wcl] { color: white; font-size: 0.82rem; font-weight: 600; }
.confirm-actions[b-fvyugr6wcl] { display: flex; gap: 6px; }
.btn-confirm[b-fvyugr6wcl] { border: none; padding: 4px 10px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; cursor: pointer; }
.btn-confirm.yes[b-fvyugr6wcl] { background: #ef4444; color: white; }
.btn-confirm.no[b-fvyugr6wcl] { background: #334155; color: #94a3b8; }

.animate-pop[b-fvyugr6wcl] { animation: popOpen-b-fvyugr6wcl 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popOpen-b-fvyugr6wcl {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ca8drascbw],
.components-reconnect-repeated-attempt-visible[b-ca8drascbw],
.components-reconnect-failed-visible[b-ca8drascbw],
.components-pause-visible[b-ca8drascbw],
.components-resume-failed-visible[b-ca8drascbw],
.components-rejoining-animation[b-ca8drascbw] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

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