/* Dashboard特定样式 */

body {
    overflow: hidden;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: rgba(15, 23, 42, 0.8);
    border-right: 1px solid rgba(59, 130, 246, 0.1);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.menu-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: rgba(59, 130, 246, 0.3);
}

.menu-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
    color: #60a5fa;
}

.menu-parent {
    margin-bottom: 2px;
}

.menu-sub-group {
    margin: 0;
    padding-left: 0;
}

.menu-sub-item {
    margin: 0;
    padding: 12px 20px 12px 52px;
    color: #94a3b8;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    font-size: 14px;
}

.menu-sub-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: rgba(59, 130, 246, 0.3);
    color: #cbd5e1;
}

.menu-sub-item.active {
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
    color: #60a5fa;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 页面容器 */
.page-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* iframe 样式 */
.page-container iframe {
    width: 100%;
    height: 100vh;
    border: none;
    display: block;
}

/* 加载动画容器 */
.page-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.page-loader.hidden {
    display: none;
}

/* 加载器旋转动画 */
.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 加载文本 */
.loader-text {
    margin-top: 20px;
    color: #94a3b8;
    font-size: 14px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 页面淡入动画 */
.page-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

