#notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.notification-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #fff;
  min-width: 320px;
  max-width: min(420px, calc(100vw - 24px));
  opacity: 0;
  border-radius: 8px;
  transform: translateX(120%);
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
  pointer-events: auto;
}

.notification-message.show {
  opacity: 1;
  transform: translateX(0);
}

.notification-message .notification-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
}

.notification-message .notification-texto {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 1.35;
}

.notification-message .notification-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: opacity 0.2s;
}

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

.notification-message.success {
  background-color: #28a745;
}

.notification-message.warning {
  background-color: #ffc107;
  color: #212529;
}

.notification-message.warning .notification-icon {
  background: rgba(33, 37, 41, 0.15);
}

.notification-message.error {
  background-color: #c82333;
}

.notification-icon.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  background: transparent;
  animation: popup-spin 0.8s linear infinite;
}

@keyframes popup-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  #notification-container {
    left: 12px;
    right: 12px;
    top: 12px;
    align-items: stretch;
  }

  .notification-message {
    min-width: 0;
    max-width: 100%;
  }
}
