/* 창원시 탄소중립 페이지 스타일 */

/* 페이지 컨테이너 */
.changwon-page {
    max-width: 1490px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
}

/* 메인 페이지가 아닌 페이지에서 푸터를 컨텐츠 아래에 붙이기 */
body:not(:has(.main-title-section)) .footer {
    position: relative !important;
    bottom: auto !important;
    margin-top: auto;
}

/* 상단 배너 */
.changwon-banner {
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 308px;  /* 440px * 0.7 */
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0; /* 헤더가 최상단일 때 배너가 헤더 뒤에 보이도록 margin-top 제거 */
    z-index: 1; /* 기본적으로 낮은 z-index (스크롤 시 헤더 뒤로 사라짐) */
}

/* 헤더가 최상단일 때만 배너가 헤더 뒤에 보이도록 */
body:not(.header-scrolled) .changwon-banner {
    z-index: 999; /* 헤더(z-index: 1000) 바로 아래에 배치하여 투명한 헤더가 배너를 볼 수 있도록 */
    margin-top: 0; /* 헤더 뒤에 배너가 보이도록 margin-top 제거 */
}

/* 헤더가 스크롤됐을 때도 배너의 top 위치는 변경하지 않음 */
body.header-scrolled .changwon-banner {
    margin-top: 0; /* 스크롤되어도 배너의 top 위치는 동일하게 유지 */
}

.changwon-banner .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.changwon-banner .banner-title {
    position: absolute;
    top: calc(80px + 30%); /* 헤더 높이(80px) 아래 배너 높이의 30% 위치 */
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'KBIZgo_B', 'KBIZ한마음고딕체', sans-serif;
    font-size: 68px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
    white-space: nowrap;
}

/* 헤더가 최상단일 때 배너 타이틀 위치 조정 */
body:not(.header-scrolled) .changwon-banner .banner-title {
    top: calc(80px + 30%); /* 헤더 높이(80px) 아래 배너 높이의 30% 위치 */
}

/* 헤더가 스크롤됐을 때도 배너 타이틀 위치 동일하게 유지 */
body.header-scrolled .changwon-banner .banner-title {
    top: calc(80px + 30%); /* 헤더 높이(80px) 아래 배너 높이의 30% 위치 */
}

/* 탭 버튼 */
.changwon-tabs {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 1490px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 2rem 0;
    background-color: #ffffff;
    z-index: 998; /* 배너(z-index: 999) 바로 아래에 배치 */
}

.changwon-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 395px;
    height: 70px;
    margin-right: 20px;
    margin-left: 20px;
    border: 2px solid #d5d8db;
    border-radius: 100px;
    background-color: rgba(82, 184, 226, 0);
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.changwon-tab:hover {
    border-color: #52b8e2;
    background-color: rgba(82, 184, 226, 0.1);
}

.changwon-tab.active {
    background-color: #52b8e2;
    border-color: #52b8e2;
    color: #ffffff;
}

/* 본문 컨텐츠 */
.changwon-content {
    max-width: 1312px;
    margin: 0 auto;
    padding: 4rem 1rem;
    box-sizing: border-box;
}

/* 카드 뉴스 섹션 */
.card-news-section {
    margin-top: 2rem;
}

.card-news-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.card-news-link:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.card-news-section .section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-news-section .section-icon {
    width: 68px;
    height: 62px;
    object-fit: contain;
}

.card-news-section .section-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* 카드 뉴스 설명 */
.card-news-description {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    padding-left: calc(68px + 1rem); /* 아이콘 너비 + gap */
}

.card-news-description p {
    margin: 0 0 1rem 0;
    padding: 0;
}

.card-news-description p:last-child {
    margin-bottom: 0;
}

