:root {
    --primary: #3498db;
    --dark: #2c3e50;
    --light: #ecf0f1;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard', sans-serif; }

body { background: #f0f2f5; height: 100vh; overflow: hidden; }

.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    padding: 15px;
    gap: 15px;
}

.sidebar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.left-sidebar { width: 350px; }

h3 { font-size: 16px; margin-bottom: 10px; color: var(--dark); border-bottom: 2px solid #eee; padding-bottom: 5px; }

.weather-selector, .theme-selector, .day-tabs { display: flex; gap: 8px; margin-bottom: 15px; }

.weather-btn, .theme-btn, .day-tab {
    flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 10px;
    background: white; cursor: pointer; font-size: 12px; font-weight: 600;
}

.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }

.time-slot { margin-bottom: 10px; }
.time-slot label { font-size: 11px; font-weight: 800; color: #888; margin-bottom: 3px; display: block; }
.time-slot select { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #eee; font-size: 13px; }

.summary-card { margin-top: auto; background: #f8f9fa; padding: 12px; border-radius: 12px; border: 1px dashed #ccc; overflow-y: auto; max-height: 200px; }
.summary-card h4 { font-size: 13px; margin-bottom: 5px; }
#route-summary-list div { font-size: 12px; margin-bottom: 3px; }

/* Map Area */
.main-content { flex-grow: 1; border-radius: 25px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
#map { width: 100%; height: 100%; }

.map-controls {
    position: absolute; bottom: 20px; left: 20px; z-index: 1000;
}
#focus-path {
    background: white; border: none; padding: 10px 20px; border-radius: 30px;
    font-weight: 800; box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer;
}

/* Modal */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white; margin: 5% auto; padding: 20px;
    width: 80%; max-width: 600px; border-radius: 20px; position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.close-modal {
    position: absolute; right: 20px; top: 15px; color: #aaa;
    font-size: 28px; font-weight: bold; cursor: pointer;
}

#modal-img { width: 100%; border-radius: 15px; margin-bottom: 15px; object-fit: cover; max-height: 400px; }
.modal-info h2 { font-size: 20px; margin-bottom: 10px; }
.modal-info p { color: #666; line-height: 1.6; }

/* Chat UI */
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.message { padding: 8px 12px; border-radius: 15px; font-size: 13px; max-width: 85%; }
.message.bot { background: #f1f3f5; align-self: flex-start; }
.message.user { background: var(--primary); color: white; align-self: flex-end; }
.chat-input-area { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid #eee; }
#chat-input { flex: 1; padding: 10px; border: 1px solid #eee; border-radius: 10px; font-size: 12px; }
#chat-send { background: var(--primary); color: white; border: none; padding: 0 15px; border-radius: 10px; cursor: pointer; }
