/* Контейнер для уведомлений */
.notifications-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* Уведомление */
.notification {
    position: relative;
    min-width: 320px;
    max-width: 400px;
    padding: 18px 24px;
    border-radius: 20px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    animation: slideIn 0.4s cubic-bezier(0.45, 1.45, 0.49, 1.15);
    overflow: hidden;
}

.notification::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(149deg, #fff -10%, #fff -60%, rgba(255, 255, 255, 0.06) 20%, rgba(255, 255, 255, 0.06) 80%, #fff 130%, #fff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.notification.closing {
    animation: slideOut 0.3s cubic-bezier(0.45, 1.45, 0.49, 1.15) forwards;
}

/* Типы уведомлений */
.notification.success {
    border-color: rgba(74, 222, 128, 0.3);
}

.notification.error {
    border-color: rgba(248, 113, 113, 0.3);
}

.notification.info {
    border-color: rgba(151, 71, 255, 0.3);
}

.notification.warning {
    border-color: rgba(251, 191, 36, 0.3);
}

/* Содержимое */
.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.notification.success .notification-icon {
    color: #4ade80;
}

.notification.error .notification-icon {
    color: #f87171;
}

.notification.info .notification-icon {
    color: #9747FF;
}

.notification.warning .notification-icon {
    color: #fbbf24;
}

.notification-message {
    flex: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.4;
    font-weight: 500;
}

.notification-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.notification-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* Прогресс-бар */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 20px 20px;
    animation: progress 3s linear forwards;
}

.notification.success .notification-progress {
    background: #4ade80;
}

.notification.error .notification-progress {
    background: #f87171;
}

.notification.info .notification-progress {
    background: #9747FF;
}

.notification.warning .notification-progress {
    background: #fbbf24;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(100px) scale(0.95);
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .notifications-container {
        top: 80px;
        right: 12px;
        left: 12px;
    }

    .notification {
        min-width: auto;
        max-width: none;
    }
}