/* 카드 뉴스 그리드 */
.card-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 카드 뉴스 아이템 */
.card-news-item {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-news-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-news-header {
    background-color: #ffd700;
    padding: 1rem;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.card-news-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.card-news-image .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-news-text {
    padding: 1rem;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.6;
    flex: 1;
}

.card-news-meta {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 12px;
    color: #666666;
}

.news-date {
    font-weight: 400;
}

.news-views {
    font-weight: 400;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d5d8db;
    background-color: #ffffff;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #f5f5f5;
    border-color: #52b8e2;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: 1px solid #d5d8db;
    background-color: #ffffff;
    border-radius: 4px;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-page:hover {
    background-color: #f5f5f5;
    border-color: #52b8e2;
}

.pagination-page.active {
    background-color: #52b8e2;
    border-color: #52b8e2;
    color: #ffffff;
    font-weight: 700;
}

/* 반응형 디자인 */
@media (min-width: 768px) and (max-width: 1489px) {
    .changwon-banner {
        height: 210px;  /* 300px * 0.7 */
        margin-top: 0; /* 스크롤되어도 배너의 top 위치는 동일하게 유지 */
    }
    
    .changwon-banner .banner-title {
        top: 30%; /* 배너 높이의 30% 위치 */
        font-size: 48px;
    }
    
    .changwon-tabs {
        padding: 1.5rem 0;
    }
    
    .changwon-tab {
        width: 300px;
        height: 60px;
        font-size: 22px;
    }
    
    .changwon-content {
        padding: 3rem 1rem;
    }
    
    .card-news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .changwon-banner {
        height: 210px;  /* 300px * 0.7 */
        margin-top: 0; /* 스크롤되어도 배너의 top 위치는 동일하게 유지 */
    }
    
    .changwon-banner .banner-title {
        top: 30%; /* 배너 높이의 30% 위치 */
        font-size: 32px;
    }
    
    .changwon-tabs {
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .changwon-tab {
        width: 90%;
        max-width: 350px;
        height: 50px;
        padding: 12px 20px;
        font-size: 18px;
    }
    
    .changwon-content {
        padding: 2rem 1rem;
    }
    
    .card-news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .card-news-section .section-title {
        font-size: 24px;
    }
    
    .card-news-section .section-icon {
        width: 50px;
        height: 45px;
    }
    
    .card-news-description {
        font-size: 16px;
        padding-left: calc(50px + 1rem); /* 모바일 아이콘 너비 + gap */
    }
}

/* 실시간 탄소중립 현황 페이지 스타일 */

/* 데이터 카테고리 탭 */
.status-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 42px; /* 세로 간격 30px, 가로 간격 42px */
    margin-bottom: 3rem;
    border-bottom: none;
}

.status-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 72px;
    padding: 0;
    border: 2px solid #bfbfc1;
    border-radius: 0;
    background-color: transparent;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.status-category-tab:hover {
    background-color: rgba(82, 184, 226, 0.05);
    border-color: #52b8e2;
}

.status-category-tab.active {
    background-color: #00ab80;
    border-color: #00ab80;
    color: #ffffff;
    font-weight: 400;
}

/* 데이터 섹션 컨테이너 */
.status-data-container {
    position: relative;
    min-height: 500px;
}

/* 데이터 섹션 */
.status-data-section {
    display: none;
    margin-top: 2rem;
}

.status-data-section.active {
    display: block;
}

/* 섹션 라벨 */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

.label-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: transparent;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.label-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* 차트 컨테이너 */
.status-chart-container {
    width: 100%;
    margin-top: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    overflow: visible;
    min-height: 750px;
}

/* 1차 에너지 공급량 섹션의 차트 컨테이너 */
.status-data-section[data-section="energy-supply"] .status-chart-container {
    min-height: 750px;
    height: auto;
    overflow: visible;
}

.status-data-section[data-section="energy-supply"] .energy-supply-content-wrapper {
    width: 100%;
    height: 100%;
}

.status-chart-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 반응형 디자인 - 실시간 탄소중립 현황 */
@media (min-width: 768px) and (max-width: 1489px) {
    .status-category-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px 42px; /* 세로 간격 30px, 가로 간격 42px */
    }
    
    .status-category-tab {
        width: 350px;
        height: 72px;
        padding: 0;
        font-size: 20px;
    }
    
    .label-title {
        font-size: 28px;
    }
    
    .label-icon-circle {
        width: 60px;
        height: 60px;
    }
    
    .label-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .status-category-tabs {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border-bottom: none;
        gap: 30px; /* 세로 간격 30px */
    }
    
    .status-category-tab {
        width: 100%;
        max-width: 350px;
        height: 72px;
        padding: 0;
        font-size: 18px;
        border: 2px solid #bfbfc1;
        border-radius: 8px;
    }
    
    .status-category-tab.active {
        border-color: #00ab80;
    }
    
    .label-title {
        font-size: 24px;
    }
    
    .label-icon-circle {
        width: 42px;
        height: 42px;
    }
    
    .label-icon {
        width: 42px;
        height: 42px;
    }
    
    .section-label {
        flex-direction: row;
        align-items: center;
    }
    
    .status-chart-container {
        padding: 1rem;
        min-height: 600px;
    }
    
    .status-data-section[data-section="energy-supply"] .status-chart-container {
        min-height: 600px;
    }
}

/* 폭염일수 섹션 스타일 (status.html 내부) */
.heatwave-content-wrapper {
    width: 100%;
}

/* 연도 선택 */
.year-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.year-selector label {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
}

.year-select {
    padding: 0.75rem 1.5rem;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
    border: 2px solid #d5d8db;
    border-radius: 8px;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-select:hover {
    border-color: #52b8e2;
    background-color: rgba(82, 184, 226, 0.05);
}

.year-select:focus {
    outline: none;
    border-color: #52b8e2;
    background-color: rgba(82, 184, 226, 0.1);
}

.year-select option {
    background-color: #ffffff;
    color: #000000;
}

/* 테이블 컨테이너 */
.heatwave-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.heatwave-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 14px;
}

.heatwave-table thead {
    background-color: #f5f5f5;
    color: #000000;
}

.heatwave-table th {
    padding: 1rem 0.75rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.heatwave-table tbody tr {
    transition: background-color 0.2s ease;
}

.heatwave-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.heatwave-table tbody tr:hover {
    background-color: rgba(82, 184, 226, 0.05);
}

.heatwave-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

/* 그래프 컨테이너 */
.heatwave-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.chart-title {
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 1.5rem;
    text-align: center;
}

#heatwaveChart {
    max-height: 400px;
    height: 400px !important;
}

/* 반응형 디자인 - 폭염일수 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .year-selector {
        flex-direction: row;
    }
    
    .year-select {
        font-size: 14px;
        padding: 0.6rem 1.2rem;
    }
    
    .heatwave-table {
        font-size: 12px;
    }
    
    .heatwave-table th,
    .heatwave-table td {
        padding: 0.6rem 0.5rem;
    }
    
    .chart-title {
        font-size: 20px;
    }
    
    #heatwaveChart {
        max-height: 350px;
        height: 350px !important;
    }
}

@media (max-width: 767px) {
    .year-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .year-select {
        width: 100%;
        font-size: 14px;
    }
    
    .heatwave-table-container {
        padding: 0.5rem;
        overflow-x: scroll;
    }
    
    .heatwave-table {
        font-size: 11px;
        min-width: 800px;
    }
    
    .heatwave-table th,
    .heatwave-table td {
        padding: 0.4rem 0.3rem;
    }
    
    .heatwave-chart-container {
        padding: 1rem;
    }
    
    .chart-title {
        font-size: 18px;
    }
    
    #heatwaveChart {
        max-height: 300px;
        height: 300px !important;
    }
}

/* 신재생에너지 발전비율 섹션 스타일 (status.html 내부) */
.renewable-energy-content-wrapper {
    width: 100%;
}

/* 테이블 컨테이너 */
.renewable-energy-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.renewable-energy-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
}

.renewable-energy-table thead {
    background-color: #f5f5f5;
    color: #000000;
}

.renewable-energy-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
}

