const COLORS: Record<string, string> = {
  PAID: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  CONFIRMED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  DELIVERED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  COMPLETED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  APPROVED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  PUBLISHED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  ACTIVE: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  RESOLVED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  SHIPPED: 'bg-sky-500/15 text-sky-400 border-sky-500/30',
  PREPARING: 'bg-sky-500/15 text-sky-400 border-sky-500/30',
  REQUESTED: 'bg-sky-500/15 text-sky-400 border-sky-500/30',
  IN_PROGRESS: 'bg-sky-500/15 text-sky-400 border-sky-500/30',
  PENDING: 'bg-amber-500/15 text-amber-400 border-amber-500/30',
  PAUSED: 'bg-amber-500/15 text-amber-400 border-amber-500/30',
  OPEN: 'bg-amber-500/15 text-amber-400 border-amber-500/30',
  DRAFT: 'bg-slate-500/15 text-slate-400 border-slate-500/30',
  ENDED: 'bg-slate-600/20 text-slate-400 border-slate-600/30',
  CANCELLED: 'bg-slate-600/20 text-slate-400 border-slate-600/30',
  REJECTED: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  REFUNDED: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  FAILED: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  BASIC: 'bg-slate-500/15 text-slate-300 border-slate-500/30',
  SILVER: 'bg-slate-300/20 text-slate-200 border-slate-300/30',
  GOLD: 'bg-amber-400/15 text-amber-300 border-amber-400/30',
  VIP: 'bg-violet-500/15 text-violet-300 border-violet-500/30',
}
const LABELS: Record<string, string> = {
  PENDING: 'Pending', PAID: 'Paid', PREPARING: 'Preparing', SHIPPED: 'Out for Delivery', DELIVERED: 'Delivered',
  CONFIRMED: 'Confirmed', CANCELLED: 'Cancelled', REFUNDED: 'Refunded', ACTIVE: 'Active', PAUSED: 'Paused',
  REQUESTED: 'Requested', APPROVED: 'Approved', REJECTED: 'Rejected', COMPLETED: 'Completed',
  PUBLISHED: 'Published', DRAFT: 'Draft', ENDED: 'Ended', OPEN: 'Open', IN_PROGRESS: 'Processing', RESOLVED: 'Resolved',
}
export default function StatusBadge({ status }: { status?: string }) {
  if (!status) return null
  const cls = COLORS[status] || 'bg-slate-500/15 text-slate-400 border-slate-500/30'
  return <span className={`inline-block px-2 py-0.5 rounded text-xs font-medium border ${cls}`}>{LABELS[status] || status}</span>
}
