body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.chat-container {
    width: 100%;
    max-width: 400px;
    height: 90vh;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: #274857; /* WhatsApp header color */
    color: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.chat-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.chat-header .header-info h3 {
    margin: 0;
    font-size: 1.1em;
}

.chat-header .header-info p {
    margin: 0;
    font-size: 0.8em;
    opacity: 0.8;
}

.chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #e5ddd5; /* WhatsApp chat background */
}

.message {
    max-width: 70%;
    padding: 8px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    position: relative;
    font-size: 0.9em;
}

.message p {
    margin: 0;
}

.message .timestamp {
    font-size: 0.7em;
    color: #888;
    position: absolute;
    bottom: 5px;
    right: 10px;
}

.sent {
    background-color: #dcf8c6; /* WhatsApp sent message color */
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.received {
    background-color: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f0f2f5;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
    font-size: 1em;
}

.chat-input button {
    background-color: #075e54;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: #054a40;
}