.renewable-energy-table tbody tr {
    transition: background-color 0.2s ease;
}

.renewable-energy-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.renewable-energy-table tbody tr:hover {
    background-color: rgba(0, 171, 128, 0.05);
}

.renewable-energy-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

/* 그래프 컨테이너 */
.renewable-energy-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    position: relative;
    height: 450px;
    min-height: 400px;
    max-height: 450px;
    overflow: hidden;
}

.renewable-energy-chart-container canvas {
    max-height: 400px !important;
    height: 400px !important;
    width: 100% !important;
}

#renewableEnergyChart,
#renewableEnergySourcesChart,
#renewableVsNewEnergyChart {
    max-height: 400px !important;
    height: 400px !important;
    width: 100% !important;
}

/* 반응형 디자인 - 신재생에너지 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .renewable-energy-table {
        font-size: 14px;
    }
    
    .renewable-energy-table th,
    .renewable-energy-table td {
        padding: 0.6rem;
    }
    
    #renewableEnergyChart,
    #renewableEnergySourcesChart,
    #renewableVsNewEnergyChart {
        max-height: 350px;
        height: 350px !important;
    }
}

@media (max-width: 767px) {
    .renewable-energy-table-container {
        padding: 0.5rem;
    }
    
    .renewable-energy-table {
        font-size: 12px;
    }
    
    .renewable-energy-table th,
    .renewable-energy-table td {
        padding: 0.5rem;
    }
    
    .renewable-energy-chart-container {
        padding: 1rem;
        height: 350px;
        min-height: 300px;
        max-height: 350px;
    }
    
    .renewable-energy-chart-container canvas {
        max-height: 300px !important;
        height: 300px !important;
    }
    
    #renewableEnergyChart,
    #renewableEnergySourcesChart,
    #renewableVsNewEnergyChart {
        max-height: 300px !important;
        height: 300px !important;
    }
}

/* 1차 에너지 공급량 섹션 스타일 (status.html 내부) */
.energy-supply-content-wrapper {
    width: 100%;
}

