.messages-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #1a202c;
    border-radius: 0.5rem;
    color: white;
    height: calc(100vh - 200px);
}

.conversations-list {
    width: 300px;
    padding: 1rem;
    border-right: 1px solid #4a5568;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.5rem;
}

.conversation-item:hover, .conversation-item.active {
    background-color: #2d3748;
}

.conversation-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.conversation-view {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#conversation-header {
    padding: 1rem;
    border-bottom: 1px solid #4a5568;
}

#conversation-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
}

.message {
    margin-bottom: 1rem;
}

.message.sent {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    max-width: 70%;
}

.message.sent .message-bubble {
    background-color: #4a5568;
}

.message.received .message-bubble {
    background-color: #2d3748;
}

.new-message-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #4a5568;
}

#message-input {
    flex-grow: 1;
    padding: 0.5rem;
    border: 1px solid #4a5568;
    background-color: #2d3748;
    color: white;
    border-radius: 0.5rem 0 0 0.5rem;
}

#send-button {
    padding: 0.5rem 1rem;
    border: 1px solid #4a5568;
    background-color: #4a5568;
    color: white;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
}
