)">
        <label for="randomizeApod" class="toggle-label"></label>
    </div>
</div>

<script>
    function toggleDateField(toggle) {
        const $date = document.getElementById('customDate');
        $date.disabled = toggle.checked;
    }

    document.addEventListener('DOMContentLoaded', () => {
        const $toggle = document.getElementById('randomizeApod');
        const $date = document.getElementById('customDate');

        const today = new Date().toISOString().split('T')[0];

        if (loadPl