ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

a{
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible, button:focus-visible, .q-btn:focus-visible{
    outline: 2px solid red !important;
}

html{
    height: 100%;
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'dotum', '돋움', 'sans-serif';
    font-size: 16px;
    line-height: 1;
    touch-action: none;
}

body{
    width: 100%;
    height: 100%;
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', 'dotum', '돋움', 'sans-serif';
    overflow: hidden;
}

#app{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#header{
    z-index: 1;
    flex: 0 0 auto;
}

#contents{
    z-index: 1;
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#footer{
    z-index: 1;
    flex: 0 0 auto;
}

aside{
    z-index:2;
    position:absolute;
    pointer-events: none; /* 맵 이벤트가 통과하도록 설정 */
}
aside > *{
    pointer-events: auto;
}
.top-side{
    top:0;
    left: 0;
    max-width: 100%;
}
.bottom-side{
    bottom:0;
    left: 0;
    max-width: 100%;
}
.left-side{
    top:0;
    left: 0;
    max-height: 100%;
}
.right-side{
    top:0;
    right: 0;
    max-height: 100%;
}
#map {
    z-index:1;
    position:relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    pointer-events: none;
}
#map.touch{
    pointer-events: auto; /* 맵 이벤트가 통과하도록 설정 */
}

h1{
    display: block;
    padding: 0.2rem;
    margin: 0;
    /* --- 글래스모피즘 핵심 스타일 --- */
    background-color: rgba(0, 0, 0, 0.3); /* 반투명 흰색 배경 */
    backdrop-filter: blur(3px); /* 배경을 흐리게 만듭니다  */
    -webkit-backdrop-filter: blur(3px); /* 웹킷 기반 브라우저 지원 */
    border: 2px solid rgba(255, 255, 255, 0.2); /* 얇고 반투명한 테두리 */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); /* 그림자로 입체감 추가 */
    border-radius: 20px; /* 둥근 모서리 */
}
h1 svg{
    display: block;
    width: auto;
    height: 2rem;
    fill: #ffffff;
}

.btn{
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    outline: 0;
    border: 0;
    padding: 0.268rem;
    width: auto;
    height: auto;
    min-height: auto;
    font-size: inherit;
    color: #003668;
    vertical-align: middle;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
}
.btn.active{
    background-color: #1976d2;
    color: #fff;
}
.btn.close{
    background-color: transparent;
    color: #ffffff;
}
.btn.color-picker{
    margin-left: .3rem;
    padding: 0;
    border: 1px solid #1976d2;
}

.btn.color-picker .q-icon{
    font-weight: 300;
}
.btn.chip{
    background-color: #e2e5e5;
    font-size: 0.85rem;
    padding: .2rem .8rem;
    border-radius: 1.2rem;
    word-break: keep-all;
    white-space: nowrap;
}
.btn.chip.active{
    background-color: #1976d2;
    color: #fff;
}

.btn-fab{
    position:relative;
}

.btn-fab .btn-fab-list{
    position:absolute;
    display: flex;
    row-gap: .3rem;
    column-gap: .3rem;
    padding: 0 .3rem;
}

