/**
 * Chunked Streaming GIS Animated - 특화 스타일
 */

/* 기본 레이아웃 */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#mapContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1a1a1a;
}

/* 제어 패널 */
.control-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 380px;
    min-width: 350px;
}

/* 통계 패널 */
.stats-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 250px;
}

.stat-card {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 2px 0;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
}

/* 타임라인 패널 */
.timeline-panel {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 600px;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.timeline-slider {
    flex: 1;
    margin: 0 10px;
}

.time-display {
    font-family: monospace;
    font-size: 14px;
    min-width: 150px;
    text-align: center;
}

/* 애니메이션 제어 */
.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-speed {
    padding: 4px 8px;
    font-size: 12px;
}

/* 렌더링 옵션 */
.render-options {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

/* 로그 패널 */
.log-panel {
    position: absolute;
    bottom: 120px;
    left: 10px;
    width: calc(40% - 20px);
    max-width: 600px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.log-entry {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    padding: 2px 4px;
    margin: 1px 0;
}

/* 로그 타입별 색상 */
.log-info { 
    color: #004085; 
}

.log-success { 
    color: #155724; 
    background: #d4edda; 
}

.log-error { 
    color: #721c24; 
    background: #f8d7da; 
}

.log-chunk { 
    color: #856404; 
    background: #fff3cd; 
}

/* 범례 */
.legend {
    position: absolute;
    bottom: 120px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 6px 0;
}

.legend-color {
    width: 24px;
    height: 4px;
    margin-right: 8px;
    border-radius: 2px;
}

.vessel-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 툴팁 */
#vesselTooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* 폼 섹션 */
.form-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

/* 진행률 바 */
.progress {
    height: 25px;
    margin: 15px 0;
}

/* 반응형 조정 */
@media (max-width: 1200px) {
    .control-panel {
        max-width: 320px;
        min-width: 300px;
    }
    
    .stats-panel {
        min-width: 200px;
    }
    
    .timeline-panel {
        min-width: 500px;
        font-size: 14px;
    }
    
    .log-panel {
        width: calc(35% - 20px);
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .control-panel {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
        min-width: 0;
        width: calc(100% - 20px);
    }
    
    .stats-panel {
        position: fixed;
        top: auto;
        bottom: 200px;
        right: 10px;
        min-width: 150px;
    }
    
    .timeline-panel {
        position: fixed;
        bottom: 10px;
        left: 10px;
        right: 10px;
        min-width: 0;
        width: calc(100% - 20px);
        transform: none;
    }
    
    .log-panel {
        position: fixed;
        bottom: 120px;
        left: 10px;
        right: 200px;
        width: auto;
        max-width: none;
        max-height: 150px;
    }
    
    .legend {
        position: fixed;
        bottom: 200px;
        right: 10px;
    }
    
    .speed-control {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .btn-speed {
        font-size: 10px;
        padding: 3px 6px;
    }
}