/* ========================================
   대시보드 페이지 전용 스타일
   공통 스타일은 common.css 참조
   ======================================== */

.dashboard-section {
    display: grid;
    /* grid-template-rows: auto auto auto auto; */
    row-gap: 20px;
}

.dashboard-section.section-1 {
    grid-template-columns: 320px 320px;
    column-gap: 24px;
}

.dashboard-section.section-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
}

.dashboard-section.section-3 {
    grid-template-columns: 1fr;
}

/* ========================================
   재난안전 & 교통현황 카드 (대시보드 전용)
   ======================================== */
.disaster-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}


.disaster-content {
    background: var(--dashboard-card-content-bg);
    border-radius: 16px;
    padding: 15px;
}

.disaster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
}

.disaster-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.disaster-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.disaster-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
}

.disaster-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.disaster-icon img {
    width: 24px;
}

.disaster-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

.disaster-number {
    font-size: 22px;
    font-weight: 500;
    color: #00B541;
    line-height: 1.2;
}

.disaster-number small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.disaster-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.traffic-card {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.traffic-content {
    background: var(--dashboard-card-content-bg);
    border-radius: 25px;
    padding: 15px;
}

.traffic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    position: relative;
}

.traffic-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.traffic-grid::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.traffic-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 12px;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
}

.traffic-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.traffic-icon img {
    width: 24px;
}

.traffic-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1;
}

.traffic-number {
    font-size: 22px;
    font-weight: 500;
    color: #1998FF;
    line-height: 1.2;
}

.traffic-number small {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.traffic-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ========================================
   인구현황 카드 (대시보드 전용)
   ======================================== */
.population-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: visible;
}

.population-card .card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.population-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 25px 20px;
    background: var(--dashboard-card-content-bg);
    border-radius: 25px;
    /* margin-bottom: 20px; */    
}

.population-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding:10px 0px;
    cursor: pointer;
}

.population-icon {
    width: 80px;
    height: 80px;
    background: var(--population-icon-bg);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.population-icon img {
    width: 48px;
}

.population-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.population-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.population-number {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.population-number small {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-tertiary);
    margin-left: 4px;
}

.population-change {
    font-size: 14px;
/*     color: #EF4444; */
    font-weight: 300;
}

.population-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.population-detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.population-detail-item:last-child {
    border-right: none;
}

.detail-label {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 400;
    text-align: center;
}

.detail-value {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
}

.detail-value small {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-tertiary);
    margin-left: 3px;
}

.detail-value.increase::before {
    content: '▲ ';
    color: #10B981;
    margin-right: 4px;
    font-size: 12px;
}

.detail-value.decrease::before {
    content: '▼ ';
    color: #EF4444;
    margin-right: 4px;
    font-size: 12px;
}

/* ========================================
   지도 카드
   ======================================== */
.map-card {
    grid-column: 1 / 3;
    grid-row: 2 / 5;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: visible;
}

.map-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.map-tab img {
    width: 20px;
    height: 20px;
}

.map-tab span {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-primary);
}

.map-container {
    flex: 1;
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: visible;
}

.gangneung-map {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.marker-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--card-bg-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 16px;
    background: rgba(15, 23, 42, 0.9);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-icon {
    width: 32px;
    height: 32px;
}

.legend-icon img {
    width: 16px;
    height: 16px;
}

.legend-item span {
    font-size: 15px;
    color: var(--text-primary);
}

.legend-pause-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 8px;
}

.legend-pause-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.legend-pause-btn img {
    width: 14px;
    height: 14px;
}

/* ========================================
   지도 영역 - 원본 스타일 적용
   ======================================== */
.map-area {
    flex: 1;
    position: relative;
}

.map-control-box {
    position: absolute;
    bottom: 40px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    z-index: 15;
}

.map-tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    position: relative;
    padding: 0;
}

.map-tab:hover {
    transform: scale(1.05);
}

.map-tab.active .tab-icon {
    background: #0BCE53;
}

.map-tab:not(.active) .tab-icon {
    background: #464f61;
}

/* 라이트 모드 - 비활성 탭 아이콘 */
[data-theme="light"] .map-tab:not(.active) .tab-icon {
    background: #ADC4D7;
}

