/* Контейнер для уведомлений */
.notifications-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

/* Уведомление */
.notification {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 4.7s;
    min-width: 300px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Типы уведомлений */
.notification.success {
    border-color: #00d4ff;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 255, 0.1));
}

.notification.error {
    border-color: #ff4444;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.1), rgba(255, 0, 0, 0.1));
}

.notification.warning {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
}

.notification.info {
    border-color: #00bfea;
    background: linear-gradient(135deg, rgba(0, 191, 234, 0.1), rgba(0, 153, 255, 0.1));
}

/* Иконка */
.notification-icon {
    font-size: 2rem;
    flex-shrink: 0;
    animation: iconPop 0.5s ease;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.notification.success .notification-icon {
    color: #00d4ff;
}

.notification.error .notification-icon {
    color: #ff4444;
}

.notification.warning .notification-icon {
    color: #ffd700;
}

.notification.info .notification-icon {
    color: #00bfea;
}

/* Контент */
.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Кнопка закрытия */
.notification-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

/* Прогресс-бар */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    border-radius: 0 0 15px 15px;
    animation: progress 5s linear;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification.success .notification-progress {
    color: #00d4ff;
}

.notification.error .notification-progress {
    color: #ff4444;
}

.notification.warning .notification-progress {
    color: #ffd700;
}

.notification.info .notification-progress {
    color: #00bfea;
}

/* Адаптив */
@media (max-width: 768px) {
    .notifications-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
    
    .notification {
        min-width: auto;
    }
}