/* 테이블 컨테이너 */
.energy-supply-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.energy-supply-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
}

.energy-supply-table thead {
    background-color: #f5f5f5;
    color: #000000;
}

.energy-supply-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
}

.energy-supply-table tbody tr {
    transition: background-color 0.2s ease;
}

.energy-supply-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.energy-supply-table tbody tr:hover {
    background-color: rgba(82, 184, 226, 0.05);
}

.energy-supply-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

/* 그래프 컨테이너 */
.energy-supply-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    position: relative;
    height: 700px !important;
    min-height: 650px !important;
    max-height: 700px !important;
    overflow: visible !important;
}

.energy-supply-chart-container canvas {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

#energySupplyChart {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* 반응형 디자인 - 1차 에너지 공급량 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .energy-supply-table {
        font-size: 14px;
    }
    
    .energy-supply-table th,
    .energy-supply-table td {
        padding: 0.6rem;
    }
    
    .energy-supply-chart-container {
        height: 650px;
        min-height: 600px;
        max-height: 650px;
    }
    
    #energySupplyChart {
        max-height: 600px !important;
        height: 600px !important;
    }
}

@media (max-width: 767px) {
    .energy-supply-table-container {
        padding: 0.5rem;
    }
    
    .energy-supply-table {
        font-size: 12px;
    }
    
    .energy-supply-table th,
    .energy-supply-table td {
        padding: 0.5rem;
    }
    
    .energy-supply-chart-container {
        padding: 1rem;
        height: 600px;
        min-height: 550px;
        max-height: 600px;
    }
    
    .energy-supply-chart-container canvas {
        max-height: 550px !important;
        height: 550px !important;
    }
    
    #energySupplyChart {
        max-height: 550px !important;
        height: 550px !important;
    }
}

/* 자연재해 피해액 섹션 스타일 (status.html 내부) */
.disaster-damage-content-wrapper {
    width: 100%;
}

/* 그래프 컨테이너 */
.disaster-damage-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    margin-bottom: 2rem;
    position: relative;
    height: 700px !important;
    min-height: 650px !important;
    max-height: 700px !important;
    overflow: visible !important;
}

.disaster-damage-chart-container canvas {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

#disasterDamageChart {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* 반응형 디자인 - 자연재해 피해액 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .disaster-damage-chart-container {
        height: 650px;
        min-height: 600px;
        max-height: 650px;
    }
    
    #disasterDamageChart {
        max-height: 600px !important;
        height: 600px !important;
    }
}

@media (max-width: 767px) {
    .disaster-damage-chart-container {
        padding: 1rem;
        height: 600px;
        min-height: 550px;
        max-height: 600px;
    }
    
    .disaster-damage-chart-container canvas {
        max-height: 550px !important;
        height: 550px !important;
    }
    
    #disasterDamageChart {
        max-height: 550px !important;
        height: 550px !important;
    }
}

/* 온실가스 총배출량 섹션 스타일 (status.html 내부) */
.greenhouse-gas-content-wrapper {
    width: 100%;
}

/* 표 컨테이너 */
.greenhouse-gas-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.greenhouse-gas-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
}

.greenhouse-gas-table thead {
    background-color: #f5f5f5;
    color: #000000;
}

.greenhouse-gas-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
}

.greenhouse-gas-table tbody tr {
    transition: background-color 0.2s ease;
}

