:root {
    /* Light Mode Palette (Default) */
    --chat-bg: #ffffff;
    --chat-text: #333331;
    --chat-border: #dddddd;
    --msg-bot-bg: #f1f1f1;
    --msg-bot-text: #333333;
    --chat-input-border: #dddddd;
    --chat-accent: #007bff; /* The blue color */
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode Palette */
        --chat-bg: #1e1e1e;
        --chat-text: #f5f5f5;
        --chat-border: #444444;
        --msg-bot-bg: #333333;
        --msg-bot-text: #e0e0e0;
        --chat-input-border: #555555;
    }
}

#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: sans-serif;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--chat-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.chat-expanded {
    width: 350px;
    height: 450px;
    background: var(--chat-bg);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid var(--chat-border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.zero-height-div {
    display: none;
    overflow: hidden;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 14px;
}

.message { 
    margin: 5px 0; 
    padding: 8px 12px; 
    border-radius: 15px; 
    max-width: 80%; 
}

.user-msg { 
    background: var(--chat-accent); 
    color: white; 
    align-self: flex-end; 
    margin-left: auto; 
}

.bot-msg { 
    background: var(--msg-bot-bg); 
    color: var(--msg-bot-text); 
    align-self: flex-start; 
}

#chat-input-area { 
    display: none; 
    border-top: 1px solid var(--chat-border); 
    padding-top: 10px; 
}

.chat-expanded #chat-input-area { 
    display: flex; 
}

.chat-expanded #chat-bubble-icon { 
    display: none; 
}

#user-input { 
    width: 80%; 
    border: 1px solid var(--chat-input-border); 
    background: var(--chat-bg);
    color: var(--chat-text);
    border-radius: 5	px; 
    padding: 5px; 
}
