/* General body styling */
body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f3f7ed;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1 {
    text-align: center;
    color: #4b8a3e;
    margin-bottom: 20px;
}

/* Chat mode container styling */
.chat-mode-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.chat-mode-container label {
    font-weight: bold;
    color: #4b8a3e;
    margin-right: 10px;
    font-size: 16px;
}

#chat-mode {
    padding: 8px 12px;
    font-size: 16px;
    font-family: inherit;
    color: #4b8a3e;
    background-color: #ffffff;
    border: 2px solid #4b8a3e;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#chat-mode:hover, #chat-mode:focus {
    background-color: #e6f3e6;
    border-color: #3b6f2c;
}

/* Chat container styling */
#chat-container {
    font-size: 18px;
    border: 1px solid #cdd1b6;
    border-radius: 8px;
    padding: 15px;
    height: calc(100vh - 240px);
    overflow-y: auto;
    margin-bottom: 15px;
    background-color: #ffffff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 70%;
    display: inline-block;
    word-wrap: break-word;
}

.message.user {
    text-align: right;
    background-color: #d2e8cf;
    color: #1e441e;
}

.message.assistant {
    text-align: left;
    background-color: #f1f1f1;
    color: #333;
}

.input-container {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #cdd1b6;
}

#user-input {
    flex: 1;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #cdd1b6;
    border-radius: 6px;
    margin-right: 5px;
    width: 80%;
}

#send-button {
    padding: 12px 18px;
    font-size: 16px;
    background-color: #4b8a3e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-button:hover {
    background-color: #3b6f2c;
}
