.main-container {
    padding: 60px 40px 0;
    max-width: 2470px;
    margin: 0 auto;
}

.dashboard-container {
    margin-top: -10px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    height: 100%;
}

.chart-container {
    position: relative;
    height: 450px;
    padding: 10px 5px;
    
}

.chart-header {
    padding: 8px 15px;
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 28px;
    padding: 0 5px;
}

.chart-title {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0;
    white-space: nowrap;
}

.chart-legend-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
}

.chart-controls {
    flex: 0 0 auto;
    display: flex;
    gap: 4px;
}

.chart-controls button {
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 2px;
    transition: all 0.2s;
}

.chart-controls button:hover {
    background: #f8f9fa;
    border-color: #aaa;
}

.chart-controls i {
    font-size: 10px;
    color: #555;
}

.fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: white;
    margin: 0 !important;
    border-radius: 0 !important;
}

.fullscreen .chart-container {
    height: calc(100vh - 50px) !important;
    padding: 15px;
}

/* 响应式布局调整 */
@media (max-width: 992px) {
    .main-container {
        padding: 60px 20px 0;
    }
    
    .chart-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 60px 10px 0;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .chart-title h5 {
        font-size: 14px;
    }
} 

/* 添加滑块样式 */
.time-slider-container {
    margin-top: 20px;
    padding: 0 10px;
    height: 20px;
}

/* noUiSlider 自定义样式 */
.noUi-connect {
    background: #2196F3;
}

.noUi-handle {
    border: 1px solid #2196F3;
    background: #fff;
    cursor: pointer;
}

.noUi-tooltip {
    font-size: 12px;
    padding: 4px 8px;
} 

/* 更新图例样式 */
.chartjs-legend-item {
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    margin: 0 10px !important;
    border-radius: 2px;
    cursor: pointer;
}

.chartjs-legend-item span {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #333 !important;
    margin-left: 4px !important;
    white-space: nowrap;
}

/* 隐藏状态样式 */
.chartjs-legend-item.hidden {
    opacity: 0.5;
}

/* 图例方块样式 */
.chartjs-legend-item .chartjs-legend-box {
    width: 10px !important;
    height: 10px !important;
    margin-right: 4px !important;
    border-radius: 2px !important;
} 

/* 全屏按钮样式优化 */
.chart-controls .fullscreen-btn {
    width: 18px;                /* 减小按钮尺寸 */
    height: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;  /* 更柔和的边框颜色 */
    border-radius: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);  /* 添加轻微阴影 */
}

.chart-controls .fullscreen-btn:hover {
    background-color: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-controls .fullscreen-btn i {
    font-size: 9px;           /* 减小图标尺寸 */
    color: #666;
}

.chart-controls .fullscreen-btn:hover i {
    color: #333;              /* 悬停时图标颜色加深 */
}

/* 全屏模式时的按钮样式 */
.fullscreen .chart-controls .fullscreen-btn {
    background-color: #f8f9fa;
} 