                                    this.setAttribute('data-active', newState ? 'true' : 'false');
                                    
                                    // Update button text and icon
                                    if (newState) {
                                        this.innerHTML = '<i class="fas fa-pause"></i> Pause';
                                    } else {
                                        this.innerHTML = '<i class="fas fa-play"></i> Start';
                       