ay = 'none';
                this.innerHTML = '<i class="fa-solid fa-plus"></i> Add Expense';
            }
        });

        document.getElementById('expenseForm').addEventListener('submit', async (e) => {
            e.preventDefault();
            const isGain = document.getElementById('reportGain').checked;
            let amount = parseFloat(document.getElementById('amount').value);
            if (!isGain) {
                amount *= -1;
            }
            const formData = {
                