/* 연간 통계 페이지 스타일 */
.container {
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-panel {
    flex: 1;
}

.right-panel {
    flex: 1;
}

.panel-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

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

.stat-label {
    font-weight: 500;
    color: #555;
}

.stat-value {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1em;
}

/* 표 스타일 */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9em;
}

.stats-table th,
.stats-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.stats-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.stats-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.stats-table tbody tr:hover {
    background-color: #e9ecef;
}

.total-row {
    background-color: #e3f2fd !important;
    font-weight: bold;
}

.total-row td {
    border-top: 2px solid #2196f3;
}

/* 연도 네비게이션 스타일 */
.year-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.year-nav-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.year-nav-link:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.year-nav-link:active {
    transform: translateY(0);
}

/* 차트 컨테이너 스타일 */
.chart1 {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-panel {
        width: 100%;
    }
    .right-panel {
        width: 100%;
    }
}
