@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
    --primary-color: #00816C;
    --primary-dark: #19473F;
    --primary-light: #3CA795;
    --gradient-start: rgba(0, 178, 222, 0.90);
    --gradient-end: rgba(68, 180, 132, 0.90);
    --gray-900: #1C1C1F;
    --gray-700: #71727D;
    --gray-400: #B9BAC6;
    --gray-300: #D5D5DE;
    --gray-200: #E6E6ED;
    --highlight-yellow: #FFCC66;
    --white: #ffffff;
}

.dashboard-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 60px 40px;
}
.dashboard-container img{
    max-width: 100%;
}

/* Section Styles */
.section {
    margin-bottom: 120px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
}

.section-number {
    width: 56px;
    height: 56px;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
}

/* Tab Container */
.tab-container {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.tab-button {
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 700;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-button:hover {
    border-color: var(--primary-color);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: flex;
}

/* Infrastructure Content */
.infrastructure-content {
    gap: 60px;
    align-items: flex-start;
}

/* Stats Container */
.stats-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stats-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stats-title {
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 800;
    line-height: 36px;
}

.stats-count-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stats-number {
    color: #1E837D;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
}

.stats-unit {
    color: var(--gray-900);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.5;
}

/* Top 3 Chart Container */
.top3-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.top3-chart-area {
    background: linear-gradient(179deg, rgba(0, 178, 222, 0) 0%, rgba(68, 180, 132, 0.20) 100%);
    padding: 80px 40px 12px 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.top3-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top3-header-text {
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 800;
    line-height: 30px;
}

.top3-badge {
    color: #00816C;
    font-size: 20px;
    font-weight: 900;
    line-height: 30px;
}

.chart-bar-group {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 60px;
    padding: 0 24px;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chart-bar-value {
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    line-height: 22.4px;
    text-align: center;
}

.chart-bar-visual {
    width: 80px;
    background: linear-gradient(179deg, rgba(0, 178, 222, 0.90) 0%, rgba(68, 180, 132, 0.90) 100%);
}

.chart-labels {
    background: #00816C;
    border-radius: 12px;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.chart-label-item {
    width: 80px;
    text-align: center;
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    line-height: 22.4px;
}

/* Treemap Container */
.district-map {
    flex: 1;
}

.treemap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2px;
    padding: 20px;
    background: var(--gray-200);
    border-radius: 12px;
}

.treemap-item {
    background: var(--primary-light);
    padding: 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.treemap-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 129, 108, 0.3);
}

.treemap-item.large {
    grid-column: span 3;
    grid-row: span 3;
    background: #6CD3C2;
}

.treemap-item.medium {
    grid-column: span 2;
    grid-row: span 2;
}

.treemap-item.small {
    background: #338F80;
}

.treemap-item.tiny {
    background: var(--primary-dark);
}

.treemap-item .district {
    font-size: 12px;
    font-weight: 700;
}

.treemap-item .value {
    font-size: 16px;
    font-weight: 800;
}

/* Achievement Content */
.achievement-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.yearly-chart {
    flex: 1.5;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 20px;
}

.year-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.year-bar .bar-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--gray-700);
}

.year-bar .bar {
    width: 36px;
    background: #68ADA2;
    opacity: 0.6;
}

.year-bar.highlight .bar {
    width: 48px;
    background: linear-gradient(179deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    opacity: 1;
}

.year-bar.highlight .bar-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.year-bar .unit {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-900);
}

.year-bar .year {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
}

.year-dots {
    display: flex;
    align-items: flex-end;
    padding-bottom: 24px;
    gap: 8px;
}

.growth-indicator {
    text-align: center;
    margin-top: 24px;
}

.growth-percentage {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
}

.growth-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-left: 8px;
}

/* Comparison Card */
.comparison-card {
    flex: 1;
}

