#map, #map-container {
    height: 450px;
    width: 100%;
    border-radius: 0.5rem;
    z-index: 1;
}

body {
    background-color: #f8fafc;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.nav-link {
    transition: all 0.3s;
}

.nav-link.active {
    background-color: #1e40af;
}

.quiz-option {
    transition: all 0.2s;
}

.quiz-option:hover {
    transform: translateY(-2px);
}

.fade-in {
    animation: fadeIn 0.5s;
}

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

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 450px;
}

.map-error {
    padding: 20px;
    text-align: center;
    color: #dc2626;
}

/* --- Chatbot 懸浮樣式 --- */

/* 懸浮按鈕 */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#chatbot-toggle:hover {
    transform: scale(1.1);
}

/* 對話視窗容器 */
#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px; /* 寬度稍微縮小以適應懸浮窗 */
    max-width: 90vw;
    height: 600px;
    max-height: 70vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 隱藏狀態 */
.chatbot-hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

/* 切換按鈕圖示 */
#chatbot-toggle .close-icon { display: none; }
#chatbot-toggle.active .open-icon { display: none; }
#chatbot-toggle.active .close-icon { display: block; font-size: 20px; }

.chat-wrapper {
    max-width: 100% !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 15px !important;
}