/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-63z7teyqcs] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-63z7teyqcs] {
    flex: 1;
}

.sidebar[b-63z7teyqcs] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-63z7teyqcs] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-63z7teyqcs]  a, .top-row[b-63z7teyqcs]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-63z7teyqcs]  a:hover, .top-row[b-63z7teyqcs]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-63z7teyqcs]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-63z7teyqcs] {
        justify-content: space-between;
    }

    .top-row[b-63z7teyqcs]  a, .top-row[b-63z7teyqcs]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-63z7teyqcs] {
        flex-direction: row;
    }

    .sidebar[b-63z7teyqcs] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-63z7teyqcs] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-63z7teyqcs]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-63z7teyqcs], article[b-63z7teyqcs] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-63z7teyqcs] {
    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-63z7teyqcs] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================
   顶部导航栏样式 - 深色渐变主题
   ============================================ */

/* 导航栏容器 - 使用渐变背景 */
.top-navbar[b-vr701wkynr] {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.nav-container[b-vr701wkynr] {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo 区域 */
.nav-logo[b-vr701wkynr] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #f1f5f9;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.logo-link:hover[b-vr701wkynr] {
    background: rgba(255, 255, 255, 0.1);
}

.logo-icon[b-vr701wkynr] {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    border-radius: 0.5rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    flex-shrink: 0;
}

.logo-icon svg[b-vr701wkynr] {
    width: 1.375rem;
    height: 1.375rem;
}

.logo-text[b-vr701wkynr] {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* 导航项容器 */
.nav-items[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    height: 100%;
}

/* 右侧工具栏 */
.nav-right-toolbar[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
}

.user-info[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.user-info:hover[b-vr701wkynr] {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar[b-vr701wkynr] {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.user-details[b-vr701wkynr] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name[b-vr701wkynr] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role[b-vr701wkynr] {
    font-size: 0.75rem;
    color: #c4b5fd;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-link[b-vr701wkynr] {
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.profile-link:hover[b-vr701wkynr] {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.logout-link[b-vr701wkynr] {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.logout-link:hover[b-vr701wkynr] {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* 导航项基础样式 */
.nav-item[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    user-select: none;
    background: transparent;
    border: none;
    height: 2.5rem;
    white-space: nowrap;
}

.nav-item:hover:not(.active)[b-vr701wkynr] {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

/* 图标 */
.nav-item-icon[b-vr701wkynr] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.nav-item-icon svg[b-vr701wkynr] {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    transition: all 0.2s ease;
    color: inherit;
}

/* 文字 */
.nav-item-text[b-vr701wkynr] {
    flex-shrink: 0;
}

/* 激活状态 */
.nav-item.active[b-vr701wkynr],
.nav-item[b-vr701wkynr]  a.active {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.nav-item.active .nav-item-icon svg[b-vr701wkynr],
.nav-item[b-vr701wkynr]  a.active .nav-item-icon svg {
    color: #ffffff;
}

/* 下拉菜单按钮 */
.nav-dropdown-toggle[b-vr701wkynr] {
    position: relative;
}

.dropdown-arrow[b-vr701wkynr] {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow[b-vr701wkynr],
.nav-dropdown.show .dropdown-arrow[b-vr701wkynr] {
    transform: rotate(180deg);
}

/* 下拉菜单容器 */
.nav-dropdown[b-vr701wkynr] {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* 下拉菜单 - 深色主题 */
.dropdown-menu[b-vr701wkynr] {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 12rem;
    max-width: 20rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 10px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
    pointer-events: none;
}

.dropdown-menu.show[b-vr701wkynr] {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉菜单项 - 深色主题 */
.dropdown-item[b-vr701wkynr] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.dropdown-item:hover:not(.active)[b-vr701wkynr] {
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}

.dropdown-item.active[b-vr701wkynr] {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    color: #ffffff;
    font-weight: 600;
}

.dropdown-item-icon[b-vr701wkynr] {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-icon svg[b-vr701wkynr] {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    color: inherit;
}

/* NavLink 内部 <a> 标签处理 */
.nav-item[b-vr701wkynr]  a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    margin: 0;
    color: inherit;
    text-decoration: none;
    border: none;
    background: none;
}

.nav-item[b-vr701wkynr]  a:hover {
    color: inherit;
    background: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-container[b-vr701wkynr] {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .nav-items[b-vr701wkynr] {
        gap: 0.25rem;
    }
    
    .nav-item[b-vr701wkynr] {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .nav-item-text[b-vr701wkynr] {
        display: none;
    }
    
    .logo-text[b-vr701wkynr] {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-navbar[b-vr701wkynr] {
        height: auto;
        min-height: 56px;
    }
    
    .nav-container[b-vr701wkynr] {
        padding: 0 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        min-height: 56px;
    }
    
    .nav-items[b-vr701wkynr] {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-item[b-vr701wkynr] {
        padding: 0.5rem;
        min-width: 2.5rem;
    }
    
    .dropdown-menu[b-vr701wkynr] {
        min-width: 10rem;
        right: 0;
        left: auto;
        max-width: calc(100vw - 1rem);
    }
}

/* 焦点状态（无障碍） */
.nav-item:focus-visible[b-vr701wkynr],
.dropdown-item:focus-visible[b-vr701wkynr],
.logo-link:focus-visible[b-vr701wkynr] {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* 平滑过渡 */
*[b-vr701wkynr] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-8fktro0o4u],
.components-reconnect-repeated-attempt-visible[b-8fktro0o4u],
.components-reconnect-failed-visible[b-8fktro0o4u],
.components-pause-visible[b-8fktro0o4u],
.components-resume-failed-visible[b-8fktro0o4u],
.components-rejoining-animation[b-8fktro0o4u] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-retrying[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-failed[b-8fktro0o4u],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-8fktro0o4u] {
    display: block;
}


#components-reconnect-modal[b-8fktro0o4u] {
    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-8fktro0o4u 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-8fktro0o4u 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-8fktro0o4u 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-8fktro0o4u]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-8fktro0o4u 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-8fktro0o4u {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-8fktro0o4u {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-8fktro0o4u {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-8fktro0o4u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-8fktro0o4u] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-8fktro0o4u] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-8fktro0o4u] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-8fktro0o4u] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-8fktro0o4u] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-8fktro0o4u] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-8fktro0o4u 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-8fktro0o4u] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-8fktro0o4u {
    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;
    }
}