.btn-fab.left .btn-fab-list{
    top:0;
    left:0;
    transform: translateX(-100%);
}
.tabs{
    position:relative;
    max-width: 95vw;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tab-menu {
    display: flex;
    align-items: stretch;
}

.tab-menu .btn{
    flex: 1 0 auto;
    background-color: transparent;
}
.tab-menu .btn.selected .q-focus-helper{
    background-color: #ffffff;
    opacity: .22;
}
.tab-menu .btn.close{
    flex: 0 0 auto;
}
.tab-panels{
    background-color: #ffffff;
}
.tab-panels:not(.scroll){
    overflow: hidden;
}
.tab-panels > div{
    max-height: 100%;
}
.q-card.expand .q-item.header{
    padding: 0 .4rem;
    background-color: #356783;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0;
    cursor:pointer;
    user-select: none;
}
.q-card.expand .q-item.header.expanded{
    background-color: #0184d0;
}

.tab-panels .q-card.expand .q-item.header .btn{
    padding: 0;
    font-size: .9rem;
    background-color: transparent;
    color: #ffffff;
}
.expand-list{
    font-size: 0.8rem;
    font-weight: 500;
}

.expand-list{
    padding:0;
}

.menu{
    position:relative;
}

.menu .menu-list{
    position:absolute;
    padding: 0 .3rem;
}
.menu .menu-list a:hover{
    text-decoration: none;
}

.menu.left .menu-list{
    top:0;
    left:0;
    transform: translateX(-100%);
}

.menu.bottom .menu-list{
    bottom:0;
    right:0;
    transform: translateY(100%);
}

.menu .menu-list > .q-list{
    font-size: 0.9rem;
    font-weight: 700;
    background-color: #ffffff;
}
.menu .menu-list > .q-list > .q-item{
    padding: .3rem .5rem;
}
.menu .menu-list > .q-list > .q-item, .menu .menu-list > .q-list > .q-item > a{
    column-gap: .5rem;
}
.menu .menu-list .color-picker .q-icon{
    color: #003668;
}

.excptn-list .q-item{
    padding: .3rem .8rem;
}

.excptn-list .q-item .title{
    padding: 0 .3rem;
}

.excptn-detail > .content .details{
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
}

.excptn-detail .report-list{
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
}
.excptn-detail .report-list a{
    text-decoration: underline;
}

.q-list.time-list .q-item{
    padding: 0.8rem;
}

.zoom{
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.zoom .slider{
    padding: .5rem 0;
    border-top: 1px solid #c3bebe;
    border-bottom: 1px solid #c3bebe;
    height: 10rem;
    background-color: #fff;
    justify-content: center;
}

.scale-line{
    z-index: 1;
    position: absolute;
    bottom: 0.2rem;
    right: 0;
    display: flex;
    pointer-events: none;
}

.scale-line .ol-scale-line {
    position: relative;
    bottom: 0;
    left: 0;
    padding: 0 6px;
    background: transparent;
    color: #000;
    box-shadow: none;
}

/* 텍스트: 검은색 + 흰색 외곽선(text-shadow 다중) */
.ol-scale-line-inner {
    position:relative;
    padding-bottom: 2px;
    border-width: 2px;
    font-weight: 600;
    font-size: .7rem;
    color: #000 !important;
    line-height: 1;
    border-radius: 0 0 4px 4px;
    text-shadow:
            -1px -1px 0 #fff,
            1px -1px 0 #fff,
            -1px 1px 0 #fff,
            1px 1px 0 #fff,
            -2px 0 0 #fff,
            2px 0 0 #fff,
            0 -2px 0 #fff,
            0 2px 0 #fff;
    box-shadow:
            0 2px 0 0 rgba(255,255,255,0.95),
                /* 좌/우 2px 라인 */
            2px 0 0 0 rgba(255,255,255,0.95),
            -2px 0 0 0 rgba(255,255,255,0.95);
}

.coordinate-box{
    z-index: 1;
    position: absolute;
    bottom: 1.6rem;
    right: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.coordinate-box .coordinate{
    display: flex;
    column-gap: .5rem;
    padding: 0 .3rem;
}

.overview-map {
    z-index: 2;
    position: absolute;
    bottom: 3rem;
    right: 0.5rem;
}

.ol-overviewmap {
    /* 위치 조정은 선택 */
    position: relative;
    bottom: 0;
    left: 0;
}
/* OverviewMap 위치 박스 스타일 */
.ol-overviewmap .ol-overviewmap-box {
    border: 2px solid #ff0000 !important; /* 빨간 테두리 */
    box-sizing: border-box;
}
.overview-map .ol-overviewmap-map {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0,0,0,0.25);
    box-sizing: border-box;
}
.overview-map  button{
    width: auto;
    height: auto;
    padding: 0.6rem;
}

.ol-popup{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, .8);
    pointer-events: none;
}
.ol-popup > p{
    margin:0;
    padding: .2rem .3rem;
    height: auto;
    width: max-content;
    font-size: .8rem;
    text-align: center;
    line-height: 1em;
}

.marker-overlay {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    font-size: .9rem;
}
.marker-overlay .coordinates{
    padding: 0 .2rem;
}

.marker-overlay .btn.remove{
    font-size: .8rem;
}

.dialog{
    display: flex;
    flex-direction: column;
    min-width: 15rem;
    max-width: 100%;
}
.dialog.default{
    z-index: 6001;
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: 95%;
    max-height: 95%;
    transform: translate(-50%, -50%);
}
.dialog.default .content{
    padding: .5rem;
}
.dialog-overlay{
    z-index: 6000;
    position: fixed;
    top:0;
    left:0;
    width: 100vw;
    height: 100vh;
    background-color: rgba( 0,0,0, .3 );
}
.dialog .header{
    display: flex;
    align-items: center;
    padding: 0;
    height: auto;
    background-color: #003668;
    color: #fff;
}
.dialog .header > .title{
    padding: 0 .5rem;
    font-size: .9rem;
    font-weight: 700;
}

.dialog .header .btn.close{
    margin:0;
    color: #fff;
    font-size: 0.8rem;
}

.dialog .content{
    display: flex;
    flex-direction:  column;
    flex-wrap: nowrap;
    padding: 0;
    overflow: hidden;
}
.dialog.chart{
    max-width: none;
}
.dialog.chart .chart-container{
    height: 60vh;
    width: 540px;
}
.dialog.carousel .q-card{
    width: 100vw;
    height:100vh;
    max-width: 100%;
    background-color: transparent;
}
.dialog.carousel .header{
    background-color: transparent;
}
.dialog.carousel .header > .title{
    font-size: 1.4rem;
}
.dialog.carousel .header .btn.close{
    font-size: 1.1rem;
}
.dialog.carousel .q-card .content{
    flex: 1 1 auto;
}
.dialog.carousel .q-card .content .q-carousel{
    height: 100%;
    background-color: transparent;
}
.dialog.carousel .q-card .content .q-carousel .q-carousel__slide{
    overflow:hidden;
}
.dialog.carousel .q-card .content .q-carousel .q-img{
    height: 100%;
}
.dialog.carousel .q-card .content .q-carousel  .q-carousel__navigation{
    bottom:0;
    background-color: rgba( 165,165,165,.8 );
}

.dialog.carousel .q-card .content .q-carousel .q-carousel__arrow .q-btn{
    background-color: rgba( 165,165,165,.8 );
}
.data-popup .content > .q-card{
    display: flex;
    flex-direction: column;
    padding: 8px;
    row-gap: .4rem;
}
.value-box{
    padding: 0;
    column-gap: .6rem;
}

.switcher{
    color: #003668;
    font-weight: 700;
}
.switcher .btn{
    padding: .2rem;
    font-size: 0.9rem;
}
.switcher .center-item{
    padding: 0.3rem;
}
.switcher .bottom-item{
    column-gap: .3rem;
}

.switcher .opacity{
    column-gap: .3rem;
}
.switcher.wind .q-btn-group{
    border-radius: 0;
    border: 1px solid rgba(0,0,0,.12);
}
.switcher.wind .q-btn-group .q-btn{
    padding: 0.3rem;
    font-size: .8rem;
}
.geo .switcher.wind .q-btn-group .q-btn{
    padding: 0.3rem 0.8rem;
}
.switcher .feature{
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
    padding: 0 0.2rem;
}
.switcher .feature > .q-item{
    column-gap: .5rem;
}
.switcher .feature > .q-item .title{
    padding: .3rem 0;
}
.switcher .feature > .q-item:not(:first-child){
    border-top: 1px solid rgba(0, 0, 0, .12);
}
.switcher .feature .q-item__section > .q-icon{
    font-size: 1.2rem;
}
.switcher .feature .btn{
    padding:0;
    font-size: 0.8rem;
}

.empty-message{
    padding: .5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #003668;
    text-align: center;
}

.modal {
    z-index:4;
    min-width: 300px;
    max-width: 100%;
}

.legend-modal{
    width: 300px;
}

.modal .modal-moved {
    transition: none;
}

.modal .cursor-move {
    cursor: move;
}

.modal .resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,0.2) 50%);
    border-bottom-right-radius: 4px;
}