.tab-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.tab-icon img.icon-default {
    width: 29px;
    height: 29px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.tab-icon img.icon-hover {
    width: 29px;
    height: 29px;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-tab:hover .tab-icon img.icon-default,
.map-tab.active .tab-icon img.icon-default {
    opacity: 0;
}

.map-tab:hover .tab-icon img.icon-hover,
.map-tab.active .tab-icon img.icon-hover {
    opacity: 1;
}

.tab-label {
    font-size: 15px;
    font-weight: 3300;
    color: #8492A8 !important;
    font-family: var(--paper);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.map-tab:hover .tab-label,
.map-tab.active .tab-label {
    color: #0BCE53 !important;
}

.map-pause-btn {
    background: #0BCE53;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-pause-btn:hover {
    transform: scale(1.05);
}

.pause-icon {
    width: 12px;
    height: 16px;
    position: relative;
}

/* 기본 상태 (자동 회전 중): 일시정지 아이콘 (II) */
.pause-icon::before,
.pause-icon::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 16px;
    background: white;
    border-radius: 2px;
    top: 0;
}

.pause-icon::before {
    left: 0;
}

.pause-icon::after {
    right: 0;
}

/* paused 상태 (일시정지됨): 재생 아이콘 (▶) */
.map-pause-btn.paused .pause-icon::before {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid white;
    border-radius: 0;
    left: 2px;
    top: 0;
    background: transparent;
}

.map-pause-btn.paused .pause-icon::after {
    display: none;
}

.map-legend-box {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
    font-family: var(--paper);
}

.map-legend-box .legend-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.map-legend-box .legend-item[data-filter] {
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, opacity 0.15s;
}

.map-legend-box .legend-item[data-filter].active {
    background: rgba(0, 100, 200, 0.12);
    padding: 2px 6px;
}

.map-legend-box.filtering .legend-item[data-filter]:not(.active) {
    opacity: 0.35;
}

.legend-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon-circle img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.legend-label {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    font-family: var(--paper);
    text-align: center;
}

/* SVG 맵 스타일 */
#svg-map {width:500px; height:550px; margin:0 auto;}

#svg-map svg path:hover {
    stroke: var(--color-yellow);
    stroke-width: 5px;
}

#svg-map .ico-box {
    position: absolute;
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
    font-family: var(--paper);
}

#svg-map .ico-box .icon-container{
    position: absolute;
    top: -44px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    min-height: 42px;
}

#svg-map .ico-box .icon {
    position: relative;
    width: 36px;
    height: 42px;
    font-size: 0;
    background-size: 100% 100%;
    cursor: pointer;
    flex-shrink: 0;
}

#svg-map .ico-box .location {
    display: block;
    color: #FFFFFF;
    font-family: var(--pretendard);
    font-weight: var(--fontweight-medium);
}

#svg-map .ico-box.el-1 {
    top: 60px;
    left: 250px;
}

#svg-map .ico-box.el-2 {
    top: 120px;
    left: 180px;
}

#svg-map .ico-box.el-3 {
    top: 150px;
    left: 300px;
}

#svg-map .ico-box.el-4 {
    top: 256px;
    left: 285px;
}

#svg-map .ico-box.el-5 {
    top: 200px;
    left: 380px;
}

#svg-map .ico-box.el-6 {
    top: 280px;
    left: 380px;
}

#svg-map .ico-box.el-7 {
    top: 290px;
    left: 460px;
}

#svg-map .ico-box.el-8 {
    top: 380px;
    left: 300px;
}

#svg-map .ico-box.el-9 {
    top: 400px;
    left: 480px;
}

/* 아이콘 배경 이미지 */
.icon {
    background-size: 100%;
}

.icon.emer {
    background-image: url(/images/main/ico_emergency.png) !important;
    cursor: pointer;
    pointer-events: auto;
}

.icon.rescue {
    background-image: url(/images/main/ico_rescue.png) !important;
}

.icon.burn {
    background-image: url(/images/main/ico_burn.png) !important;
}

.icon.wildfire {
    background-image: url(/images/main/ico_wildfire.png) !important;
}

.icon.etc {
    background-image: url(/images/main/ico_etc-1.png) !important;
}

.icon.accident {
    background-image: url(/images/main/ico_accident_lt.png) !important;
}

.icon.dig {
    background-image: url(/images/main/ico_dig_lt.png) !important;
}

.icon.event {
    background-image: url(/images/main/ico_event_lt.png) !important;
}

