/* Stili per il sistema di notifiche stack (NotificationService) */

.notification {
  position: fixed;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  transition: top 0.25s ease;
  animation: notification-slide-in 0.3s ease-out;
}

.notification--success {
  background-color: var(--color-success);
  color: #fff;
}

.notification--error {
  background-color: var(--color-error);
  color: #fff;
}

.notification--info {
  background-color: #4299e1;
  color: #fff;
}

.notification--warning {
  background-color: var(--color-accent-500);
  color: #fff;
}

.notification--removing {
  animation: notification-slide-out 0.3s ease-in forwards;
}

@keyframes notification-slide-in {
  from {
    transform: translateX(440px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes notification-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(440px);
    opacity: 0;
  }
}