.card-header {
    background: linear-gradient(179deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 32px 40px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
}

.card-content {
    padding: 40px;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.comparison-item h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.comparison-number {
    font-size: 28px;
    font-weight: 900;
    color: rgba(0, 163, 204, 0.90);
}

.comparison-number span {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

.percentage-box {
    background: var(--gradient-end);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 900;
}

/* Country Map */
.country-map {
    position: relative;
}

.map-container {
    position: relative;
    border-radius: 12px;
}

.country-card {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 16px;
    align-items: center;
}

.country-card .rank {
    position: absolute;
    top: -10px;
    left: -12px;
    font-size: 16px;
    font-weight: 900;
}

.country-card.japan {
    border: 4px solid var(--gradient-start);
    top: 231px;
    left: 537px;
}

.country-card.japan .rank {
    color: var(--gradient-start);
    font-size: 24px;
}

.country-card.china {
    border: 3px solid var(--primary-color);
    top: 157px;
    left: 269px;
}

.country-card.china .rank,
.country-card.china .country-number {
    color: var(--primary-color);
}

.country-card.usa {
    border: 3px solid #204796;
    top: 164px;
    right: 150px;
}

.country-card.usa .rank,
.country-card.usa .country-number {
    color: #204796;
}

.country-card.taiwan {
    top: 269px;
    left: 320px;
}

.country-card.thailand {
    top: 382px;
    left: 256px;
}

.country-card.singapore {
    top: 437px;
    left: 506px;
}

.country-card.mongolia {
    top: 87px;
    left: 448px;
}

.country-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flag {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.country-name {
    font-size: 14px;
    font-weight: 700;
}

.country-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-number {
    font-size: 18px;
    font-weight: 800;
}

.country-percent {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

/* Department Grid */
.department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.department-card {
    border: 1px solid var(--gray-300);
    border-radius: 24px;
    overflow: hidden;
}

.department-header {
    background: linear-gradient(180deg, rgba(68, 180, 132, 0.64) 0%, rgba(0, 178, 222, 0.80) 100%);
    padding: 24px;
    color: var(--white);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.department-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.year-comparison {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.year-label {
    background: var(--gray-700);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 800;
}

.year-item.current .year-label {
    background: var(--primary-color);
    font-size: 16px;
}

.year-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--gray-700);
}

.year-item.current .year-value {
    font-size: 24px;
    color: var(--primary-color);
}

.percentage {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-700);
}

.arrow {
    font-size: 24px;
    color: var(--gray-400);
}

.growth {
    text-align: center;
}

.growth-rate {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
}

/* Consumption Content */
.consumption-content {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.consumption-chart {
    flex: 1;
    background: linear-gradient(179deg, rgba(0, 178, 222, 0) 0%, rgba(68, 180, 132, 0.20) 100%);
    padding: 40px;
    border-radius: 12px;
}

.consumption-chart h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.unit {
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
    float: right;
}

.consumption-bars {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    margin-top: 32px;
}

.consumption-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.consumption-item .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-700);
}

.consumption-item.highlight .value {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
}

.consumption-item .bar {
    width: 60px;
    background: #68ADA2;
}

.consumption-item.highlight .bar {
    width: 80px;
    background: linear-gradient(179deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.consumption-item .label {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.consumption-item .percent {
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

/* Total Summary */
.total-summary {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 60px 12px 60px 12px;
    text-align: center;
    margin-top: 60px;
}

.total-summary p {
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.total-summary strong {
    font-size: 32px;
}

.highlight-summary {
    font-size: 36px !important;
}

.highlight-amount {
    color: var(--highlight-yellow);
    font-weight: 800;
}

.sub-text {
    font-size: 20px;
    font-weight: 800;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .department-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .infrastructure-content {
        flex-direction: column;
    }

    .achievement-content {
        flex-direction: column;
    }

    .consumption-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .department-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-bars {
        flex-wrap: wrap;
    }

    .consumption-bars {
        flex-wrap: wrap;
    }

    .tab-container {
        flex-direction: column;
    }

    .tab-button {
        width: 100%;
    }
}

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .big-number .number {
        font-size: 48px;
    }

    .total-summary {
        padding: 20px;
    }

    .total-summary p {
        font-size: 18px;
    }

    .highlight-summary {
        font-size: 24px !important;
    }
}