Please post your model and your calculations.
“Ideal components” does not mean lossless: An ideal resistor still produces losses and ideal capacitors and inductors store energy. Have you taken this into account? Otherwise, averaged input power has to match the averaged output power.
Kind regards,
Oliver Schwartz