/* 统计页面专用样式 */

/* 时间筛选区域 */
.time-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.time-buttons {
    display: flex;
    gap: 10px;
}

.time-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-btn.active {
    background: #1a8cff;
    color: white;
    border-color: #1a8cff;
}

.time-btn:hover:not(.active) {
    background: #f8f9fa;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* 统计卡片 */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-icon {
    font-size: 2.5rem;
}

.stats-content {
    flex: 1;
}

.stats-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.stats-label {
    color: #666;
    font-size: 0.9rem;
}

/* 卡片颜色 */
.stats-card.total { border-left: 4px solid #1a8cff; }
.stats-card.pending { border-left: 4px solid #ffa502; }
.stats-card.confirmed { border-left: 4px solid #2ed573; }
.stats-card.tracked { border-left: 4px solid #3742fa; }
.stats-card.cancelled { border-left: 4px solid #ff4757; }

/* 统计布局 */
.stats-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.stats-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.section-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

/* 统计表格 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table th,
.stats-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.stats-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

/* 状态徽章 */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1edff; color: #004085; }
.status-tracked { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* 疾病分布 */
.disease-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.disease-card {
    flex: 1;
    text-align: center;
    padding: 25px 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.disease-card:hover {
    transform: translateY(-2px);
}

.disease-card.right {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.disease-card.center {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.disease-card.left {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.disease-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
/*.white-icon{ filter: brightness(0) invert(1);}*/

.disease-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.disease-count {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.disease-percentage {
    font-size: 1rem;
    opacity: 0.9;
}

/* 图表区域 */
.chart-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-data {
    color: #666;
    font-size: 1.1rem;
}

/* 简单趋势图表 */
.trend-chart-simple {
    width: 100%;
    height: 100%;
    padding: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 10px;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.chart-bar {
    width: 30px;
    background: linear-gradient(to top, #1a8cff, #4facfe);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s;
    min-height: 5px;
}

.chart-label {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #666;
}

.chart-value {
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .stats-layout {
        grid-template-columns: 1fr;
    }
    
    .disease-cards {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .time-filter {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-range {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.1rem;
    color: #666;
}