/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-wy4k3yaa2o] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wy4k3yaa2o] {
    flex: 1;
}

.sidebar[b-wy4k3yaa2o] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-wy4k3yaa2o] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .top-row[b-wy4k3yaa2o]  .recent-menus {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex: 1;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        mask-image: linear-gradient(to right, transparent 0, black 0.5rem, black calc(100% - 1.5rem), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, black 0.5rem, black calc(100% - 1.5rem), transparent 100%);
        padding: 0 0.5rem;
    }

    .top-row[b-wy4k3yaa2o]  .recent-label {
        flex-shrink: 0;
        font-size: 0.85rem;
        opacity: 0.6;
    }

    .top-row[b-wy4k3yaa2o]  .recent-chip {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.78rem;
        color: #444;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 1rem;
        white-space: nowrap;
        text-decoration: none;
        transition: all 0.15s;
    }

    .top-row[b-wy4k3yaa2o]  .recent-chip:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        color: #212529;
        text-decoration: none;
    }

    .top-row[b-wy4k3yaa2o]  a, .top-row[b-wy4k3yaa2o]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-wy4k3yaa2o]  a:hover, .top-row[b-wy4k3yaa2o]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-wy4k3yaa2o]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 767.98px) {
    .top-row[b-wy4k3yaa2o] {
        justify-content: space-between;
    }

    .top-row[b-wy4k3yaa2o]  a, .top-row[b-wy4k3yaa2o]  .btn-link {
        margin-left: 0;
    }
}

/* ── 侧边栏折叠：显示 / 隐藏 ── */

.sidebar-toggle-check[b-wy4k3yaa2o] {
    display: none;
}

.sidebar-collapse-btn[b-wy4k3yaa2o] {
    display: none;
    position: absolute;
    top: 1rem;
    z-index: 20;
    padding: 0.25rem 0.3rem;
}

.sidebar-collapse-btn .collapse-icon[b-wy4k3yaa2o] {
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .page[b-wy4k3yaa2o] {
        flex-direction: row;
    }

    .sidebar[b-wy4k3yaa2o] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
        overflow: hidden;
        transition: width 0.3s ease;
    }

    /* 折叠态：隐藏侧边栏 */
    .sidebar-toggle-check:checked ~ .sidebar[b-wy4k3yaa2o] {
        width: 0;
    }

    .top-row[b-wy4k3yaa2o] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-wy4k3yaa2o]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-wy4k3yaa2o], article[b-wy4k3yaa2o] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-wy4k3yaa2o] {
    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-wy4k3yaa2o] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.site-footer[b-wy4k3yaa2o] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.78rem;
    color: #888;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-left: 250px;
    transition: margin-left 0.3s ease;
}

.site-footer a[b-wy4k3yaa2o] {
    color: #888;
    text-decoration: none;
}

.site-footer a:hover[b-wy4k3yaa2o] {
    color: #555;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .site-footer[b-wy4k3yaa2o] {
        margin-left: 0;
        flex-direction: column;
        gap: 0.3rem;
        text-align: center;
    }
}

/* 折叠态 footer 跟随 */
.sidebar-toggle-check:checked ~ main ~ .site-footer[b-wy4k3yaa2o] {
    margin-left: 0 !important;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── 汉堡菜单（移动端） ── */
.navbar-toggler[b-13j72bshde] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}
.navbar-toggler:checked[b-13j72bshde] {
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.top-row[b-13j72bshde] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}
/* ── 滚动条 ── */
.nav-scrollable[b-13j72bshde] {
    display: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.nav-scrollable[b-13j72bshde]::-webkit-scrollbar { width: 6px; }
.nav-scrollable[b-13j72bshde]::-webkit-scrollbar-track { background: transparent; }
.nav-scrollable[b-13j72bshde]::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
}
.navbar-toggler:checked ~ .nav-scrollable[b-13j72bshde] { display: block; }

@media (min-width: 768px) {
    .navbar-toggler[b-13j72bshde] { display: none; }
    .nav-scrollable[b-13j72bshde] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ── NavLink 样式 ── */
.nav-item[b-13j72bshde] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}
.nav-item:first-of-type[b-13j72bshde] { padding-top: 1rem; }
.nav-item:last-of-type[b-13j72bshde] { padding-bottom: 1rem; }

.nav-item[b-13j72bshde]  .nav-link {
    color: rgba(255,255,255,0.55);
    background: none;
    border: none;
    border-radius: 0.25rem;
    min-height: 2.6rem;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
    width: 100%;
    transition: background-color 0.15s, color 0.15s;
}
.nav-item[b-13j72bshde]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
.nav-item[b-13j72bshde]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
    border-left: 3px solid #ffd54f;
    padding-left: calc(0.6rem - 3px);
}

/* ── Accordion dark 微调 ── */
#navAccordion .accordion-button[b-13j72bshde]::after {
    filter: brightness(0) invert(1);
}
#navAccordion .accordion-button:not(.collapsed)[b-13j72bshde] {
    color: #ffd54f;
    background-color: rgba(255,255,255,0.05);
    box-shadow: none;
}
#navAccordion .accordion-button:hover[b-13j72bshde] {
    color: #fff;
    background-color: rgba(255,255,255,0.08);
}


/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-26udjkla5q],
.components-reconnect-repeated-attempt-visible[b-26udjkla5q],
.components-reconnect-failed-visible[b-26udjkla5q],
.components-pause-visible[b-26udjkla5q],
.components-resume-failed-visible[b-26udjkla5q],
.components-rejoining-animation[b-26udjkla5q] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-retrying[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-failed[b-26udjkla5q],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-26udjkla5q] {
    display: block;
}


#components-reconnect-modal[b-26udjkla5q] {
    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-26udjkla5q 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-26udjkla5q 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-26udjkla5q 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-26udjkla5q]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-26udjkla5q 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-26udjkla5q {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-26udjkla5q {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-26udjkla5q {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-26udjkla5q] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-26udjkla5q] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-26udjkla5q] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-26udjkla5q] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-26udjkla5q] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-26udjkla5q] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-26udjkla5q] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-26udjkla5q 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-26udjkla5q] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-26udjkla5q {
    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;
    }
}
