      <div class="fixed right-0 top-1/2 -translate-y-1/2 z-50 group">
            <button @click="toggleTheme"
              class="
        flex items-center gap-3
        px-3 py-2
        rounded-l-xl
        bg-white dark:bg-zinc-900
        border border-r-0 border-gray-200 dark:border-zinc-700
        shadow-lg
        transform translate-x-20
        hover:translate-x-0
        transition-all duration-300 ease-out
        text-gray-700 dark:text-gray-200
        hover:bg-gray-100 dark:hover:bg-zinc-800
    "
                aria-label="Toggle theme">
                <!-- Icon -->
                <template x-if="!dark">
                    <flux:icon name="moon" class="h-5 w-5" />
                </template>

                <template x-if="dark">
                    <flux:icon name="sun" class="h-5 w-5" />
                </template>

                <!-- Text -->
                <span class="text-sm font-semibold whitespace-nowrap" x-text="dark ? 'Light mode' : 'Dark mode'"></span>
            </button>

            <!-- Hover handle (always visible) -->
            <div
                class="
            absolute right-0 top-1/2 -translate-y-1/2
            h-12 w-2
            bg-[#0E4D92]
            rounded-l-full
        ">
            </div>
        </div>