/**
 * Messaging Module - Read Status & Mentions
 * Enhanced messaging features for private messages and mentions
 */

/* ===== MESSAGE READ STATUS ===== */
.message_read_status {
    transition: all 0.3s ease;
    display: inline-block;
    margin-left: 4px;
}

/* Delivered status (single check) */
.message_read_status.fa-check {
    color: #9E9E9E;
    font-size: 12px;
}

/* Read status (double check) */
.message_read_status.fa-check-double {
    color: #4CAF50;
    font-size: 12px;
}

/* Animation for status change */
.message_read_status.status-changing {
    animation: statusChange 0.5s ease-in-out;
}

@keyframes statusChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Loading state */
.message_read_status.loading {
    opacity: 0.5;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Accessibility improvements */
.message_read_status:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* ===== TAG USER / MENTION STYLES ===== */
.mention_list {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mention_user_item {
    border-radius: 5px;
    margin: 2px 0;
    transition: all 0.2s ease;
}

.mention_user_item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mention_avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
}

.mention_name {
    font-size: 14px;
    font-weight: 500;
}

.mention_room_badge {
    display: inline-block;
    margin-left: 5px;
    color: #4CAF50;
    font-size: 8px;
    vertical-align: middle;
}

/* ===== THEME SUPPORT ===== */
/* Dark theme support */
.dark_theme .message_read_status.fa-check {
    color: #666666;
}

.dark_theme .message_read_status.fa-check-double {
    color: #66BB6A;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .message_read_status.fa-check {
        color: #000000;
    }
    
    .message_read_status.fa-check-double {
        color: #006600;
    }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .message_read_status {
        font-size: 10px;
        margin-left: 2px;
    }
}