.icon.etc-2 {
    background-image: url(/images/main/ico_etc2_lt.png) !important;
}
.icon.over60 {background-image:url(/images/main/icon_over60.png)!important}
.icon.to5060{background-image:url(/images/main/icon_50to60.png)!important}
.icon.to4050{background-image:url(/images/main/icon_40to50.png)!important}
.icon.under40{background-image:url(/images/main/icon_under40.png)!important}
.icon.drought{background-image:url(/images/main/icon_drought.png)!important}
/* ========================================
   재난안전 상세 툴팁
   ======================================== */
.disaster-tooltip {
    display: none;
    position: absolute;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    width: 360px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    animation: tooltipFadeIn 0.2s ease;
    font-family: var(--paper);
}

.disaster-tooltip.active {
    display: block;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tooltip-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.tooltip-close-btn:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.tooltip-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 16px;
    font-family: var(--paper);
    padding-right: 24px;
}

.tooltip-info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tooltip-info-row {
    display: flex;
    align-items: center;
    background: #F8FAFC;
    border-radius: 8px;
    padding: 8px 16px;
}

.tooltip-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748B;
    min-width: 80px;
}

.tooltip-value {
    font-size: 14px;
    font-weight: 500;
    color: #0F172A;
    flex: 1;
}

.tooltip-value.status-progress {
    color: #EF4444;
    font-weight: 600;
}

.tooltip-arrow {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   공약 달성도 카드
   ======================================== */
.promise-card {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    overflow: visible;
}

.promise-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4px;
    margin-bottom: 15px;
}

.promise-card .card-header h3 {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.promise-card .card-content {
    background: var(--dashboard-card-content-bg);
    border-radius: 25px;
    padding: 30px;
    box-sizing: border-box;
}

.year-badge {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 200;
    color: #FFFFFF;
    cursor:default;
}

.promise-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.promise-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.promise-header {
    display: flex;
    align-items: center;
    min-width: fit-content;
}

.promise-name {
    width:110px;
    font-size: 15px;
    font-weight: 300;
    color: var(--text-primary);
    white-space: nowrap;
    font-family: var(--paper);
}

.promise-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.promise-bar {
    flex: 1;
    height: 16px;
    background: var(--promise-bar-bg);
    border-radius: 20px;
    overflow: hidden;
}

.promise-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

.promise-total {
    width:50px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 32px;
    text-align: right;
}

.promise-current {
    color: #10B981;
}

/* ========================================
   인구지표 카드
   ======================================== */
.indicator-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    overflow: visible;
}

.indicator-card .card-content {
    padding: 0;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.indicator-item {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: var(--paper);
    cursor: pointer;
}

/* .indicator-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
} */

.indicator-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--dashboard-card-content-bg);
    border-radius: 25px 25px 0 0;
}

.indicator-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--indicator-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator-icon-circle img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.indicator-title {
    font-size: 16px;
    color: var(--dashboard-text-white);
    font-weight: 500;
    text-align: center;
}

.indicator-number-box {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 14px 16px;
    background: var(--indicator-number-bg);
    border-radius: 0 0 25px 25px;
}

.indicator-number {
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    letter-spacing: -0.5px;
}

.indicator-unit {
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
}

.indicator-change {
    font-size: 12px;
    font-weight: 300;
    margin-left: 2px;
}

/* ========================================
   민원현황 카드
   ======================================== */
.petition-summary-card {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    overflow: visible;
}

.petition-summary-card .card-content {
    background:var(--dashboard-card-content-bg);
    border-radius: 25px;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.petition-main-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    position: relative;
}

.petition-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* cursor: pointer; */
}

.petition-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    background: var(--population-icon-bg);
}

.petition-icon-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.petition-month-label,
.petition-year-label {
    font-size: 16px;
    color: var(--dashboard-text-white);
    font-weight: 300;
}

.petition-number {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.petition-number.green {
    color: #10B981;
}

.petition-number.blue {
    color: #3B82F6;
}

.petition-number small {
    font-size: 16px;
    font-weight: 400;
    margin-left: 4px;
}

.petition-divider {
    width: 1px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.petition-note-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
}

.petition-note {
    font-size: 11px;
    color: #94A3B8;
    text-align: center;
    margin: 0;
    font-weight: 300;
}

/* ========================================
   민원분류별 처리현황 차트 카드
   ======================================== */
.petition-chart-card {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    overflow: visible;
}

.petition-chart-card .card-content {
    background: var(--dashboard-card-content-bg);
    border-radius: 25px;
    padding: 25px;
    box-sizing: border-box;
}

.chart-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
}

