.notifications {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(28rem, calc(100vw - 2rem));
}

.notification {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #1f2937;
  border-left: 4px solid #6b7280;
  pointer-events: auto;
  animation: notification-in 200ms ease-out;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.notification--closing {
  opacity: 0;
  transform: translateX(120%);
}

.notification-message {
  flex: 1;
  word-break: break-word;
}

.notification-close {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
}

.notification-close:hover {
  opacity: 1;
}

.notification--success { border-left-color: #16a34a; }
.notification--notice  { border-left-color: #2563eb; }
.notification--info    { border-left-color: #2563eb; }
.notification--warning { border-left-color: #d97706; }
.notification--alert,
.notification--error   { border-left-color: #dc2626; }

@keyframes notification-in {
  from { opacity: 0; transform: translateX(120%); }
  to   { opacity: 1; transform: translateX(0); }
}
