/* 仪表盘容器 */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
    background: #f8f9fa;
}

/* 左侧菜单 */
.dashboard-menu {
    width: 240px;
    background: white;
    padding: 2rem 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.menu-item:hover {
    background: rgba(67, 97, 238, 0.05);
    color: var(--primary-color);
}

.menu-item.active {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.menu-icon {
    width: 24px;
    height: 24px;
}

/* 右侧内容区 */
.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* 数据面板 */
.data-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.data-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-chart {
    height: 200px;
    position: relative;
}

/* 全宽卡片 */
.full-width {
    grid-column: 1 / -1;
}

/* 标题样式 */
h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-menu {
        width: 100%;
        padding: 1rem;
    }

    .menu-item {
        padding: 0.8rem 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }
} 