/* 仪表盘样式 */
.dashboard h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 图表区域 */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-container {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.chart-container h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.chart {
    height: 300px;
    position: relative;
}

/* SVG图表样式 */
.chart svg {
    width: 100%;
    height: 100%;
}

.bar-chart-bar {
    fill: var(--primary-color);
    transition: all 0.3s;
}

.bar-chart-bar:hover {
    fill: var(--primary-hover);
}

.bar-chart-label {
    font-size: 12px;
    fill: var(--text-secondary);
}

.bar-chart-value {
    font-size: 10px;
    fill: var(--text-secondary);
    text-anchor: middle;
}

/* 饼图样式 */
.pie-slice {
    cursor: pointer;
    transition: all 0.3s;
}

.pie-slice:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.pie-label {
    font-size: 12px;
    fill: white;
    text-anchor: middle;
    pointer-events: none;
}

/* 图例 */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* 最近预订 */
.recent-bookings {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.recent-bookings h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.booking-item:last-child {
    border-bottom: none;
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.booking-event {
    font-weight: 600;
    color: var(--text-primary);
}

.booking-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.booking-price {
    font-weight: 600;
    color: var(--success-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-section {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .booking-item {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .chart-legend {
        flex-direction: column;
        align-items: center;
    }
}
