
.container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Sidebar */
.sidebar {
    width: 30%;
    background-color: #ffffff;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 15px;
    background-color: #075e54;
    color: white;
    text-align: center;
    font-weight: bold;
}

.contact-list {
    flex-grow: 1;
    overflow-y: auto;
}

.contact {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.contact:hover {
    background-color: #f5f5f5;
}

.contact img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Chat Area */
.chat-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background-color: #075e54;
    color: white;
    text-align: left;
    font-weight: bold;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #e5ddd5;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    max-width: 70%;
    padding: 10px;
    border-radius: 10px;
    word-wrap: break-word;
}

.message.incoming {
    background-color: #ffffff;
    align-self: flex-start; /* Align to the left */
}

.message.outgoing {
    background-color: #dcf8c6;
    align-self: flex-end; /* Align to the right */
}

.chat-input {
    padding: 10px;
    display: flex;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
}

.chat-input textarea {
    flex-grow: 1;
    resize: none;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
    outline: none;
}

.chat-input button {
    margin-left: 10px;
    background-color: #075e54;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-input button:hover {
    background-color: #0b7a61;
}