2556 lines
43 KiB
CSS
2556 lines
43 KiB
CSS
/* 기본 스타일 */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body {
|
|
height: 100%;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Malgun Gothic', sans-serif;
|
|
line-height: 1.6;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* 헤더 */
|
|
.header {
|
|
background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
|
|
color: #f5f5f5;
|
|
padding: 18px 25px;
|
|
border-bottom: 1px solid #333;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.header h1 {
|
|
font-size: 1.5rem;
|
|
margin: 0;
|
|
font-weight: 300;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* 메인 컨테이너 */
|
|
.main-container {
|
|
display: flex;
|
|
flex: 1;
|
|
}
|
|
|
|
/* 사이드바 */
|
|
.sidebar {
|
|
width: 250px;
|
|
background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
|
|
color: #f5f5f5;
|
|
padding: 0;
|
|
border-right: 1px solid #333;
|
|
}
|
|
|
|
/* 사이드바 네비게이션 */
|
|
.sidebar-nav {
|
|
padding: 0;
|
|
}
|
|
|
|
.menu-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-item {
|
|
display: block;
|
|
padding: 16px 22px;
|
|
color: #b0b0b0;
|
|
text-decoration: none;
|
|
border-bottom: 1px solid #2a2a2a;
|
|
transition: all 0.3s ease;
|
|
font-weight: 300;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background-color: #252525;
|
|
color: #ffffff;
|
|
padding-left: 28px;
|
|
border-left: 3px solid #888;
|
|
}
|
|
|
|
.menu-item.active {
|
|
background: linear-gradient(90deg, #333 0%, #1a1a1a 100%);
|
|
color: #ffffff;
|
|
border-left: 3px solid #fff;
|
|
}
|
|
|
|
/* 하위 메뉴가 있는 항목 */
|
|
.has-submenu {
|
|
position: relative;
|
|
}
|
|
|
|
.has-submenu > .menu-item::after {
|
|
content: '▼';
|
|
float: right;
|
|
font-size: 0.7rem;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.has-submenu.open > .menu-item::after {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* 서브메뉴 */
|
|
.submenu {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.3s ease;
|
|
background-color: #0a0a0a;
|
|
}
|
|
|
|
.has-submenu.open .submenu {
|
|
max-height: 200px;
|
|
}
|
|
|
|
.submenu-item {
|
|
display: block;
|
|
padding: 12px 22px 12px 40px;
|
|
color: #909090;
|
|
text-decoration: none;
|
|
border-bottom: 1px solid #1a1a1a;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.submenu-item:hover {
|
|
background-color: #1a1a1a;
|
|
color: #ffffff;
|
|
padding-left: 45px;
|
|
}
|
|
|
|
.submenu-item.active {
|
|
background-color: #252525;
|
|
color: #ffffff;
|
|
border-left: 2px solid #888;
|
|
}
|
|
|
|
/* 콘텐츠 영역 */
|
|
.content {
|
|
flex: 1;
|
|
padding: 20px;
|
|
background-color: #ecf0f1;
|
|
}
|
|
|
|
/* 페이지 콘텐츠 */
|
|
.page-content {
|
|
display: none;
|
|
}
|
|
|
|
.page-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.page-content h2 {
|
|
color: #2c3e50;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #3498db;
|
|
}
|
|
|
|
.page-content p {
|
|
color: #555;
|
|
}
|
|
|
|
/* 푸터 */
|
|
.footer {
|
|
background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
|
|
color: #888;
|
|
padding: 15px 20px;
|
|
text-align: center;
|
|
border-top: 1px solid #333;
|
|
font-size: 0.9rem;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* API 버튼 */
|
|
.api-btn {
|
|
background-color: #3498db;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
border-radius: 5px;
|
|
margin-top: 15px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.api-btn:hover {
|
|
background-color: #2980b9;
|
|
}
|
|
|
|
/* Plot 컨테이너 */
|
|
.plot-container {
|
|
margin: 20px 0;
|
|
min-height: 100px;
|
|
}
|
|
|
|
.plot-image {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.plot-message {
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* 로딩 */
|
|
.loading {
|
|
color: #3498db;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* 지도 컨테이너 */
|
|
.map-container {
|
|
width: 100%;
|
|
height: 450px;
|
|
margin: 20px 0;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
/* ========== 대시보드 스타일 ========== */
|
|
.dashboard {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: 100%;
|
|
}
|
|
|
|
.dashboard-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.dashboard-sidebar {
|
|
width: 280px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.dashboard-sidebar h3 {
|
|
color: #2c3e50;
|
|
font-size: 1.1rem;
|
|
margin-bottom: 15px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid #3498db;
|
|
}
|
|
|
|
/* 필터 영역 */
|
|
.filter-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
background: #1e3a5f;
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.filter-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.filter-group label {
|
|
display: block;
|
|
color: #fff;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.filter-select {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
background: #fff;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 지도 섹션 */
|
|
.map-section {
|
|
position: relative;
|
|
flex: 1;
|
|
min-height: 300px;
|
|
}
|
|
|
|
.dashboard-map {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 300px;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.risk-overlay {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 15px 25px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
text-align: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.risk-box {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.risk-label {
|
|
display: block;
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.risk-value {
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.risk-value.danger {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.risk-score {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.risk-score.danger {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* 차트 영역 */
|
|
.chart-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.chart-box {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
padding: 15px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.chart-box h4 {
|
|
color: #2c3e50;
|
|
font-size: 0.95rem;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.chart-container {
|
|
height: 150px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.chart-image {
|
|
width: 100%;
|
|
height: 120px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.chart-legend {
|
|
display: flex;
|
|
gap: 15px;
|
|
justify-content: center;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.legend-color {
|
|
width: 20px;
|
|
height: 8px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* 요약 패널 */
|
|
.summary-map {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.mini-map {
|
|
width: 100%;
|
|
height: 120px;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.summary-map-label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 8px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.risk-badge {
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.risk-badge.danger {
|
|
background: #fee;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* 위험 지표 */
|
|
.risk-indicators {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.indicator-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.indicator-label {
|
|
font-weight: 500;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.indicator-value {
|
|
text-align: right;
|
|
}
|
|
|
|
.value-number {
|
|
display: block;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.value-risk {
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.value-risk.high {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.value-risk.moderate {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.value-risk.low {
|
|
color: #27ae60;
|
|
}
|
|
|
|
/* 버튼 */
|
|
.summary-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-primary {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: #3498db;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #2980b9;
|
|
}
|
|
|
|
.btn-secondary {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: #1e3a5f;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
transition: background 0.3s;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: #152a45;
|
|
}
|
|
|
|
/* ========== 3D 지형 대시보드 ========== */
|
|
.terrain-dashboard {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: calc(100vh - 180px);
|
|
min-height: 500px;
|
|
}
|
|
|
|
.terrain-viewer {
|
|
flex: 1;
|
|
position: relative;
|
|
background: #1a1a2e;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.terrain-canvas {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
|
|
}
|
|
|
|
/* 범례 */
|
|
.terrain-legend {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 20px;
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.legend-title {
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
margin-bottom: 10px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.legend-scale {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.legend-gradient {
|
|
width: 150px;
|
|
height: 15px;
|
|
background: linear-gradient(90deg, #27ae60, #f1c40f, #e67e22, #e74c3c);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.legend-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.75rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 시뮬레이션 패널 */
|
|
.simulation-panel {
|
|
width: 300px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.simulation-panel h3 {
|
|
color: #2c3e50;
|
|
font-size: 1.2rem;
|
|
margin: 0;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #3498db;
|
|
}
|
|
|
|
.simulation-stats {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.stat-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.stat-label {
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 1.3rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.stat-value small {
|
|
font-size: 0.8rem;
|
|
font-weight: normal;
|
|
color: #888;
|
|
}
|
|
|
|
/* 시뮬레이션 차트 */
|
|
.simulation-chart {
|
|
flex: 1;
|
|
min-height: 150px;
|
|
}
|
|
|
|
.simulation-chart h4 {
|
|
color: #2c3e50;
|
|
font-size: 0.95rem;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.sim-chart-image {
|
|
width: 100%;
|
|
height: 120px;
|
|
object-fit: contain;
|
|
border: 1px solid #eee;
|
|
border-radius: 5px;
|
|
background: #fafafa;
|
|
}
|
|
|
|
/* 시뮬레이션 컨트롤 */
|
|
.simulation-controls {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.control-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.control-group label {
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
}
|
|
|
|
.control-select {
|
|
padding: 10px 12px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
font-size: 0.9rem;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.control-select:focus {
|
|
outline: none;
|
|
border-color: #3498db;
|
|
}
|
|
|
|
.btn-simulation {
|
|
padding: 12px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-simulation:hover {
|
|
background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
|
|
}
|
|
|
|
/* 가뭄 테마 스타일 */
|
|
.drought-theme .simulation-panel h3 {
|
|
border-bottom-color: #e67e22;
|
|
}
|
|
|
|
.drought-theme .stat-item {
|
|
border-left-color: #e67e22;
|
|
}
|
|
|
|
.drought-gradient {
|
|
background: linear-gradient(90deg, #27ae60, #f1c40f, #e67e22, #c0392b) !important;
|
|
}
|
|
|
|
.drought-btn {
|
|
background: linear-gradient(135deg, #d35400 0%, #e67e22 100%) !important;
|
|
}
|
|
|
|
.drought-btn:hover {
|
|
background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%) !important;
|
|
box-shadow: 0 4px 12px rgba(211, 84, 0, 0.3) !important;
|
|
}
|
|
|
|
/* ========== Water Body 추출 스타일 ========== */
|
|
.waterbody-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 25px;
|
|
height: 100%;
|
|
}
|
|
|
|
.waterbody-header {
|
|
text-align: center;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #3498db;
|
|
}
|
|
|
|
.waterbody-header h2 {
|
|
margin: 0 0 8px 0;
|
|
color: #2c3e50;
|
|
font-size: 1.8rem;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.waterbody-desc {
|
|
color: #666;
|
|
font-size: 1rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 이미지 비교 영역 */
|
|
.waterbody-comparison {
|
|
display: flex;
|
|
align-items: stretch;
|
|
gap: 20px;
|
|
flex: 1;
|
|
min-height: 450px;
|
|
}
|
|
|
|
.comparison-panel {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.panel-header {
|
|
background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
|
|
color: #fff;
|
|
padding: 15px 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 3px;
|
|
}
|
|
|
|
.panel-title {
|
|
font-weight: bold;
|
|
font-size: 1.1rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.panel-subtitle {
|
|
font-size: 0.85rem;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.panel-content {
|
|
position: relative;
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: #f8f9fa;
|
|
min-height: 380px;
|
|
}
|
|
|
|
/* 드래그앤드롭 영역 */
|
|
.dropzone {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.dropzone-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 15px;
|
|
padding: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dropzone-icon {
|
|
color: #3498db;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.dropzone-text {
|
|
color: #666;
|
|
font-size: 1rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.btn-browse {
|
|
padding: 12px 30px;
|
|
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-browse:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
|
|
}
|
|
|
|
.dropzone-hint {
|
|
color: #999;
|
|
font-size: 0.85rem;
|
|
margin: 0;
|
|
}
|
|
|
|
/* 드래그 오버 상태 */
|
|
.dropzone.dragover {
|
|
background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
|
|
}
|
|
|
|
.dropzone.dragover .dropzone-content {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.dropzone.dragover::after {
|
|
content: '이미지를 놓으세요';
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #3498db;
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 이미지 프리뷰 */
|
|
.dropzone-preview {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.preview-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 10px;
|
|
}
|
|
|
|
.btn-remove-image {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: rgba(231, 76, 60, 0.9);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 50%;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-remove-image:hover {
|
|
background: #c0392b;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* 중앙 추출 버튼 */
|
|
.comparison-center {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.btn-extract {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 18px 35px;
|
|
background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 1.2rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
|
|
}
|
|
|
|
.btn-extract:hover:not(:disabled) {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
|
|
}
|
|
|
|
.btn-extract:disabled {
|
|
background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.btn-extract svg {
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.btn-extract:hover:not(:disabled) svg {
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
.extract-loading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 10px;
|
|
color: #3498db;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 40px;
|
|
height: 40px;
|
|
border: 4px solid #e0e0e0;
|
|
border-top-color: #3498db;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* 결과 영역 */
|
|
.result-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.result-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 15px;
|
|
color: #999;
|
|
text-align: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.result-placeholder svg {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.result-placeholder p {
|
|
margin: 0;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.result-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* 결과 정보 */
|
|
.waterbody-info {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.waterbody-info .info-card {
|
|
flex: 1;
|
|
min-width: 180px;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
|
text-align: center;
|
|
border-top: 4px solid #3498db;
|
|
}
|
|
|
|
.waterbody-info .info-label {
|
|
display: block;
|
|
font-size: 0.9rem;
|
|
color: #666;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.waterbody-info .info-value {
|
|
display: block;
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.waterbody-info .info-value.highlight {
|
|
color: #3498db;
|
|
}
|
|
|
|
/* 기존 info-item 유지 (다른 곳에서 사용) */
|
|
.info-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.info-label {
|
|
display: block;
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.info-value {
|
|
display: block;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* ========== Intro 대시보드 스타일 ========== */
|
|
.intro-dashboard {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
height: 100%;
|
|
}
|
|
|
|
.intro-top {
|
|
display: flex;
|
|
gap: 20px;
|
|
min-height: 380px;
|
|
}
|
|
|
|
/* 지도 섹션 */
|
|
.intro-map-section {
|
|
flex: 2;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.intro-map-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 20px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.intro-map-header h3 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.live-badge {
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.6; }
|
|
}
|
|
|
|
.intro-map {
|
|
width: 100%;
|
|
height: 320px;
|
|
}
|
|
|
|
/* 상태 섹션 */
|
|
.intro-status-section {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.current-status-card {
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
flex: 1;
|
|
}
|
|
|
|
.status-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 15px;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.status-location {
|
|
font-size: 1.3rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.status-date {
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.status-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.status-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.status-icon.safe {
|
|
background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
|
|
}
|
|
|
|
.status-icon.warning {
|
|
background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
|
|
}
|
|
|
|
.status-icon.danger {
|
|
background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
|
|
}
|
|
|
|
.icon-circle {
|
|
width: 20px;
|
|
height: 20px;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.status-label {
|
|
font-size: 0.85rem;
|
|
color: #888;
|
|
}
|
|
|
|
.status-value {
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
color: #27ae60;
|
|
}
|
|
|
|
.status-details {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.detail-item {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 12px 8px;
|
|
background: #f8f9fa;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.detail-label {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.detail-value {
|
|
display: block;
|
|
font-size: 1.1rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 날짜 선택 */
|
|
.date-selector {
|
|
display: flex;
|
|
gap: 10px;
|
|
background: #fff;
|
|
padding: 15px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.date-select {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border: 1px solid #e0e0e0;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: border-color 0.3s;
|
|
}
|
|
|
|
.date-select:focus {
|
|
outline: none;
|
|
border-color: #3498db;
|
|
}
|
|
|
|
.btn-search {
|
|
padding: 12px 20px;
|
|
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.btn-search:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
|
|
}
|
|
|
|
/* 모니터링 카드 */
|
|
.intro-monitoring {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.monitoring-card {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 18px 20px;
|
|
border-bottom: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.card-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.card-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.flood-icon {
|
|
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.drought-icon {
|
|
background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.overall-icon {
|
|
background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
|
|
color: #fff;
|
|
}
|
|
|
|
.card-header h4 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
color: #2c3e50;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 25px 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.probability-display {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.prob-value {
|
|
font-size: 3.5rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
line-height: 1;
|
|
}
|
|
|
|
.prob-unit {
|
|
font-size: 1.5rem;
|
|
color: #888;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.prob-bar {
|
|
height: 8px;
|
|
background: #e0e0e0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.prob-fill {
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.flood-fill {
|
|
background: linear-gradient(90deg, #3498db, #2980b9);
|
|
}
|
|
|
|
.drought-fill {
|
|
background: linear-gradient(90deg, #e67e22, #d35400);
|
|
}
|
|
|
|
.prob-status {
|
|
display: inline-block;
|
|
padding: 5px 15px;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.prob-status.safe {
|
|
background: #e8f8f0;
|
|
color: #27ae60;
|
|
}
|
|
|
|
.prob-status.warning {
|
|
background: #fef5e7;
|
|
color: #e67e22;
|
|
}
|
|
|
|
.prob-status.danger {
|
|
background: #fdedec;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.card-footer {
|
|
padding: 15px 20px;
|
|
background: #f8f9fa;
|
|
border-top: 1px solid #f0f0f0;
|
|
}
|
|
|
|
.forecast-mini {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.forecast-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.fc-day {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
color: #888;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.fc-value {
|
|
display: block;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
/* 종합 위험도 게이지 */
|
|
.risk-gauge {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.gauge-circle {
|
|
position: relative;
|
|
width: 120px;
|
|
height: 120px;
|
|
}
|
|
|
|
.gauge-svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.gauge-bg {
|
|
fill: none;
|
|
stroke: #e0e0e0;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.gauge-fill {
|
|
fill: none;
|
|
stroke-width: 3;
|
|
stroke-linecap: round;
|
|
transition: stroke-dasharray 0.5s ease;
|
|
}
|
|
|
|
.gauge-fill.safe {
|
|
stroke: #27ae60;
|
|
}
|
|
|
|
.gauge-fill.warning {
|
|
stroke: #f39c12;
|
|
}
|
|
|
|
.gauge-fill.danger {
|
|
stroke: #e74c3c;
|
|
}
|
|
|
|
.gauge-text {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
}
|
|
|
|
.gauge-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
line-height: 1;
|
|
}
|
|
|
|
.gauge-label {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
color: #f39c12;
|
|
font-weight: 600;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.risk-legend {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 15px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.legend-dot {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.legend-dot.safe {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.legend-dot.warning {
|
|
background: #f39c12;
|
|
}
|
|
|
|
.legend-dot.danger {
|
|
background: #e74c3c;
|
|
}
|
|
|
|
/* ========== 가뭄 모니터링 대시보드 ========== */
|
|
.drought-monitor-dashboard {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: calc(100vh - 180px);
|
|
min-height: 600px;
|
|
}
|
|
|
|
.drought-monitor-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* 필터 바 */
|
|
/* 가뭄 탭 버튼 바 */
|
|
.drought-tab-bar {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding: 10px 15px;
|
|
background: #1a1a2e;
|
|
border-bottom: 1px solid #333;
|
|
}
|
|
|
|
.drought-tab-btn {
|
|
padding: 8px 24px;
|
|
border: 1px solid #444;
|
|
border-radius: 6px;
|
|
background: #2a2a3e;
|
|
color: #aaa;
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.drought-tab-btn:hover {
|
|
background: #3a3a5e;
|
|
color: #fff;
|
|
}
|
|
|
|
.drought-tab-btn.active {
|
|
background: #2c5282;
|
|
color: #fff;
|
|
border-color: #4a90d9;
|
|
}
|
|
|
|
.drought-filter-bar {
|
|
display: flex;
|
|
gap: 15px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
|
|
padding: 15px 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.drought-filter-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.drought-filter-group label {
|
|
display: block;
|
|
color: #fff;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.drought-filter-select {
|
|
width: 100%;
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.drought-filter-select:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.drought-grid-buttons {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.grid-btn {
|
|
padding: 8px 16px;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 6px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.grid-btn:hover {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.grid-btn.active {
|
|
background: #3388ff;
|
|
border-color: #3388ff;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* 히트맵 컨테이너 */
|
|
.drought-heatmap-container {
|
|
flex: 1;
|
|
position: relative;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
min-height: 300px;
|
|
}
|
|
|
|
.drought-heatmap {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.drought-heatmap-image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* 위험도 오버레이 */
|
|
.drought-risk-overlay {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 20px 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
z-index: 10;
|
|
}
|
|
|
|
.risk-info-box {
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.risk-info-label {
|
|
display: block;
|
|
color: #666;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.risk-info-value {
|
|
display: block;
|
|
font-size: 1.3rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.risk-info-value.danger {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.risk-info-value.warning {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.risk-info-value.safe {
|
|
color: #27ae60;
|
|
}
|
|
|
|
.risk-info-score {
|
|
display: block;
|
|
font-size: 2.5rem;
|
|
font-weight: bold;
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* 하단 차트 영역 */
|
|
.drought-charts-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.drought-chart-box {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 15px 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.drought-chart-box h4 {
|
|
color: #2c3e50;
|
|
font-size: 1rem;
|
|
margin-bottom: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.drought-chart-content {
|
|
height: 100px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.drought-chart-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.drought-chart-legend {
|
|
display: flex;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
margin-top: 10px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.legend-line {
|
|
color: #3498db;
|
|
}
|
|
|
|
.legend-line.secondary {
|
|
color: #e67e22;
|
|
}
|
|
|
|
/* 강우량 바 차트 */
|
|
.drought-rainfall-content {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.rainfall-bars {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rainfall-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.rainfall-label {
|
|
width: 70px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.rainfall-bar-container {
|
|
flex: 1;
|
|
height: 18px;
|
|
background: #f0f0f0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.rainfall-bar {
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.rainfall-bar.blue {
|
|
background: linear-gradient(90deg, #3498db, #2980b9);
|
|
}
|
|
|
|
.rainfall-bar.green {
|
|
background: linear-gradient(90deg, #27ae60, #2ecc71);
|
|
}
|
|
|
|
.rainfall-bar.orange {
|
|
background: linear-gradient(90deg, #e67e22, #d35400);
|
|
}
|
|
|
|
/* 위험도 범례 */
|
|
.drought-risk-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
margin-top: 15px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
.risk-legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.risk-legend-item .dot {
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.risk-legend-item .dot.green {
|
|
background: #27ae60;
|
|
}
|
|
|
|
.risk-legend-item .dot.yellow {
|
|
background: #f1c40f;
|
|
}
|
|
|
|
.risk-legend-item .dot.blue {
|
|
background: #3498db;
|
|
}
|
|
|
|
.risk-text {
|
|
font-weight: 600;
|
|
margin-left: 3px;
|
|
}
|
|
|
|
.risk-text.high {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.risk-text.moderate {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.risk-text.low {
|
|
color: #27ae60;
|
|
}
|
|
|
|
/* 사이드바 */
|
|
.drought-monitor-sidebar {
|
|
width: 300px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.drought-monitor-sidebar h3 {
|
|
color: #2c3e50;
|
|
font-size: 1.2rem;
|
|
margin: 0;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #e67e22;
|
|
}
|
|
|
|
/* 미니맵 */
|
|
.drought-summary-map {
|
|
position: relative;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.drought-mini-map {
|
|
width: 100%;
|
|
height: 120px;
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.drought-mini-heatmap {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 120px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.drought-mini-label {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
|
|
padding: 20px 15px 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.location-name {
|
|
color: #fff;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.drought-mini-label .risk-badge {
|
|
background: rgba(231, 76, 60, 0.9);
|
|
color: #fff;
|
|
padding: 4px 10px;
|
|
border-radius: 15px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.drought-mini-label .risk-badge.danger {
|
|
background: rgba(231, 76, 60, 0.9);
|
|
}
|
|
|
|
/* 위험 지표 */
|
|
.drought-indicators {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.drought-indicator-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #e67e22;
|
|
}
|
|
|
|
.indicator-name {
|
|
font-weight: 600;
|
|
color: #2c3e50;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.indicator-data {
|
|
text-align: right;
|
|
}
|
|
|
|
.drought-indicator-item .indicator-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
line-height: 1;
|
|
}
|
|
|
|
.indicator-risk {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.indicator-risk.high {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
.indicator-risk.moderate {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.indicator-risk.low {
|
|
color: #27ae60;
|
|
}
|
|
|
|
/* 버튼 */
|
|
.drought-summary-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.btn-detail {
|
|
flex: 1;
|
|
padding: 12px;
|
|
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-detail:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
|
|
}
|
|
|
|
.btn-report {
|
|
flex: 1;
|
|
padding: 12px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-report:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
|
|
}
|
|
|
|
/* ========== 침수 모니터링 대시보드 ========== */
|
|
.flood-monitor-dashboard {
|
|
display: flex;
|
|
gap: 20px;
|
|
height: calc(100vh - 180px);
|
|
min-height: 600px;
|
|
}
|
|
|
|
.flood-monitor-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
/* 필터 바 */
|
|
.flood-filter-bar {
|
|
display: flex;
|
|
gap: 15px;
|
|
background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
|
|
padding: 15px 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.flood-filter-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.flood-filter-group label {
|
|
display: block;
|
|
color: #fff;
|
|
font-size: 0.85rem;
|
|
margin-bottom: 8px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.flood-filter-select {
|
|
width: 100%;
|
|
padding: 10px 15px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: box-shadow 0.3s;
|
|
}
|
|
|
|
.flood-filter-select:focus {
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
/* 히트맵 컨테이너 */
|
|
.flood-heatmap-container {
|
|
flex: 1;
|
|
position: relative;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
min-height: 300px;
|
|
}
|
|
|
|
.flood-heatmap {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.flood-heatmap-image {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* 위험도 오버레이 */
|
|
.flood-risk-overlay {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(255, 255, 255, 0.95);
|
|
padding: 20px 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
|
|
text-align: center;
|
|
z-index: 10;
|
|
}
|
|
|
|
.risk-info-score.flood-score {
|
|
color: #3498db;
|
|
}
|
|
|
|
/* 하단 차트 영역 */
|
|
.flood-charts-row {
|
|
display: flex;
|
|
gap: 15px;
|
|
}
|
|
|
|
.flood-chart-box {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 15px 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.flood-chart-box h4 {
|
|
color: #2c3e50;
|
|
font-size: 1rem;
|
|
margin-bottom: 15px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.flood-chart-content {
|
|
height: 100px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flood-chart-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.flood-chart-legend {
|
|
display: flex;
|
|
gap: 20px;
|
|
justify-content: center;
|
|
margin-top: 10px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.legend-line.flood-line {
|
|
color: #3498db;
|
|
}
|
|
|
|
/* 수위 바 차트 */
|
|
.flood-waterlevel-content {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.waterlevel-bars {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.waterlevel-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.waterlevel-label {
|
|
width: 70px;
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
}
|
|
|
|
.waterlevel-bar-container {
|
|
flex: 1;
|
|
height: 18px;
|
|
background: #f0f0f0;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.waterlevel-bar {
|
|
height: 100%;
|
|
border-radius: 4px;
|
|
transition: width 0.5s ease;
|
|
}
|
|
|
|
.waterlevel-bar.blue {
|
|
background: linear-gradient(90deg, #3498db, #2980b9);
|
|
}
|
|
|
|
.waterlevel-bar.yellow {
|
|
background: linear-gradient(90deg, #f1c40f, #f39c12);
|
|
}
|
|
|
|
.waterlevel-bar.red {
|
|
background: linear-gradient(90deg, #e74c3c, #c0392b);
|
|
}
|
|
|
|
/* 위험도 범례 */
|
|
.flood-risk-legend {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
margin-top: 15px;
|
|
padding-top: 15px;
|
|
border-top: 1px solid #eee;
|
|
}
|
|
|
|
/* 사이드바 */
|
|
.flood-monitor-sidebar {
|
|
width: 300px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.flood-monitor-sidebar h3 {
|
|
color: #2c3e50;
|
|
font-size: 1.2rem;
|
|
margin: 0;
|
|
padding-bottom: 15px;
|
|
border-bottom: 2px solid #3498db;
|
|
}
|
|
|
|
/* 미니맵 */
|
|
.flood-summary-map {
|
|
position: relative;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.flood-mini-map {
|
|
width: 100%;
|
|
height: 120px;
|
|
background: #e8e8e8;
|
|
}
|
|
|
|
.flood-mini-heatmap {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 120px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.flood-mini-label {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
|
|
padding: 20px 15px 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.flood-mini-label .risk-badge.safe {
|
|
background: rgba(39, 174, 96, 0.9);
|
|
color: #fff;
|
|
padding: 4px 10px;
|
|
border-radius: 15px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* 위험 지표 */
|
|
.flood-indicators {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.flood-indicator-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px;
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
border-left: 4px solid #3498db;
|
|
}
|
|
|
|
.flood-indicator-item .indicator-value {
|
|
display: block;
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* 버튼 */
|
|
.flood-summary-buttons {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: auto;
|
|
}
|
|
|
|
/* ========== 수위 곡선 페이지 ========== */
|
|
.waterlevel-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
height: 100%;
|
|
}
|
|
|
|
.waterlevel-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
}
|
|
|
|
.waterlevel-header h2 {
|
|
margin: 0;
|
|
color: #2c3e50;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.waterlevel-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.waterlevel-controls .control-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.waterlevel-controls .control-item label {
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.waterlevel-select {
|
|
padding: 10px 15px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
min-width: 150px;
|
|
transition: border-color 0.3s, box-shadow 0.3s;
|
|
}
|
|
|
|
.waterlevel-select:focus {
|
|
outline: none;
|
|
border-color: #3498db;
|
|
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
|
|
}
|
|
|
|
.btn-graph-load {
|
|
padding: 10px 25px;
|
|
background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn-graph-load:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
|
|
}
|
|
|
|
.waterlevel-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.graph-container {
|
|
flex: 1;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
|
|
padding: 20px;
|
|
min-height: 400px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
}
|
|
|
|
.graph-loading {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(255, 255, 255, 0.9);
|
|
padding: 20px 40px;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
|
z-index: 10;
|
|
}
|
|
|
|
.graph-loading span {
|
|
color: #3498db;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.graph-image {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
display: none;
|
|
}
|
|
|
|
.graph-placeholder {
|
|
text-align: center;
|
|
color: #999;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.graph-placeholder span {
|
|
display: block;
|
|
padding: 40px;
|
|
background: #f8f9fa;
|
|
border-radius: 10px;
|
|
border: 2px dashed #ddd;
|
|
}
|
|
|
|
.graph-info {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.graph-info .info-card {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
background: #fff;
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
|
|
text-align: center;
|
|
}
|
|
|
|
.graph-info .info-label {
|
|
display: block;
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.graph-info .info-value {
|
|
display: block;
|
|
font-size: 1.8rem;
|
|
font-weight: bold;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
.graph-info .info-value.warning {
|
|
color: #f39c12;
|
|
}
|
|
|
|
.graph-info .info-value.danger {
|
|
color: #e74c3c;
|
|
}
|
|
|
|
/* 테스트용 화면 (기상청 강수량) */
|
|
.kma-result-area {
|
|
padding: 20px;
|
|
}
|
|
.kma-loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
padding: 40px;
|
|
color: #aaa;
|
|
}
|
|
.kma-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 13px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.kma-table th {
|
|
background: #1a1a2e;
|
|
color: #e0e0e0;
|
|
padding: 10px 8px;
|
|
text-align: left;
|
|
border-bottom: 2px solid #333;
|
|
white-space: nowrap;
|
|
}
|
|
.kma-table td {
|
|
padding: 8px;
|
|
border-bottom: 1px solid #eee;
|
|
color: #333;
|
|
max-width: 250px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.kma-table tr:hover td {
|
|
background: #f0f4ff;
|
|
}
|
|
.kma-raw {
|
|
margin-top: 16px;
|
|
}
|
|
.kma-raw h4 {
|
|
margin-bottom: 8px;
|
|
color: #555;
|
|
}
|
|
.kma-summary {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 16px;
|
|
}
|