Balancing turn based combat

The problem here is that you've turned the game into nothing more than a feedback loop.
The player is seeking a means to overcome a problem. Once done, they move on to the next problem. This is inherently the addiction of games, as they're one of the few things in modern society that provide near-instant feedback.
This, however, removes any depth or value from a game.

While it's important to have a good feedback loop, you shouldn't stop there. Meaningful battles should have context outside the gameplay loop.

Allowing a player to find an optimal strategy can be fun and exciting, and there can be meaning behind that.

If you're looking to make a battle challenging, then knowing how to introduce challenge is key.
First, the player should be told the challenge. A goal should be set, and the player should know what that goal is.
The means to achieve that goal should be provided by the game itself. Preferably within the level.
The player should also have ample time beforehand to test and experiment to find the optimal strategy for victory. After that, the battle should provide a test of the player's new knowledge or ability.
It's best if multiple options are available to the player to overcome the challenge.

Want the player to understand elemental relationships? Provide a level with elemental enemies, and a boss that challenges the player's new understanding. Provide the means to defeat these elements either from the game's mechanics, or from something within the game's level.

This is the core of good game design. You can find this in a number of well thought-out games. However, while it's pertinent you understand this concept and why it's in place, you should also be searching for minor deviations you can take to make sure your game is unique.

Original thread: https://forums.rpgmakerweb.com/threads/balancing-turn-based-combat.89049/