export default function ConfirmModal({ title, message, confirmLabel = 'Επιβεβαίωση', confirmClass = 'btn-danger', onConfirm, onCancel }) {
  return (
    <div className="fixed inset-0 bg-black/40 flex items-center justify-center z-50 p-4">
      <div className="bg-white rounded-2xl shadow-xl w-full max-w-sm p-6 space-y-4">
        <h2 className="text-lg font-bold text-gray-800">{title}</h2>
        {message && <p className="text-gray-600 text-sm">{message}</p>}
        <div className="flex gap-3 pt-2">
          <button onClick={onCancel} className="flex-1 btn btn-secondary">Ακύρωση</button>
          <button onClick={onConfirm} className={`flex-1 btn ${confirmClass}`}>{confirmLabel}</button>
        </div>
      </div>
    </div>
  )
}
