body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.chat-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

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

.chat-history {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 15px;
    background-color: #e9e9e9;
}

.message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 80%;
}

.user-message {
    background-color: #dcf8c6;
    align-self: flex-end;
    margin-left: auto;
}

.bot-message {
    background-color: #f1f0f0;
    align-self: flex-start;
    margin-right: auto;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.chat-input-area input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.chat-input-area button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.chat-input-area button:hover {
    background-color: #0056b3;
}

.info-area {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

#context-info {
    margin-top: 15px;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 10px;
    border-radius: 5px;
}

#context-list {
    list-style: decimal;
    padding-left: 20px;
    margin-top: 10px;
}

#context-list li {
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #555;
}