Trustworthy Intrusion Detection: Confidence Estimation Using Latent Space