/* Система уведомлений с прогресс-баром */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 100%;
    pointer-events: none;
}

.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
    min-height: 70px;
    display: flex;
    align-items: center;
}

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

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    align-items: center;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: #fff;
}

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

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

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

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    transition: width linear;
    border-radius: 0 0 8px 8px;
}

/* Типы уведомлений */
.notification.success {
    border-left: 4px solid #28a745;
}

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

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

.notification.error {
    border-left: 4px solid #dc3545;
}

.notification.error .notification-icon {
    background: #dc3545;
}

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

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

.notification.warning .notification-icon {
    background: #ffc107;
    color: #333;
}

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

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

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

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

/* Адаптивность */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
    }
    
    .notification-content {
        padding: 12px 15px;
    }
    
    .notification-message {
        font-size: 13px;
    }
}

/* Анимации */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.animate-in {
    animation: slideIn 0.3s ease forwards;
}

.notification.animate-out {
    animation: slideOut 0.3s ease forwards;
}