/* Style untuk daftar pesan */
.messages-list {
    height: 70vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Style untuk pesan */
.message-item {
    margin-bottom: 10px;
    clear: both;
}

.message-item.sent {
    float: right;
    text-align: right;
}

.message-item.received {
    float: left;
    text-align: left;
}

.message-content {
    max-width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    display: inline-block;
    font-size: 0.9rem;
}

.message-item.sent .message-content {
    background-color: #E5FFCC;
    color: black;
}

.message-item.received .message-content {
    background-color: #f1f1f1;
    color: black;
}

/* Nama Pengirim */
.sender-name {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 0.8rem;
}

/* Tombol Aksi */
.message-actions {
    margin-top: 5px;
    text-align: right;
}

.btn-edit, .btn-delete {
    padding: 2px 5px;
    font-size: 0.75rem;
    margin-left: 5px;
}

.btn-edit {
    color: #007bff;
}

.btn-delete {
    color: #dc3545;
}
/* Typing indicator */
.typing-indicator {
    font-style: italic;
    color: #666;
}