/* Стили для системы прочтения сообщений */

.read-status {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 12px;
}

.read-single {
    color: #999;
}

.read-double {
    color: #34b7f1;
}

.read-count {
    background: #34b7f1;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 8px;
    margin-left: 4px;
}

.message-bubble.read {
    opacity: 0.9;
}

.unread-badge {
    background: #ff3b30;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    display: none;
}

@keyframes highlightNew {
    0% { background-color: rgba(52, 183, 241, 0.1); }
    100% { background-color: transparent; }
}

.message-bubble.new-message {
    animation: highlightNew 2s ease-out;
}

.chat-unread-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0088cc;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4caf50;
    border: 2px solid var(--sidebar-bg);
}