:root {
    --primary-color: #5B5FDE;
    --secondary-color: #0EA5E9;
    --accent-color: #FF6B6B;
    --error-color: #F43F5E;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F3F4F6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 侧边栏样式 */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 180px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 18px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.sidebar-header i {
    margin-right: 5px;
    font-size: 16px;
}

.sidebar-menu {
    padding: 12px 8px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 9px 10px;
    border-radius: 8px;
    margin: 3px 0;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.sidebar .nav-link i {
    width: 18px;
    font-size: 15px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px;
}

.btn-logout {
    width: 100%;
    padding: 9px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 顶部导航栏 */
.navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 12px 25px;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4B5563;
    font-weight: 500;
    font-size: 14px;
}

.user-info i {
    font-size: 20px;
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    margin-left: 180px;
}

/* 内容区域 */
.content-wrapper {
    padding: 0;
}


/* 页面标题 */
.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 20px;
}

/* 卡片容器 */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-body {
    padding: 25px;
}

/* iframe样式 */
.page-iframe {
    width: 100%;
    height: calc(100vh - 72px); /* 减去导航栏高度 */
    border: none;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

/* 加载状态 */
.loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-footer {
        position: static;
        margin-top: 15px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-card h2 {
        font-size: 20px;
    }

    .content-wrapper {
        padding: 0;
        min-height: calc(100vh - 72px);
    }


}