.greenhouse-gas-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.greenhouse-gas-table tbody tr:hover {
    background-color: rgba(0, 171, 128, 0.05);
}

/* 데이터 출처 스타일 */
.data-source {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #666;
}

.data-source span {
    margin-right: 0.5rem;
}

.data-source a {
    color: #52b8e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.data-source a:hover {
    color: #2a8fb8;
    text-decoration: underline;
}

.greenhouse-gas-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

/* 그래프 컨테이너 */
.greenhouse-gas-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    height: 700px !important;
    min-height: 650px !important;
    max-height: 700px !important;
    overflow: visible !important;
}

.greenhouse-gas-chart-container canvas {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

#greenhouseGasChart {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* 반응형 디자인 - 온실가스 총배출량 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .greenhouse-gas-table-container {
        padding: 1rem;
    }
    
    .greenhouse-gas-table {
        font-size: 14px;
    }
    
    .greenhouse-gas-table th,
    .greenhouse-gas-table td {
        padding: 0.6rem;
    }
    
    .greenhouse-gas-chart-container {
        height: 650px;
        min-height: 600px;
        max-height: 650px;
    }
    
    #greenhouseGasChart {
        max-height: 600px !important;
        height: 600px !important;
    }
}

@media (max-width: 767px) {
    .greenhouse-gas-table-container {
        padding: 0.5rem;
    }
    
    .greenhouse-gas-table {
        font-size: 12px;
    }
    
    .greenhouse-gas-table th,
    .greenhouse-gas-table td {
        padding: 0.5rem;
    }
    
    .greenhouse-gas-chart-container {
        padding: 1rem;
        height: 600px;
        min-height: 550px;
        max-height: 600px;
    }
    
    .greenhouse-gas-chart-container canvas {
        max-height: 550px !important;
        height: 550px !important;
    }
    
    #greenhouseGasChart {
        max-height: 550px !important;
        height: 550px !important;
    }
}

/* 1인당 전력 소비량 섹션 스타일 (status.html 내부) */
.power-consumption-content-wrapper {
    width: 100%;
}

/* 표 컨테이너 */
.power-consumption-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.power-consumption-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Droid Sans', 'Noto Sans KR', sans-serif;
    font-size: 16px;
}

.power-consumption-table thead {
    background-color: #f5f5f5;
    color: #000000;
}

.power-consumption-table th {
    padding: 1rem;
    text-align: center;
    font-weight: 700;
    border: 1px solid #e0e0e0;
}

.power-consumption-table tbody tr {
    transition: background-color 0.2s ease;
}

.power-consumption-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.power-consumption-table tbody tr:hover {
    background-color: rgba(0, 171, 128, 0.05);
}

.power-consumption-table td {
    padding: 0.75rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    color: #333333;
}

/* 그래프 컨테이너 */
.power-consumption-chart-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    height: 700px !important;
    min-height: 650px !important;
    max-height: 700px !important;
    overflow: visible !important;
}

.power-consumption-chart-container canvas {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

#powerConsumptionChart {
    max-height: 650px !important;
    height: 650px !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
}

/* 반응형 디자인 - 1인당 전력 소비량 섹션 */
@media (min-width: 768px) and (max-width: 1489px) {
    .power-consumption-table-container {
        padding: 1rem;
    }
    
    .power-consumption-table {
        font-size: 14px;
    }
    
    .power-consumption-table th,
    .power-consumption-table td {
        padding: 0.6rem;
    }
    
    .power-consumption-chart-container {
        height: 650px;
        min-height: 600px;
        max-height: 650px;
    }
    
    #powerConsumptionChart {
        max-height: 600px !important;
        height: 600px !important;
    }
}

@media (max-width: 767px) {
    .power-consumption-table-container {
        padding: 0.5rem;
    }
    
    .power-consumption-table {
        font-size: 12px;
    }
    
    .power-consumption-table th,
    .power-consumption-table td {
        padding: 0.5rem;
    }
    
    .power-consumption-chart-container {
        padding: 1rem;
        height: 600px;
        min-height: 550px;
        max-height: 600px;
    }
    
    .power-consumption-chart-container canvas {
        max-height: 550px !important;
        height: 550px !important;
    }
    
    #powerConsumptionChart {
        max-height: 550px !important;
        height: 550px !important;
    }
}

