/* Message editing styles */
.edit-mode .message-hover-icons-left,
.edit-mode .message-hover-icons-right {
    display: none !important;
}

.edit-input {
    font-family: inherit;
    line-height: 1.4;
}

/* Deleted message styles */
.message-deleted .message-hover-icons-left,
.message-deleted .message-hover-icons-right {
    display: none !important;
}

.message-deleted .message-content {
    font-style: italic !important;
    color: #6b7280 !important;
}

.dark .message-deleted .message-content {
    color: #9ca3af !important;
}

.message-deleted.justify-end .message-content {
    color: #e5e7eb !important;
    opacity: 0.8;
}

.dark .message-deleted.justify-end .message-content {
    color: #d1d5db !important;
    opacity: 0.7;
}

/* Show hover icons only on hover or focus */
.message-hover-icons-left,
.message-hover-icons-right {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.message-item:hover .message-hover-icons-left,
.message-item:hover .message-hover-icons-right,
.message-hover-icons-left:focus-within,
.message-hover-icons-right:focus-within {
    opacity: 1;
    pointer-events: auto;
}

/* Hide inappropriate hover icons based on message alignment */
/* For own messages (right-aligned), hide right icons */
.justify-end .message-hover-icons-right {
    display: none !important;
}

/* For other messages (left-aligned), hide left icons */
.justify-start .message-hover-icons-left {
    display: none !important;
}