.chart-wrapper canvas {
    max-width: 100%;
    max-height: 100%;
}

#petitionChart {
	cursor: pointer;
}

/* ================================
   저수지 팝업
================================ */
.reservoir-popup {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.reservoir-popup.active {
    display: block;
}

.reservoir-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reservoir-popup-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.reservoir-popup-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.reservoir-popup-close:hover {
    color: #3182F6;
}

.reservoir-popup-body {
    display: flex;
    gap: 24px;
}

/* 수위 현황 그래프 */
.reservoir-graph-section {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.graph-title {
    display: none;
}

.water-level-graph {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
    overflow: visible;
}

.water-container {
    position: relative;
    width: 90px;
    height: 210px;
    border: 3px solid #6AB4FD;
    border-radius: 10px;
    overflow: visible;
    background: linear-gradient(to bottom, rgba(106, 180, 253, 0.05), rgba(106, 180, 253, 0.1));
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: url('/images/main/water.gif') no-repeat;
    background-size: cover;
    background-position: bottom center;
    height: 0%;
    max-height: 100%;
    transition: height 0.8s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    border-radius: 0 0 7px 7px;
    opacity: 0.85;
}

.water-marker {
    position: absolute;
    left: 3px;
    right: 3px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.water-marker.flood-level { top: 0; }
.water-marker.full-level { top: 30%; }
.water-marker.dead-level { top: 70%; }

.marker-line {
    flex: 1;
    height: 2px;
    background: #EF4444;
}

.water-marker.flood-level .marker-line {
    background: transparent;
    border-top: 2px dashed #EF4444;
    height: 0;
}

.water-marker.full-level .marker-line { background: #475569; }
.water-marker.dead-level .marker-line { background: #94A3B8; }

.marker-label {
    position: absolute;
    right: -60px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-primary);
    white-space: nowrap;
}

.water-marker.flood-level .marker-label {
    color: #EF4444;
    font-weight: 600;
}

/* .water-marker.full-level .marker-label { color: #475569; } */

.water-level-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-dot.flood { background: #EF4444; }
.legend-dot.full { background: #475569; }
.legend-dot.dead { background: #64748B; }

.legend-text {
    color: #888;
    flex: 1;
}

.legend-value {
    font-weight: 600;
    color: #333;
}

.water-rate {
    text-align: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rate-label {
    font-size: 14px;
    color: #888;
    margin-right: 4px;
}

.rate-value {
    font-size: 18px;
    font-weight: 700;
    color: #3182F6;
}

/* ================================
   저수지 팝업 (disaster-tooltip 내부용)
================================ */
.disaster-tooltip .reservoir-tooltip-content {
    display: block;
}

.disaster-tooltip .reservoir-tooltip-content .reservoir-graph-section {
    width: 100%;
}

.disaster-tooltip .reservoir-tooltip-content .water-level-graph {
    position: relative;
    min-height: 180px;
    padding: 12px;
}

.disaster-tooltip .reservoir-tooltip-content .water-container {
    width: 70px;
    height: 160px;
}

.disaster-tooltip .reservoir-tooltip-content .water-level-legend {
    margin-top: 8px;
}

.disaster-tooltip .reservoir-tooltip-content .legend-row {
    font-size: 11px;
}

.disaster-tooltip .reservoir-tooltip-content .water-rate {
    margin-top: 8px;
    padding: 8px;
}

/* 현재수위 표시 박스 */
.current-water-level {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 14px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.4);
    text-align: center;
}

.current-water-label {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.current-water-value {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
}

/* 현황지표 토글 버튼 */
.indicator-period-toggle {
    display: flex;
    background: var(--dashboard-card-content-bg);
    border-radius: 25px;
    padding: 4px;
    font-family: var(--paper);
    margin-bottom: -6px;
}

.indicator-period-toggle .toggle-btn {
    padding: 4px 18px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--paper);
}

.indicator-period-toggle .toggle-btn.active {
    background: #3B82F6;
    color: #fff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .indicator-period-toggle .toggle-btn.active {
    background: #0f172a;
}


.indicator-period-toggle .toggle-btn:hover:not(.active) {
    color: #3B82F6;
}

[data-theme="light"] .indicator-period-toggle .toggle-btn:hover:not(.active) {
    color: #0f172a;
}

.detail-change {
    font-size: 14px;
    font-weight: 300;
    text-align: center;
}