<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>RKX</title>
    <link rel="stylesheet" href="output.css">
    <link rel="stylesheet" href="custom.css">
    <script type="module" src="Utils.js"></script>
    <script type="module" src="Entry.js" defer></script>
    <script type="module" src="RadarManager.js"></script>
    <script src="SettingsManager.js" defer></script>
</head>
<body class="min-h-screen w-screen bg-[#100c0c] overflow-x-hidden">

    <section id="loadingScreen" class="w-screen h-screen bg-[#100c0c] flex justify-center items-center flex-col gap-5 hidden z-[100]">
        <img id="reynaImage" src="https://pub-cb83956c11c341e88eed9d235cf5892b.r2.dev/img/radar/generic/reyna.png" class="w-80 h-80 animate-image" alt="Reyna Loading">
        <h2 id="connectingText" class="text-white font-semibold animate-text">Connecting to server...</h2>
    </section>

    <!-- Main Container -->
    <section id="menuContent" class="w-screen min-h-screen flex justify-center items-start p-10 hidden">
        <div class="w-full max-w-6xl text-white rounded-md p-10 bg-opacity-30 bg-[#1a1919]">
            <!-- Panel Select Buttons -->
            <div class="flex justify-start items-center gap-4 mb-8">
                <button class="panel-btn animate-item px-4 py-2 rounded-md bg-[#252525] hover:bg-[#383838] focus:bg-[#00CCFF] focus:text-black transition"
                        data-panel="aim">
                    AIM
                </button>
                <button class="panel-btn animate-item px-4 py-2 rounded-md bg-[#252525] hover:bg-[#383838] focus:bg-[#00CCFF] focus:text-black transition"
                        data-panel="esp">
                    VISUALS
                </button>
                <button class="panel-btn animate-item px-4 py-2 rounded-md bg-[#252525] hover:bg-[#383838] focus:bg-[#00CCFF] focus:text-black transition"
                        data-panel="radar">
                    RADAR
                </button>
                <button class="panel-btn animate-item px-4 py-2 rounded-md bg-[#252525] hover:bg-[#383838] focus:bg-[#00CCFF] focus:text-black transition"
                        data-panel="console">
                    CONSOLE
                </button>
                <!-- Save Button -->
                <button type="submit" class="animate-item px-4 py-2 rounded-md bg-[#252525] hover:bg-[#00CCFF] transition" id="saveSettings">
                    SAVE SETTINGS
                </button>
                <h3 id="saveConfirmation" class="text-green-400 hidden">SETTINGS SAVED</h3>
            </div>

            <!-- Panels Container -->
            <div class="panels min-h-[600px] overflow-y-auto">
                <!-- AIM Panel (Placeholder) -->
                <div id="panel-aim" class="panel-content hidden h-full">
                    <form class="flex gap-4 justify-start items-start flex-col">
                        <div class="flex justify-start items-start gap-20">
                            <div class="p-4 rounded-md bg-transparent bg-opacity-30">
                                <h2 class="font-bold text-3xl mb-4">AIM</h2>
                                <div class="flex flex-col gap-4">
                                    <!-- Smooth X -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_AimSmoothX" class="font-medium italic text-white pr-5">SMOOTH X</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_AimSmoothX" name="s_AimSmoothX" min="0.1" max="1.0" step="0.01"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_AimSmoothXValue" class="text-white min-w-8">0.225</span>
                                        </div>
                                    </div>
                                    <!-- Smooth Y -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_AimSmoothY" class="font-medium italic text-white pr-5">SMOOTH Y</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_AimSmoothY" name="s_AimSmoothY" min="0.1" max="1.0" step="0.01"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_AimSmoothYValue" class="text-white min-w-8">0.225</span>
                                        </div>
                                    </div>
                                    <!-- Aim FOV -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_AimFov" class="font-medium italic text-white pr-5">FOV</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_AimFov" name="s_AimFov" min="0" max="180" step="1"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_AimFovValue" class="text-white min-w-8">45</span>
                                        </div>
                                    </div>

                                    <h2 class="font-bold text-3xl mb-4 mt-4">MAGNET</h2>
                                    <!-- Magnet Smooth X -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_MagnetSmoothX" class="font-medium italic text-white pr-5">SMOOTH X</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_MagnetSmoothX" name="s_MagnetSmoothX" min="0.1" max="1.0" step="0.01"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_MagnetSmoothXValue" class="text-white min-w-8">0.325</span>
                                        </div>
                                    </div>
                                    <!-- Magnet Smooth Y -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_MagnetSmoothY" class="font-medium italic text-white pr-5">SMOOTH Y</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_MagnetSmoothY" name="s_MagnetSmoothY" min="0.1" max="1.0" step="0.01"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_MagnetSmoothYValue" class="text-white min-w-8">0.325</span>
                                        </div>
                                    </div>
                                    <!-- Magnet FOV -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_MagnetFov" class="font-medium italic text-white pr-5">FOV</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_MagnetFov" name="s_MagnetFov" min="0" max="180" step="1"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_MagnetFovValue" class="text-white min-w-8">50</span>
                                        </div>
                                    </div>
                                    <!-- Sensitivity -->
                                    <div class="flex justify-between items-center mt-10">
                                        <label for="s_Sensitivity" class="font-medium italic text-white pr-5">SENSITIVITY</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_Sensitivity" name="s_Sensitivity" min="0.1" max="1.0" step="0.01"
                                                   class="h-3 w-[150px] outline-none">
                                            <span id="s_SensitivityValue" class="text-white min-w-8">0.45</span>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="flex items-start flex-col gap-4 p-4 w-full">
                                <h2 class="font-bold text-3xl mb-4">FEATURES</h2>

                                <div class="flex items-center">
                                    <input type="checkbox" id="b_AimEnabled" name="b_AimEnabled" class="cbx hidden">
                                    <label for="b_AimEnabled" class="ml-2 text-white check">
                                        <svg width="18px" height="18px" viewBox="0 0 18 18">
                                            <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                            <polyline points="1 9 7 14 15 4"></polyline>
                                        </svg>
                                    </label>
                                    <label for="b_AimEnabled" class="ml-2 text-white">Enable Aim</label>
                                </div>
                                <div class="flex items-center">
                                    <input type="checkbox" id="b_MagnetEnabled" name="b_MagnetEnabled" class="cbx hidden">
                                    <label for="b_MagnetEnabled" class="ml-2 text-white check">
                                        <svg width="18px" height="18px" viewBox="0 0 18 18">
                                            <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                            <polyline points="1 9 7 14 15 4"></polyline>
                                        </svg>
                                    </label>
                                    <label for="b_AimEnabled" class="ml-2 text-white">Enabled Magnet</label>
                                </div>

                                <div class="flex justify-between items-center mt-10 w-full">
                                    <label for="s_AimKey" class="font-medium italic text-white pr-5">AIM KEY</label>
                                    <select id="s_AimKey" name="s_AimKey" class="bg-[#1a1919] bg-opacity-0 outline-none p-2 italic w-36 text-white border rounded border-white">
                                        <option value="1" style="color: black;">Mouse1 (VK_LBUTTON - 0x01)</option>
                                        <option value="2" style="color: black;">Mouse2 (VK_RBUTTON - 0x02)</option>
                                        <option value="4" style="color: black;">Mouse3 (VK_MBUTTON - 0x04)</option>
                                        <option value="5" style="color: black;">Mouse4 (VK_XBUTTON1 - 0x05)</option>
                                        <option value="6" style="color: black;">Mouse5 (VK_XBUTTON2 - 0x06)</option>
                                        <!-- Add more key options as needed -->
                                    </select>
                                </div>

                                <!-- Updated Aim Bone Selector -->
                                <div class="flex justify-between items-center w-full">
                                    <label for="s_AimBone" class="font-medium italic text-white pr-5">AIM BONE</label>
                                    <select id="s_AimBone" name="s_AimBone" class="bg-[#1a1919] bg-opacity-0 outline-none p-2 italic w-36 text-white border rounded border-white">
                                        <option value="0" style="color: black;">Head</option>
                                        <option value="1" style="color: black;">Neck</option>
                                        <option value="15" style="color: black;">Chest</option>
                                        <option value="2" style="color: black;">Pelvis</option>
                                        <option value="999" style="color: black;">Nearest</option>
                                    </select>
                                </div>

                                <div class="flex justify-between items-center w-full">
                                    <label for="s_MagnetKey" class="font-medium italic text-white pr-5">MAGNET KEY</label>
                                    <select id="s_MagnetKey" name="s_MagnetKey" class="bg-[#1a1919] bg-opacity-0 outline-none p-2 italic w-36 text-white border rounded border-white">
                                        <option value="1" style="color: black;">Mouse1 (VK_LBUTTON - 0x01)</option>
                                        <option value="2" style="color: black;">Mouse2 (VK_RBUTTON - 0x02)</option>
                                        <option value="4" style="color: black;">Mouse3 (VK_MBUTTON - 0x04)</option>
                                        <option value="5" style="color: black;">Mouse4 (VK_XBUTTON1 - 0x05)</option>
                                        <option value="6" style="color: black;">Mouse5 (VK_XBUTTON2 - 0x06)</option>
                                        <!-- Add more key options as needed -->
                                    </select>
                                </div>


                                <div class="flex justify-between items-center w-full">
                                    <label for="s_MagnetBone" class="font-medium italic text-white pr-5">MAGNET BONE</label>
                                    <select id="s_MagnetBone" name="s_MagnetBone" class="bg-[#1a1919] bg-opacity-0 outline-none p-2 italic w-36 text-white border rounded border-white">
                                        <option value="0" style="color: black;">Head</option>
                                        <option value="1" style="color: black;">Neck</option>
                                        <option value="15" style="color: black;">Chest</option>
                                        <option value="2" style="color: black;">Pelvis</option>
                                        <option value="999" style="color: black;">Nearest</option>
                                    </select>
                                </div>

                            </div>
                        </div>

                    </form>
                </div>

                <!-- ESP Panel (Original Content) -->
                <div id="panel-esp" class="panel-content hidden h-full">
                    <form class="flex gap-4 justify-start items-start flex-col">
                        <div class="flex justify-start items-start gap-20">
                            <!-- ESP Settings Section -->
                            <div class="p-4 rounded-md bg-transparent bg-opacity-30">
                                <h2 class="font-bold text-3xl mb-4">ESP</h2>
                                <div class="flex flex-col gap-4">
                                    <!-- Box Margin Slider -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_BoxMargin" class="font-medium italic text-white pr-5">Box Margin</label>
                                        <div class="flex justify-start items-center gap-2">
                                            <input type="range" id="s_BoxMargin" name="s_BoxMargin" min="6" max="16" step="0.1"
                                                   class="h-3 w-[150px] outline-none ">
                                            <span id="s_BoxMarginValue" class="text-white min-w-8">2.0</span>
                                        </div>
                                    </div>

                                    <!-- Skeleton Thickness Slider -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_SkeletonThickness" class="font-medium italic text-white pr-5">Skeleton Thickness</label>
                                        <div class="flex items-center gap-2">
                                            <input type="range" id="s_SkeletonThickness" name="s_SkeletonThickness" min="1" max="4" step="0.1"
                                                   class="h-3 w-[150px] outline-none ">
                                            <span id="s_SkeletonThicknessValue" class="text-white min-w-8">2.0</span>
                                        </div>
                                    </div>

                                    <!-- Box Color Selector -->
                                    <div class="flex justify-between items-center mt-10">
                                        <label for="s_BoxColor" class="font-medium italic text-white">Box Color</label>
                                        <input type="color" id="s_BoxColor" name="s_BoxColor" value="#00CCFF" class="w-10 h-10 cursor-pointer">
                                    </div>

                                    <div class="flex justify-between items-center">
                                        <label for="s_SnapLineColor" class="font-medium italic text-white">Snap Line Color</label>
                                        <input type="color" id="s_SnapLineColor" name="s_SnapLineColor" value="#00CCFF" class="w-10 h-10 cursor-pointer mt-1">
                                    </div>
                                    <div class="flex justify-between items-center">
                                        <label for="s_SkeletonColor" class="font-medium italic text-white">Visible Color</label>
                                        <input type="color" id="s_SkeletonColor" name="s_SkeletonColor" value="#00FF00" class="w-10 h-10 cursor-pointer mt-1">
                                    </div>
                                    <div class="flex justify-between items-center">
                                        <label for="s_SkeletonColor2" class="font-medium italic text-white">Invisible Color</label>
                                        <input type="color" id="s_SkeletonColor2" name="s_SkeletonColor2" value="#FF0000" class="w-10 h-10 cursor-pointer mt-1">
                                    </div>

                                    <!-- Box Type Dropdown (Newly Added) -->
                                    <div class="flex justify-between items-center mt-10">
                                        <label for="s_BoxType" class="font-medium italic text-white pr-5">Box Type</label>
                                        <div class="flex items-center gap-2">
                                            <select id="s_BoxType" name="s_BoxType" class="bg-[#1a1919] bg-opacity-0 outline-none p-2 italic w-36 text-white border rounded border-white">
                                                <option value="0" style="color: black;">2D Box</option>
                                                <option value="1" style="color: black;">Corner Box</option>
                                                <option value="2" style="color: black;">2.5D Box</option>
                                                <option value="3" style="color: black;">3D Box</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <!-- Screen Settings Section -->
                            <div class="p-4 rounded-md bg-transparent bg-opacity-30">
                                <h2 class="font-bold text-3xl mb-4">SCREEN</h2>
                                <div class="flex flex-col gap-4">
                                    <!-- Screen Width -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_ScreenWidth" class="font-medium italic text-white">Screen Width</label>
                                        <input type="number" id="s_ScreenWidth" name="s_ScreenWidth" placeholder="Enter width"
                                               class="border-b ml-5 bg-[#1a1919] bg-opacity-0 outline-none px-2 py-1 italic  w-56">
                                    </div>

                                    <!-- Screen Height -->
                                    <div class="flex justify-between items-center">
                                        <label for="s_ScreenHeight" class="font-medium italic text-white">Screen Height</label>
                                        <input type="number" id="s_ScreenHeight" name="s_ScreenHeight" placeholder="Enter height"
                                               class="border-b ml-5 bg-[#1a1919] bg-opacity-0 outline-none px-2 py-1 italic  w-56">
                                    </div>
                                </div>

                                <div class="flex items-start flex-col gap-4 mt-16">
                                    <h2 class="font-bold text-3xl mb-4">FEATURES</h2>

                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_ShowBox" name="b_ShowBox" class="cbx hidden">
                                        <label for="b_ShowBox" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_ShowBox" class="ml-2 text-white">Show Box</label>
                                    </div>

                                    <!-- SNAP LINES Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_SnapLines" name="b_SnapLines" class="cbx hidden">
                                        <label for="b_SnapLines" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_SnapLines" class="ml-2 text-white">SNAP LINES</label>
                                    </div>

                                    <!-- SKELETON Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_Skeleton" name="b_Skeleton" class="cbx hidden">
                                        <label for="b_Skeleton" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_Skeleton" class="ml-2 text-white">SKELETON</label>
                                    </div>

                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_Hitbox" name="b_Hitbox" class="cbx hidden">
                                        <label for="b_Hitbox" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_Hitbox" class="ml-2 text-white">3D Hitbox</label>
                                    </div>

                                    <!-- HEALTH BAR Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_HealthBar" name="b_HealthBar" class="cbx hidden">
                                        <label for="b_HealthBar" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_HealthBar" class="ml-2 text-white">HEALTH BAR</label>
                                    </div>

                                    <!-- SHOW NON-NETWORKED PLAYERS Checkbox -->
                                    <!--<div class="flex items-center">
                                        <input type="checkbox" id="b_ShowNonNetworkedPlayers" name="b_ShowNonNetworkedPlayers" class="cbx hidden">
                                        <label for="b_ShowNonNetworkedPlayers" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_ShowNonNetworkedPlayers" class="ml-2 text-white">SHOW NON-NETWORKED PLAYERS</label>
                                    </div>
                                    -->

                                    <!-- SHOW WEAPON Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_ShowWeapon" name="b_ShowWeapon" class="cbx hidden">
                                        <label for="b_ShowWeapon" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_ShowWeapon" class="ml-2 text-white">SHOW WEAPON</label>
                                    </div>

                                    <!-- AGENT NAME Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_AgentName" name="b_AgentName" class="cbx hidden">
                                        <label for="b_AgentName" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_AgentName" class="ml-2 text-white">AGENT NAME</label>
                                    </div>

                                    <!-- PLAYER NAME Checkbox -->
                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_PlayerName" name="b_PlayerName" class="cbx hidden">
                                        <label for="b_PlayerName" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_PlayerName" class="ml-2 text-white">PLAYER NAME</label>
                                    </div>

                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_RenderDebugBones" name="b_RenderDebugBones" class="cbx hidden">
                                        <label for="b_RenderDebugBones" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_RenderDebugBones" class="ml-2 text-white">DEBUG BONES</label>
                                    </div>

                                    <div class="flex items-center">
                                        <input type="checkbox" id="b_RenderDebugColliders" name="b_RenderDebugColliders" class="cbx hidden">
                                        <label for="b_RenderDebugColliders" class="ml-2 text-white check">
                                            <svg width="18px" height="18px" viewBox="0 0 18 18">
                                                <path d="M1,9 L1,3.5 C1,2 2,1 3.5,1 L14.5,1 C16,1 17,2 17,3.5 L17,14.5 C17,16 16,17 14.5,17 L3.5,17 C2,17 1,16 1,14.5 L1,9 Z"></path>
                                                <polyline points="1 9 7 14 15 4"></polyline>
                                            </svg>
                                        </label>
                                        <label for="b_RenderDebugColliders" class="ml-2 text-white">RENDER COLLIDERS</label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>

                <!-- RADAR Panel (Placeholder) -->
                <div id="panel-radar" class="panel-content hidden h-full relative">
                    <h2 class="font-bold text-3xl mb-4">RADAR Settings</h2>
                    <p class="italic">Placeholder content for RADAR settings.</p>
                    <!-- Players will be drawn on the rmap -->
                    <canvas id="rmap" class="w-full h-full min-h-[750px]"></canvas>
                    <!-- <img src="https://pub-cb83956c11c341e88eed9d235cf5892b.r2.dev/img/radar/Valorant/Maps/RangeV2.png" class="w-auto h-full object-contain rotate-90" alt="Radar Range"> -->
                </div>

                <!-- CONSOLE Panel (Placeholder) -->
                <div id="panel-console" class="panel-content hidden h-full">
                    <h2 class="font-bold text-3xl mb-4">CONSOLE Settings</h2>
                    <p class="italic">Placeholder content for CONSOLE settings.</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Panel Switching Script -->
    <script>
        document.addEventListener('DOMContentLoaded', () => {
            const buttons = document.querySelectorAll('.panel-btn');
            const panels = document.querySelectorAll('.panel-content');
            const menuContent = document.getElementById('menuContent');

            const showMenu = () => {
                menuContent.classList.remove('hidden');
                menuContent.classList.add('animate-slide-in');

                const panelButtons = document.querySelectorAll('.panel-btn');
                panelButtons.forEach(button => {
                    button.classList.add('animate-item');
                });

                menuContent.addEventListener('animationend', () => {
                    menuContent.classList.remove('animate-slide-in');
                    panelButtons.forEach(button => {
                        button.classList.remove('animate-item');
                    });
                }, { once: true });
            };

            const showPanel = (panelId) => {
                panels.forEach(panel => {
                    panel.classList.add('hidden');
                    panel.classList.remove('animate-panel');
                });

                const selectedPanel = document.getElementById(panelId);
                selectedPanel.classList.remove('hidden');
                selectedPanel.classList.add('animate-panel');

                selectedPanel.addEventListener('animationend', () => {
                    selectedPanel.classList.remove('animate-panel');
                }, { once: true });
            };

            buttons.forEach(button => {
                button.addEventListener('click', () => {
                    buttons.forEach(btn => {
                        btn.classList.remove('bg-[#00CCFF]', 'text-black');
                        btn.classList.add('bg-[#252525]', 'text-white');
                    });

                    button.classList.add('bg-[#00CCFF]', 'text-black');
                    button.classList.remove('bg-[#252525]', 'text-white');

                    const panelId = `panel-${button.getAttribute('data-panel')}`;
                    showPanel(panelId);
                });
            });

            //showMenu();
            const initialButton = document.querySelector('.panel-btn[data-panel="esp"]');
            if (initialButton) {
                initialButton.click();
            }
        });
    </script>

</body>
</html>
