/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

/* Body Styling */
body {
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Chat Container */
#chat-container {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header Section */
header {
    background: #2a3f5f;
    color: #ffffff;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-bottom: 3px solid #1e2e47;
}

/* Version Selector */
#version-container {
    background: #f9f9f9;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

#version-select {
    padding: 8px 15px;
    border-radius: 5px;
    border: 1px solid #d1d1d1;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}

#version-select:focus {
    border-color: #2a3f5f;
}

/* Chat Window */
#chat-window {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: #b3b3b3 #f9f9f9;
}

#chat-window::-webkit-scrollbar {
    width: 6px;
}

#chat-window::-webkit-scrollbar-thumb {
    background: #b3b3b3;
    border-radius: 3px;
}

/* Message Styling */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background: #2a3f5f;
    color: #ffffff;
}

.bot-message {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
}

.system-message {
    align-self: center;
    background: #e8e8e8;
    color: #666;
    font-style: italic;
    font-size: 12px;
}

/* Input Section */
#input-container {
    display: flex;
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
}

#user-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d1d1d1;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    background: #ffffff;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #2a3f5f;
}

#send-btn {
    background: #2a3f5f;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-btn:hover {
    background: #1e2e47;
}

/* Responsive Design */
@media (max-width: 600px) {
    #chat-container {
        max-width: 90%;
    }

    #send-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    #user-input {
        padding: 10px 12px;
    }

    #version-select {
        padding: 6px 10px;
        font-size: 13px;
    }
}
