/* Conversation live updates */

.conv-new {
    animation: convHighlight 2.5s ease;
}

@keyframes convHighlight {
    0%   { background-color: #d1ecf1; }
    50%  { background-color: #f0f9fb; }
    100% { background-color: transparent; }
}

.msg-fade-in {
    animation: msgFadeIn 0.6s ease;
}

@keyframes msgFadeIn {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.new-messages-banner {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    padding: 6px 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.new-messages-banner a {
    color: #0062cc;
    font-weight: 600;
    text-decoration: none;
}

#chat-messages {
    scroll-behavior: smooth;
}

#conversations-list .conv-item.active {
    background-color: #4e73df !important;
    color: white;
}

#conversations-list .conv-item.active strong,
#conversations-list .conv-item.active small {
    color: white !important;
}
