Show a Loading Overlay During Next.js Page Transitions

Use router events to display a full-page loading overlay while Next.js navigates between routes, without layout flicker.