.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: white;
    border-left: 4px solid #007bff;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification.success {
    border-left-color: #28a745;
    background: #f8fff9;
}

.notification.error {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.notification.warning {
    border-left-color: #ffc107;
    background: #fffef0;
}

.notification.info {
    border-left-color: #17a2b8;
    background: #f0fdff;
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-in forwards;
}

.notification-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 5px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #495057;
}

.notification-message {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    color: #333;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    width: 100%;
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

.notification.success .notification-progress {
    background: #28a745;
}

.notification.error .notification-progress {
    background: #dc3545;
}

.notification.warning .notification-progress {
    background: #ffc107;
}

.notification.info .notification-progress {
    background: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes progressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 15px;
    }
}