body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #dbdbdb;
    text-align: center;
}

.chat-header h1 {
    margin: 0;
    font-size: 1.25rem;
}

.chat-messages {
    padding: 16px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse; /* To show latest messages at the bottom */
}

.message {
    display: flex;
    margin-bottom: 12px;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
}

.message.sent .message-bubble {
    background-color: #3897f0;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message.received .message-bubble {
    background-color: #efefef;
    color: #000000;
    border-bottom-left-radius: 4px;
}

.message-content {
    margin: 0;
}

.timestamp {
    font-size: 0.75rem;
    color: #c5c5c5;
    margin-top: 4px;
}