/* ── Toast Overlay ── */
.fr-toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  pointer-events: none;
}

/* ── Toast Base ── */
.fr-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: fr-toast-slide 0.3s ease-out;
  pointer-events: auto;
}

/* ── Type Variants ── */
.fr-toast.success { background: #16a34a; }
.fr-toast.error { background: #dc2626; }
.fr-toast.warning { background: #d97706; }
.fr-toast.info { background: #2563eb; }
.fr-toast.partial {
    background-color: #f59e0b;
    color: #fff;
}
/* ── Icon ── */
.fr-toast-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Animation ── */
@keyframes fr-toast-slide {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Toast Action Buttons ──
   Add this to your toast.css
   Supports confirmation actions (e.g. delete confirm)
   ─────────────────────────────────────────── */

.fr-toast {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fr-toast-message {
  flex: 1;
  min-width: 0;
}

.fr-toast-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.fr-toast-action-btn {
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.fr-toast-action-confirm {
  background: rgba(255, 255, 255, 0.95);
  color: #dc2626;
}

.fr-toast-action-confirm:active {
  transform: scale(0.95);
  background: #fff;
}

.fr-toast-action-cancel {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fr-toast-action-cancel:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.25);
}