* {
    box_sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f0f2f5;
}

.chat-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 1200px;
    /* Optional: limit content width for readability on very wide screens */
    width: 100%;
    margin: 0 auto;
    /* Center content */
}

.message {
    padding: 15px;
    border-radius: 12px;
    max-width: 80%;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-message {
    background-color: #007bff;
    color: white;
    align_self: flex-end;
    border-bottom-right-radius: 2px;
    margin-left: auto;
    /* Push to right */
}

.bot-message {
    background-color: white;
    color: #333;
    align_self: flex-start;
    border-bottom-left-radius: 2px;
    margin-right: auto;
    /* Push to left */
}

.input-area {
    padding: 20px;
    background-color: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

input {
    flex-grow: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: #007bff;
}

button {
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}