/* Контейнер для уведомлений */
#chat-notification-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    pointer-events: none;
}

/* Отдельное уведомление */
.chat-notification {
    background: white;
    border-left: 4px solid #0084ff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    cursor: pointer;
    animation: slideIn 0.3s ease-out;
    transition: transform 0.2s, opacity 0.3s;
    pointer-events: auto;
}

.chat-notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.chat-notification.fade-out {
    opacity: 0;
    transform: translateX(400px);
}

.chat-notification.escalation {
    border-left-color: #ff4444;
}

/* Заголовок уведомления */
.chat-notification-header {
    background: #f5f5f5;
    padding: 10px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-notification-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.chat-notification-title.escalation {
    color: #ff4444;
}

.chat-notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    line-height: 1;
}

.chat-notification-close:hover {
    color: #333;
}

/* Тело уведомления */
.chat-notification-body {
    padding: 15px;
}

.chat-notification-body strong {
    display: block;
    color: #0084ff;
    margin-bottom: 5px;
    font-size: 14px;
}

.chat-notification-body .escalation strong {
    color: #ff4444;
}

.chat-notification-body p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

.chat-notification-body .chat-notification-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Badge счетчик в меню */
#chat-notification-badge {
    display: none;
    background: #ff4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 5px;
    min-width: 18px;
    text-align: center;
    position: relative;
    top: -2px;
}