.legend-img{
    display: block;
    width: 100%;
}

.sym_fill{
    font-variation-settings: 'FILL' 1;
}
.q-checkbox__label {
    word-break: keep-all;
}
.q-tooltip{
    padding: .3rem;
    word-break: keep-all;
}
.q-item{
    padding:0;
    min-height: auto;
}
.q-item__section--side{
    padding:0;
    color: inherit;
}
.q-item__section--main~.q-item__section--side{
    padding: 0;
    color: inherit;
}
.q-item__section--main+.q-item__section--main{
    margin:0;
}
.q-pagination .q-btn{
    font-size: .9rem;
}
.q-item__label--caption {
    color: inherit;
}
.q-menu .q-item{
    padding: .3rem .5rem;
    min-width: 3rem;
    text-align: center;
}
.q-btn .block{
    white-space: nowrap;
    word-break: keep-all;
}

.timepicker, .datepicker{
    display: flex;
}
.timepicker > .q-btn, .datepicker > .q-btn{
    flex: 1 1 auto;
    background-color: transparent;
    color: #ffffff;
}
.timepicker > .q-btn .q-btn__content, .datepicker > .q-btn .q-btn__content {
    column-gap: 0.3rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
.timepicker > .q-btn .q-btn__content > .block, .datepicker > .q-btn .q-btn__content > .block {
    flex: 1 1 auto;
}

.on-left {
    margin-right: .2rem;
}

.q-notifications__list {
    z-index: 6000;
}

@media screen and (max-width: 680px), screen and (max-height: 640px) {
    html{
        font-size: 15px;
    }
    .zoom .slider{
        display: none;
    }
    .dialog.chart .chart-container{
        width: 80vw;
        height: 60vh;
    }
    .legend-modal{
        width: 260px;
    }
    .modal {
        z-index:4;
        min-width: 260px;
        max-width: 100%;
    }
    .modal.dialog .header .title{
        font-size: .85rem;
    }
}