/* ============================================
   Всплывающие уведомления
   ============================================ */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    max-height: 100vh;
    overflow-y: auto;
    pointer-events: none;
}

#notification-container .notification {
    pointer-events: auto;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    margin-bottom: 10px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Типы уведомлений */
.notification-content {
    padding: 15px 40px 15px 20px;
    position: relative;
    min-height: 60px;
}

.notification-success .notification-content {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.notification-danger .notification-content {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.notification-warning .notification-content {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.notification-info .notification-content {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.notification-message {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Прогресс-бар */
.notification-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    animation: progress 10s linear forwards;
    transform-origin: left;
}

.notification-success .notification-progress {
    background: #28a745;
}

.notification-danger .notification-progress {
    background: #dc3545;
}

.notification-warning .notification-progress {
    background: #ffc107;
}

.notification-info .notification-progress {
    background: #17a2b8;
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Адаптивность */
@media (max-width: 576px) {
    #notification-container {
        width: calc(100% - 40px);
        right: 20px;
        top: 10px;
    }
}