Because goodnight texts indicate that you're thinking about someone right before you go to bed, they may be construed as flirty.