/* Global custom toast (replaces browser alert) */
.app-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: min(34rem, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 81, 38, 0.22);
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  opacity: 0;
  transform: translateX(-50%) translateY(-1rem);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.app-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.app-toast--hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(-0.75rem);
}

.app-toast--success {
  border-color: rgba(0, 81, 38, 0.28);
}

.app-toast--error {
  border-color: rgba(180, 35, 24, 0.3);
  box-shadow: 0 12px 32px rgba(180, 35, 24, 0.12);
}

.app-toast--warning {
  border-color: rgba(180, 120, 12, 0.35);
}

.app-toast--info {
  border-color: rgba(23, 92, 211, 0.28);
}

.app-toast__icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
  color: #005126;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.app-toast--error .app-toast__icon {
  color: #b42318;
}

.app-toast--warning .app-toast__icon {
  color: #b54708;
}

.app-toast--info .app-toast__icon {
  color: #175cd3;
}

.app-toast__message {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: #181c1c;
  white-space: pre-line;
}
