const MAP = {
  free:            { label: 'Ελεύθερο',         cls: 'bg-gray-100 text-gray-600' },
  open:            { label: 'Ανοιχτό',           cls: 'bg-green-100 text-green-700' },
  partially_paid:  { label: 'Μερική πληρωμή',    cls: 'bg-amber-100 text-amber-700' },
  paid:            { label: 'Πληρώθηκε',         cls: 'bg-blue-100 text-blue-700' },
  closed:          { label: 'Κλειστό',           cls: 'bg-gray-200 text-gray-500' },
  cancelled:       { label: 'Ακυρώθηκε',         cls: 'bg-red-100 text-red-600' },
  active:          { label: 'Ενεργό',            cls: 'bg-green-100 text-green-700' },
}

export default function StatusBadge({ status }) {
  const { label, cls } = MAP[status] ?? { label: status, cls: 'bg-gray-100 text-gray-600' }
  return (
    <span className={`inline-block text-xs font-semibold px-2 py-0.5 rounded-full ${cls}`}>
      {label}
    </span>
  )
}
