/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #e5ddd5; /* WhatsApp-like background color */
}

.container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 600px;
    height: 90vh;
    background-color: #f0f0f0; /* WhatsApp-like chat background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background-color: #d32f2f; /* Dark red header */
    color: #fff;
    text-align: center;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 3vh;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: calc(100% - 25px); /* Adjust based on header height */
    /* margin-top: 64px; Adjust based on header height */
}

.chat-window {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background-color: #f2e6e6; /* Light red background */
    display: flex;
    flex-direction: column;
}

.chat-message {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 20px;
    max-width: 75%;
    font-size: 0.9em;
    line-height: 1.4em;
}

.user-message {
    align-self: flex-end;
    background-color: #dcf8c6; /* Light green */
}

.bot-message {
    align-self: flex-start;
    background-color: #fff;
    border: 1px solid #ddd;
}

.chat-input {
    /* margin-bottom: 15vh; Adjust based on input height */
    display: flex;
    padding: 8px;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

#user-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    height: 40px;
    font-size: 0.9em;
    outline: none;
}

#send-button {
    margin-left: 8px;
    padding: 0 16px;
    border: none;
    border-radius: 20px;
    background-color: #d32f2f; /* Dark red button */
    color: #fff;
    cursor: pointer;
    font-size: 0.9em;
}

#send-button:disabled {
    background-color: #888;
}

.loading-indicator {
    align-self: center;
    padding: 8px 12px;
    border-radius: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}
