<?php include("includes/header.php"); ?>
<?php include("includes/full-popup-header.php"); ?>
    <div class="w-100 modal-name code-section shadow p-2 m-0 vh-100 bg-white mb-2" id="canvas-action-btn-div">
        <div class="d-flex justify-content-between align-items-start bg-white mb-2">
            <div class="d-flex align-items-center gap-2">
                <a href="preview.php">
                    <button type="button"
                            class="button btn-outline-first color-first bg-transparent d-flex align-items-center gap-1">
                        <svg width="15" height="15" version="1.1" xmlns="http://www.w3.org/2000/svg"
                             xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512"
                             style="enable-background:new 0 0 512 512;" xml:space="preserve"><g>
                                <g>
                                    <path d="M437.02,74.98C388.668,26.629,324.38,0,256.001,0S123.333,26.629,74.982,74.98S0,187.62,0,256.001 S26.63,388.668,74.981,437.02C123.332,485.371,187.621,512,256,512s132.667-26.629,181.019-74.98
                  C485.372,388.668,512,324.381,512,256S485.372,123.333,437.02,74.98z M415.843,96.159c13.67,13.669,25.362,28.787,34.957,44.999
                  h-99.512c-4.388-22.123-10.069-42.641-16.95-60.876c-6.404-16.969-13.704-31.421-21.707-43.207
                  C351.341,47.017,386.841,67.156,415.843,96.159z M331.998,256c0,29.053-1.967,57.247-5.725,83.511H185.729
                  c-3.759-26.265-5.724-54.459-5.724-83.511c0-29.562,2.035-58.238,5.924-84.894h140.145
                  C329.962,197.763,331.998,226.438,331.998,256z M256.001,29.949c17.111,0,35.921,22.77,50.316,60.908
                  c5.719,15.152,10.549,32.069,14.425,50.3H191.259c3.875-18.231,8.705-35.148,14.425-50.3
                  C220.079,52.719,238.889,29.949,256.001,29.949z M96.159,96.158c29.002-29.003,64.502-49.142,103.213-59.084
                  c-8.003,11.786-15.303,26.239-21.707,43.207c-6.882,18.235-12.564,38.753-16.951,60.876H61.201
                  C70.797,124.946,82.489,109.827,96.159,96.158z M29.95,256.001c0-29.576,5.655-58.281,16.43-84.894h109.321
                  c-3.709,26.892-5.647,55.521-5.647,84.894c0,28.868,1.869,57.023,5.454,83.511H45.827C35.414,313.288,29.95,285.065,29.95,256.001
                  z M96.159,415.841c-14.057-14.056-26.02-29.646-35.764-46.381h100.046c4.424,22.651,10.198,43.644,17.223,62.258
                  c6.405,16.969,13.704,31.421,21.707,43.207C160.661,464.983,125.161,444.844,96.159,415.841z M256.001,482.051
                  c-17.112,0-35.921-22.77-50.316-60.908c-5.863-15.533-10.788-32.925-14.711-51.683h130.054
                  c-3.923,18.757-8.848,36.149-14.711,51.683C291.922,459.282,273.112,482.051,256.001,482.051z M415.843,415.842
                  c-29.003,29.003-64.502,49.142-103.213,59.084c8.003-11.786,15.303-26.239,21.707-43.207
                  c7.025-18.615,12.799-39.607,17.223-62.258h100.047C441.862,386.196,429.899,401.785,415.843,415.842z M356.492,339.511
                  c3.586-26.488,5.455-54.644,5.455-83.511c-0.001-29.372-1.939-58.003-5.647-84.894h109.322
                  c10.775,26.613,16.43,55.318,16.43,84.894c0,29.066-5.464,57.287-15.877,83.511H356.492z"></path>
                                </g>
                            </g></svg>
                    </button>
                </a>
                <a href="code.php">
                    <button type="button"
                            class="button btn-outline-first color-first bg-transparent d-flex align-items-center gap-1">
                        <svg width="15" height="15" version="1.1" xmlns="http://www.w3.org/2000/svg"
                             xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 511.997 511.997"
                             style="enable-background:new 0 0 511.997 511.997;" xml:space="preserve"><g>
                                <g>
                                    <path d="M506.76,242.828l-118.4-125.44c-7.277-7.718-19.424-8.07-27.142-0.787c-7.706,7.277-8.064,19.43-0.781,27.142 l105.965,112.256L360.437,368.268c-7.283,7.712-6.925,19.859,0.781,27.142c3.712,3.501,8.454,5.235,13.178,5.235 c5.101,0,10.195-2.022,13.965-6.01l118.4-125.446C513.742,261.785,513.742,250.226,506.76,242.828z"></path>
                                </g>
                            </g>
                            <g>
                                <g>
                                    <path d="M151.566,368.262L45.608,255.999l105.958-112.262c7.277-7.712,6.925-19.866-0.787-27.142 c-7.706-7.277-19.866-6.925-27.142,0.787l-118.4,125.44c-6.982,7.398-6.982,18.963,0,26.362L123.643,394.63 c3.776,4,8.864,6.016,13.965,6.016c4.723,0,9.466-1.741,13.171-5.242C158.498,388.127,158.843,375.974,151.566,368.262z"></path>
                                </g>
                            </g>
                            <g>
                                <g>
                                    <path d="M287.061,52.697c-10.477-1.587-20.282,5.606-21.882,16.083l-56.32,368.64c-1.6,10.483,5.6,20.282,16.083,21.882  c0.986,0.147,1.958,0.218,2.925,0.218c9.325,0,17.504-6.803,18.957-16.301l56.32-368.64 C304.744,64.095,297.544,54.297,287.061,52.697z"></path>
                                </g>
                            </g></svg>
                        <span class="color-first text-13">Code</span>
                    </button>
                </a>
            </div>
            <div class="d-flex align-items-center gap-1">
                <button type="button" id="openCodesModal" class="btn-close p-0 edit-popup-icon"></button>
            </div>
        </div>
        <div class="editor-codes-area pb-2">
            <div class="border border-1 rounded-2 code-details-section h-100 p-0 m-0">
                <div class="row g-0 h-100" id="codes-row">
                    <div class="col-12 col-md-3 col-lg-4 col-xl-3 h-100 phone-h-auto p-2">
                        <ul class="nav nav-pills justify-content-center bg-color-fourth gap-0 rounded-2 p-1 mb-1" id="code-pills-tab" role="tablist">
                            <li class="nav-item codes-tabs-width" role="presentation">
                                <button class="nav-link active text-12 p-1 w-100 fw-semibold d-flex justify-content-center align-items-center gap-1" id="code-pills-files-tab" data-bs-toggle="pill" data-bs-target="#code-pills-files" type="button" role="tab"><svg class="icon-md"
                                         width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4.99998 1.66669C4.55795 1.66669 4.13403 1.84228 3.82147 2.15484C3.50891 2.4674 3.33331 2.89133 3.33331 3.33335V16.6667C3.33331 17.1087 3.50891 17.5326 3.82147 17.8452C4.13403 18.1578 4.55795 18.3334 4.99998 18.3334H15C15.442 18.3334 15.8659 18.1578 16.1785 17.8452C16.4911 17.5326 16.6666 17.1087 16.6666 16.6667V6.66669L11.6666 1.66669H4.99998ZM4.99998 3.33335H10.8333V7.50002H15V16.6667H4.99998V3.33335ZM6.66665 10V11.6667H13.3333V10H6.66665ZM6.66665 13.3334V15H10.8333V13.3334H6.66665Z"/></svg>Files</button>
                            </li>
                            <li class="nav-item codes-tabs-width" role="presentation">
                                <button class="nav-link text-12 p-1 w-100 fw-semibold d-flex justify-content-center align-items-center gap-1" id="code-pills-search-tab" data-bs-toggle="pill" data-bs-target="#code-pills-search" type="button" role="tab"><svg class="icon-md"
                                         width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.91667 2.5C9.35326 2.5 10.731 3.07068 11.7468 4.0865C12.7627 5.10233 13.3333 6.48008 13.3333 7.91667C13.3333 9.25833 12.8417 10.4917 12.0333 11.4417L12.2583 11.6667H12.9167L17.0833 15.8333L15.8333 17.0833L11.6667 12.9167V12.2583L11.4417 12.0333C10.4917 12.8417 9.25833 13.3333 7.91667 13.3333C6.48008 13.3333 5.10233 12.7627 4.0865 11.7468C3.07068 10.731 2.5 9.35326 2.5 7.91667C2.5 6.48008 3.07068 5.10233 4.0865 4.0865C5.10233 3.07068 6.48008 2.5 7.91667 2.5ZM7.91667 4.16667C5.83333 4.16667 4.16667 5.83333 4.16667 7.91667C4.16667 10 5.83333 11.6667 7.91667 11.6667C10 11.6667 11.6667 10 11.6667 7.91667C11.6667 5.83333 10 4.16667 7.91667 4.16667Z"/></svg>Search</button>
                            </li>
                            <li class="d-md-none nav-item codes-tabs-width">
                                <button class="nav-link text-12 p-1 w-100 fw-semibold d-flex justify-content-center align-items-center gap-1" id="codes-section-show" data-bs-toggle="pill" type="button" role="tab"><svg class="icon-md"
                                         width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.66667 14.1666C6.90278 14.1666 7.1007 14.0868 7.26042 13.9271C7.42014 13.7673 7.5 13.5694 7.5 13.3333C7.5 13.0972 7.42014 12.8993 7.26042 12.7396C7.1007 12.5798 6.90278 12.5 6.66667 12.5C6.43056 12.5 6.23264 12.5798 6.07292 12.7396C5.91319 12.8993 5.83333 13.0972 5.83333 13.3333C5.83333 13.5694 5.91319 13.7673 6.07292 13.9271C6.23264 14.0868 6.43056 14.1666 6.66667 14.1666ZM6.66667 10.8333C6.90278 10.8333 7.1007 10.7535 7.26042 10.5937C7.42014 10.434 7.5 10.2361 7.5 9.99998C7.5 9.76387 7.42014 9.56595 7.26042 9.40623C7.1007 9.24651 6.90278 9.16665 6.66667 9.16665C6.43056 9.16665 6.23264 9.24651 6.07292 9.40623C5.91319 9.56595 5.83333 9.76387 5.83333 9.99998C5.83333 10.2361 5.91319 10.434 6.07292 10.5937C6.23264 10.7535 6.43056 10.8333 6.66667 10.8333ZM6.66667 7.49998C6.90278 7.49998 7.1007 7.42012 7.26042 7.2604C7.42014 7.10067 7.5 6.90276 7.5 6.66665C7.5 6.43054 7.42014 6.23262 7.26042 6.0729C7.1007 5.91317 6.90278 5.83331 6.66667 5.83331C6.43056 5.83331 6.23264 5.91317 6.07292 6.0729C5.91319 6.23262 5.83333 6.43054 5.83333 6.66665C5.83333 6.90276 5.91319 7.10067 6.07292 7.2604C6.23264 7.42012 6.43056 7.49998 6.66667 7.49998ZM9.16667 14.1666H14.1667V12.5H9.16667V14.1666ZM9.16667 10.8333H12.5V9.16665H9.16667V10.8333ZM4.16667 17.5C3.70833 17.5 3.31597 17.3368 2.98958 17.0104C2.66319 16.684 2.5 16.2916 2.5 15.8333V4.16665C2.5 3.70831 2.66319 3.31595 2.98958 2.98956C3.31597 2.66317 3.70833 2.49998 4.16667 2.49998H10.8333C10.8333 2.74998 10.8333 3.01387 10.8333 3.29165C10.8333 3.56942 10.8333 3.86109 10.8333 4.16665H4.16667V15.8333H15.8333V9.16665C16.1389 9.16665 16.4306 9.16665 16.7083 9.16665C16.9861 9.16665 17.25 9.16665 17.5 9.16665V15.8333C17.5 16.2916 17.3368 16.684 17.0104 17.0104C16.684 17.3368 16.2917 17.5 15.8333 17.5H4.16667ZM14.5833 9.99998C14.5833 8.7222 14.1389 7.63887 13.25 6.74998C12.3611 5.86109 11.2778 5.41665 10 5.41665C11.2778 5.41665 12.3611 4.9722 13.25 4.08331C14.1389 3.19442 14.5833 2.11109 14.5833 0.833313C14.5833 2.11109 15.0278 3.19442 15.9167 4.08331C16.8056 4.9722 17.8889 5.41665 19.1667 5.41665C17.8889 5.41665 16.8056 5.86109 15.9167 6.74998C15.0278 7.63887 14.5833 8.7222 14.5833 9.99998Z"/></svg>Code</button>
                            </li>
                        </ul>
                        <div class="tab-content editor-codes-area scroll-area phone-h-auto" id="code-pills-tabContent">
                            <div class="tab-pane fade show active" id="code-pills-files" role="tabpanel"
                                 aria-labelledby="code-pills-files-tab" tabindex="0">
                                <input type="text"
                                       class="form-control border border-1 rounded-2 bg-transparent px-2 py-1"
                                       placeholder="Search in Files">
                                <div class="file-tree w-100 mt-2">
                                    <ul class="ps-0">
                                        <li class="folder">
                                            <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                            class="angle-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>public</div>
                                            <ul class="nested ps-1">
                                                <li class="file text-limit-1"><svg
                                                            xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                         viewBox="0 0 24 24" width="14" height="14"
                                                         class="shrink-0 h-4 w-4">
                                                        <path fill="currentColor"
                                                              d="M19.25 7A2.25 2.25 0 0 0 17 4.75H7A2.25 2.25 0 0 0 4.75 7v8.19l1.599-1.6a3.75 3.75 0 0 1 5.302 0l5.638 5.639A2.25 2.25 0 0 0 19.25 17zm-8.66 7.651a2.25 2.25 0 0 0-3.18 0L4.77 17.29A2.25 2.25 0 0 0 7 19.25h8.19zM16.25 9a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m1.5 0a2.75 2.75 0 1 1-5.5 0 2.75 2.75 0 0 1 5.5 0m3 8A3.75 3.75 0 0 1 17 20.75H7A3.75 3.75 0 0 1 3.25 17V7A3.75 3.75 0 0 1 7 3.25h10A3.75 3.75 0 0 1 20.75 7z"></path>
                                                    </svg>favicon.ico</li>
                                                <li class="file text-limit-1"><svg
                                                            xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                         viewBox="0 0 24 24" width="14" height="14"
                                                         class="shrink-0 h-4 w-4">
                                                        <path fill="currentColor"
                                                              d="M19.25 7A2.25 2.25 0 0 0 17 4.75H7A2.25 2.25 0 0 0 4.75 7v8.19l1.599-1.6a3.75 3.75 0 0 1 5.302 0l5.638 5.639A2.25 2.25 0 0 0 19.25 17zm-8.66 7.651a2.25 2.25 0 0 0-3.18 0L4.77 17.29A2.25 2.25 0 0 0 7 19.25h8.19zM16.25 9a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m1.5 0a2.75 2.75 0 1 1-5.5 0 2.75 2.75 0 0 1 5.5 0m3 8A3.75 3.75 0 0 1 17 20.75H7A3.75 3.75 0 0 1 3.25 17V7A3.75 3.75 0 0 1 7 3.25h10A3.75 3.75 0 0 1 20.75 7z"></path>
                                                    </svg>placeholder.svg</li>
                                                <li class="file text-limit-1"><svg
                                                            xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                         viewBox="0 0 24 24" width="14" height="14"
                                                         class="shrink-0 h-4 w-4">
                                                        <path fill="currentColor"
                                                              d="M15 16.25a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm-3-4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zM19.75 18A3.75 3.75 0 0 1 16 21.75H8A3.75 3.75 0 0 1 4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53zm-14 0A2.25 2.25 0 0 0 8 20.25h8A2.25 2.25 0 0 0 18.25 18V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6zm8-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                    </svg>robots.txt</li>
                                            </ul>
                                        </li>
                                        <li class="folder">
                                            <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                            class="angle-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>src</div>
                                            <ul class="nested ps-1">
                                                <li class="folder">
                                                    <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                                    class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>assets</div>
                                                    <ul class="nested ps-1">
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Header.jsx</li>
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Footer.jsx</li>
                                                    </ul>
                                                </li>
                                                <li class="folder">
                                                    <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                                    class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span>components</div>
                                                    <ul class="nested ps-1">
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Header.jsx</li>
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Footer.jsx</li>
                                                    </ul>
                                                </li>
                                                <li class="folder">
                                                    <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                                    class="angle-nested-arrow"
                                                                                 viewBox="0 0 24 24" width="14"
                                                                                 height="14"><path d="M9 6l6 6-6 6"
                                                                                                   fill="none"
                                                                                                   stroke="currentColor"
                                                                                                   stroke-width="2"/></svg></span>hooks</div>
                                                    <ul class="nested ps-1">
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Header.jsx</li>
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Footer.jsx</li>
                                                    </ul>
                                                </li>
                                                <li class="folder">
                                                    <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                                    class="angle-nested-arrow"
                                                                                 viewBox="0 0 24 24" width="14"
                                                                                 height="14"><path d="M9 6l6 6-6 6"
                                                                                                   fill="none"
                                                                                                   stroke="currentColor"
                                                                                                   stroke-width="2"/></svg></span>lib</div>
                                                    <ul class="nested ps-1">
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Header.jsx</li>
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Footer.jsx</li>
                                                    </ul>
                                                </li>
                                                <li class="folder">
                                                    <div class="folder-title text-limit-1"><span class="arrow"><svg
                                                                    class="angle-nested-arrow"
                                                                                 viewBox="0 0 24 24" width="14"
                                                                                 height="14"><path d="M9 6l6 6-6 6"
                                                                                                   fill="none"
                                                                                                   stroke="currentColor"
                                                                                                   stroke-width="2"/></svg></span>pages</div>
                                                    <ul class="nested ps-1">
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Header.jsx</li>
                                                        <li class="file text-limit-1"><svg
                                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                                 viewBox="0 0 24 24" width="14" height="14"
                                                                 class="shrink-0 h-4 w-4">
                                                                <path fill="currentColor"
                                                                      d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path>
                                                            </svg>Footer.jsx</li>
                                                    </ul>
                                                </li>
                                            </ul>
                                        </li>
                                        <li class="file text-limit-1"><svg
                                                    xmlns="http://www.w3.org/2000/svg" fill="currentColor"
                                                 viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4">
                                                <path fill="currentColor"
                                                      d="M7.25 12c0-.773.043-1.526.122-2.25H4.063a8.25 8.25 0 0 0 0 4.5h3.31A21 21 0 0 1 7.25 12m1.879 3.75c.186.87.434 1.65.727 2.31.337.757.719 1.322 1.104 1.689.381.363.732.501 1.04.501s.659-.138 1.04-.501c.385-.367.767-.932 1.104-1.69.293-.66.54-1.44.727-2.309zm-4.477 0a8.27 8.27 0 0 0 4.371 3.943 9 9 0 0 1-.537-1.024c-.375-.845-.676-1.833-.887-2.919zm11.75 0c-.212 1.086-.513 2.074-.888 2.919a9 9 0 0 1-.538 1.024 8.27 8.27 0 0 0 4.372-3.943zM14.975 4.306q.293.476.538 1.025c.375.845.676 1.833.887 2.919h2.947a8.28 8.28 0 0 0-4.372-3.944M12 3.75c-.308 0-.659.138-1.04.501-.385.367-.767.933-1.104 1.69-.293.66-.54 1.44-.727 2.309h5.742a12 12 0 0 0-.727-2.31c-.337-.756-.719-1.322-1.104-1.689-.381-.363-.732-.501-1.04-.501m-2.977.556a8.28 8.28 0 0 0-4.37 3.944h2.946c.21-1.086.512-2.074.887-2.919q.245-.55.537-1.025M8.75 12c0 .782.047 1.536.132 2.25h6.236c.085-.714.132-1.468.132-2.25s-.047-1.536-.132-2.25H8.882A19 19 0 0 0 8.75 12m8 0c0 .773-.043 1.526-.122 2.25h3.308a8.25 8.25 0 0 0 0-4.5h-3.308c.08.724.122 1.477.122 2.25m5 0c0 5.385-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12 6.615 2.25 12 2.25s9.75 4.365 9.75 9.75"></path>
                                            </svg>App.css</li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="code-pills-search" role="tabpanel" aria-labelledby="code-pills-search-tab" tabindex="0">
                                <input type="text"
                                       class="form-control border border-1 rounded-2 bg-transparent px-2 py-1"
                                       placeholder="Search in Files">
                                <!--- show below design after searching the file name -->
                                <!-- <small class="my-2 d-block text-13 text-muted">506 results in 32 files</small>
                                <div class="file-tree w-100 mt-2">
                                  <ul class="ps-0">
                                    <li class="folder">
                                      <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                        <span class="folder-title-name"><span class="arrow"><svg class="angle-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> Public</span> <small>12</small>
                                      </div>
                                      <ul class="nested ps-1">
                                        <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M19.25 7A2.25 2.25 0 0 0 17 4.75H7A2.25 2.25 0 0 0 4.75 7v8.19l1.599-1.6a3.75 3.75 0 0 1 5.302 0l5.638 5.639A2.25 2.25 0 0 0 19.25 17zm-8.66 7.651a2.25 2.25 0 0 0-3.18 0L4.77 17.29A2.25 2.25 0 0 0 7 19.25h8.19zM16.25 9a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m1.5 0a2.75 2.75 0 1 1-5.5 0 2.75 2.75 0 0 1 5.5 0m3 8A3.75 3.75 0 0 1 17 20.75H7A3.75 3.75 0 0 1 3.25 17V7A3.75 3.75 0 0 1 7 3.25h10A3.75 3.75 0 0 1 20.75 7z"></path></svg> favicon.ico</li>
                                        <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M19.25 7A2.25 2.25 0 0 0 17 4.75H7A2.25 2.25 0 0 0 4.75 7v8.19l1.599-1.6a3.75 3.75 0 0 1 5.302 0l5.638 5.639A2.25 2.25 0 0 0 19.25 17zm-8.66 7.651a2.25 2.25 0 0 0-3.18 0L4.77 17.29A2.25 2.25 0 0 0 7 19.25h8.19zM16.25 9a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0m1.5 0a2.75 2.75 0 1 1-5.5 0 2.75 2.75 0 0 1 5.5 0m3 8A3.75 3.75 0 0 1 17 20.75H7A3.75 3.75 0 0 1 3.25 17V7A3.75 3.75 0 0 1 7 3.25h10A3.75 3.75 0 0 1 20.75 7z"></path></svg> placeholder.svg</li>
                                        <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15 16.25a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm-3-4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zM19.75 18A3.75 3.75 0 0 1 16 21.75H8A3.75 3.75 0 0 1 4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53zm-14 0A2.25 2.25 0 0 0 8 20.25h8A2.25 2.25 0 0 0 18.25 18V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6zm8-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> robots.txt</li>
                                      </ul>
                                    </li>
                                    <li class="folder">
                                      <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                        <span class="folder-title-name"><span class="arrow"><svg class="angle-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> Src</span> <small>12</small>
                                      </div>
                                      <ul class="nested ps-1">
                                        <li class="folder">
                                          <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                            <span class="folder-title-name"><span class="arrow"><svg class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> assets</span> <small>12</small>
                                          </div>
                                          <ul class="nested ps-1">
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> dependencies": {</li>
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> "@radix-ui/react-sli</li>
                                          </ul>
                                        </li>
                                        <li class="folder">
                                          <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                            <span class="folder-title-name"><span class="arrow"><svg class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> components</span> <small>12</small>
                                          </div>
                                          <ul class="nested ps-1">
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Header.jsx</li>
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Footer.jsx</li>
                                          </ul>
                                        </li>
                                        <li class="folder">
                                          <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                            <span class="folder-title-name"><span class="arrow"><svg class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> hooks</span> <small>12</small>
                                          </div>
                                          <ul class="nested ps-1">
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Header.jsx</li>
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Footer.jsx</li>
                                          </ul>
                                        </li>
                                        <li class="folder">
                                          <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                            <span class="folder-title-name"><span class="arrow"><svg class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> lib</span> <small>12</small>
                                          </div>
                                          <ul class="nested ps-1">
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Header.jsx</li>
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Footer.jsx</li>
                                          </ul>
                                        </li>
                                        <li class="folder">
                                          <div class="folder-title d-flex justify-content-between align-items-center text-limit-1">
                                            <span class="folder-title-name"><span class="arrow"><svg class="angle-nested-arrow" viewBox="0 0 24 24" width="14" height="14"><path d="M9 6l6 6-6 6" fill="none" stroke="currentColor" stroke-width="2"/></svg></span> Pages</span> <small>12</small>
                                          </div>
                                          <ul class="nested ps-1">
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Header.jsx</li>
                                            <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M15.47 15.47a.75.75 0 1 1 1.06 1.06L14.06 19l2.47 2.47a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06zm3 0a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L20.94 19l-2.47-2.47a.75.75 0 0 1 0-1.06M4.25 18V6A3.75 3.75 0 0 1 8 2.25h5c.199 0 .39.08.53.22l6 6c.14.14.22.331.22.53v3a.75.75 0 0 1-1.5 0V9.75H16A3.75 3.75 0 0 1 12.25 6V3.75H8A2.25 2.25 0 0 0 5.75 6v12A2.25 2.25 0 0 0 8 20.25h1a.75.75 0 0 1 0 1.5H8A3.75 3.75 0 0 1 4.25 18m9.5-12A2.25 2.25 0 0 0 16 8.25h1.19l-3.44-3.44z"></path></svg> Footer.jsx</li>
                                          </ul>
                                        </li>
                                      </ul>
                                    </li>
                                    <li class="file text-limit-1"><svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" width="14" height="14" class="shrink-0 h-4 w-4"><path fill="currentColor" d="M7.25 12c0-.773.043-1.526.122-2.25H4.063a8.25 8.25 0 0 0 0 4.5h3.31A21 21 0 0 1 7.25 12m1.879 3.75c.186.87.434 1.65.727 2.31.337.757.719 1.322 1.104 1.689.381.363.732.501 1.04.501s.659-.138 1.04-.501c.385-.367.767-.932 1.104-1.69.293-.66.54-1.44.727-2.309zm-4.477 0a8.27 8.27 0 0 0 4.371 3.943 9 9 0 0 1-.537-1.024c-.375-.845-.676-1.833-.887-2.919zm11.75 0c-.212 1.086-.513 2.074-.888 2.919a9 9 0 0 1-.538 1.024 8.27 8.27 0 0 0 4.372-3.943zM14.975 4.306q.293.476.538 1.025c.375.845.676 1.833.887 2.919h2.947a8.28 8.28 0 0 0-4.372-3.944M12 3.75c-.308 0-.659.138-1.04.501-.385.367-.767.933-1.104 1.69-.293.66-.54 1.44-.727 2.309h5.742a12 12 0 0 0-.727-2.31c-.337-.756-.719-1.322-1.104-1.689-.381-.363-.732-.501-1.04-.501m-2.977.556a8.28 8.28 0 0 0-4.37 3.944h2.946c.21-1.086.512-2.074.887-2.919q.245-.55.537-1.025M8.75 12c0 .782.047 1.536.132 2.25h6.236c.085-.714.132-1.468.132-2.25s-.047-1.536-.132-2.25H8.882A19 19 0 0 0 8.75 12m8 0c0 .773-.043 1.526-.122 2.25h3.308a8.25 8.25 0 0 0 0-4.5h-3.308c.08.724.122 1.477.122 2.25m5 0c0 5.385-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12 6.615 2.25 12 2.25s9.75 4.365 9.75 9.75"></path></svg> App.css</li>
                                  </ul>
                                </div> -->
                            </div>
                        </div>
                    </div>
                    <div class="code-section-area-col col-12 col-md-9 col-lg-8 col-xl-9 h-100">
                        <!--code section-->
                        <div class="code-section-area bg-light h-100 w-100 rounded-end-2">
                            <div class="d-flex justify-content-between align-items-center gap-1 border pe-2">
                                <ul class="nav nav-tabs code-sections-tabs border-0" role="tablist"></ul>
                                <div class="d-flex justify-content-end align-items-center gap-1">
                                    <button type="button" class="codes-hover-btn rounded-2 p-1 m-0" id="referenceCodes"><svg class="icon-md"
                                             width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M17 14H19V17H22V19H19V22H17V19H14V17H17V14ZM5 3H19C20.11 3 21 3.89 21 5V12.8C20.39 12.45 19.72 12.2 19 12.08V5H5V19H12.08C12.2 19.72 12.45 20.39 12.8 21H5C3.89 21 3 20.11 3 19V5C3 3.89 3.89 3 5 3ZM7 7H17V9H7V7ZM7 11H17V12.08C16.15 12.22 15.37 12.54 14.68 13H7V11ZM7 15H12V17H7V15Z"/></svg></button>
                                    <button type="button" class="codes-hover-btn rounded-2 p-1 m-0" id="copyCodes"><svg class="icon-md"
                                             width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M20.0952 22C21.1524 22 22 21.1524 22 20.0952V9.61905C22 8.5619 21.1524 7.71429 20.0952 7.71429C16.6 7.71429 13.1143 7.71429 9.61905 7.71429C8.5619 7.71429 7.71429 8.5619 7.71429 9.61905C7.71429 13.1143 7.71429 16.6 7.71429 20.0952C7.71429 21.1524 8.5619 22 9.61905 22H20.0952ZM20.0952 20.0952H9.61905V9.61905H20.0952V20.0952ZM5.80952 16.2857V14.381H3.90476V3.90476H14.381V5.80952H16.2857V3.90476C16.2857 2.84762 15.4381 2 14.381 2H3.90476C2.84762 2 2 2.84762 2 3.90476V14.381C2 15.4381 2.84762 16.2857 3.90476 16.2857H5.80952Z"/></svg></button>
                                    <button type="button" class="codes-hover-btn rounded-2 p-1 m-0" id="downloadCodes"><svg class="icon-md"
                                             width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M2 14H4V19H20V14H22V19C22 20.11 21.11 21 20 21H4C2.9 21 2 20.11 2 19V14ZM12 17L17.55 11.54L16.13 10.13L13 13.25V4H11V13.25L7.88 10.13L6.46 11.55L12 17Z"/></svg></button>
                                </div>
                            </div>
                            <div class="tab-content editor-codes-area p-2" id="tab-content"></div>
                        </div>
                        <!--code section end-->
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php include("includes/full-popup-footer.php"); ?>
<?php include("includes/footer.php"); ?>

<script>
    $(document).ready(function() {
        const $tabList = $('.code-sections-tabs');
        const $tabContent = $('#tab-content');

        const fileData = {
            'src-assets-header-jsx': {
                path: 'src/assets/Header.jsx',
                code: '// Header from Assets\nimport React from "react";\n\nconst Header = () => {\n  return <div>Assets Header</div>;\n};'
            },
            'src-components-header-jsx': {
                path: 'src/components/Header.jsx',
                code: '// Header from Components\nexport const Header = () => {\n  return <h1>Component Header</h1>;\n};'
            },
            'public-robots-txt': {
                path: 'public/robots.txt',
                code: 'User-agent: *\nDisallow: /admin/'
            }
        };

        $('.file-tree').on('click', '.file', function(e) {
            e.preventDefault();
            e.stopPropagation();

            const fileName = $(this).text().trim();

            let pathParts = [];
            $(this).parents('li.folder').each(function() {
                pathParts.unshift($(this).find('.folder-title').first().text().trim());
            });
            const fullPath = pathParts.length > 0 ? pathParts.join('/') + '/' + fileName : fileName;

            const uniqueId = fullPath.replace(/[^a-z0-9]/gi, '-').toLowerCase();

            if ($(`#codes-tab-${uniqueId}`).length > 0) {
                activateTab(uniqueId);
            } else {
                createNewTab(fileName, uniqueId, fullPath);
            }
        });

        function createNewTab(name, id, path) {
            $tabList.find('.nav-link').removeClass('active');
            $tabContent.find('.tab-pane').removeClass('active show');

            const data = fileData[id] || {
                path: path,
                code: `// Content for: ${path}\n// Add your logic here.`
            };

            const lines = data.code.split('\n');
            const lineNumbersHtml = lines.map((_, i) => `<li>${i + 1}</li>`).join('');

            const tabHtml = `
            <li class="nav-item" role="presentation">
                <a class="d-flex justify-content-start align-items-center gap-2 text-14 fw-medium border-0 rounded-0 p-2 codes-tabs-name nav-link active"
                   id="codes-tab-${id}" data-bs-toggle="tab" href="#codes-tabpanel-${id}" role="tab"
                   title="${data.path}"> ${name}
                    <button class="no-bg-btn close-tab" data-target-id="${id}">
                        <svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.5 3.205L8.795 2.5L6 5.295L3.205 2.5L2.5 3.205L5.295 6L2.5 8.795L3.205 9.5L6 6.705L8.795 9.5L9.5 8.795L6.705 6L9.5 3.205Z"/></svg>
                    </button>
                </a>
            </li>`;

            const contentHtml = `
            <div class="tab-pane h-100 active show" id="codes-tabpanel-${id}" role="tabpanel">
                <div class="scroll-area overflow-x-auto h-100">
                                        <pre class="bg-light mb-3">
&lt;video 1 width="640" height="360" controls&gt;
&lt;source src="video.mp4" type="video/mp4"&gt;
&lt;source src="video.webm" type="video/webm"&gt;
Your browser does not support the video tag.
&lt;/video&gt;
                                        </pre>
                                    </div>
            </div>`;

            $tabList.prepend(tabHtml);
            $tabContent.prepend(contentHtml);

            scrollToTab(id);
        }

        function activateTab(id) {
            const tabEl = document.querySelector(`#codes-tab-${id}`);
            new bootstrap.Tab(tabEl).show();
            scrollToTab(id);
        }

        function scrollToTab(id) {
            const el = document.getElementById(`codes-tab-${id}`);
            if (el) el.scrollIntoView({
                behavior: 'smooth',
                inline: 'center'
            });
        }

        function escapeHtml(text) {
            return text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
        }

        $tabList.on('click', '.close-tab', function(e) {
            e.preventDefault();
            e.stopPropagation();
            const id = $(this).data('target-id');
            $(`#codes-tabpanel-${id}`).remove();
            $(this).closest('li').remove();
            $tabList.find('.nav-link').first().tab('show');
        });
    });
    setTimeout(function() {
        const $target = $('.file').filter(function() {
            return $(this).text().trim() === "App.css";
        }).first();
        if ($target.length > 0) {
            $target.click();
        }
    }, 100);
    document.getElementById("openCodesModal").addEventListener("click", function () {
        document.getElementById("canvas-action-btn-div").style.display = "none";
    });

    // code-section-area-col hide and show
    document.addEventListener("DOMContentLoaded", function () {
        const btn = document.getElementById("codes-section-show");
        const codeCol = document.querySelector(".code-section-area-col");
        const tabContent = document.getElementById("codes-row");

        function toggleCodeUI() {
            const isActive = btn.classList.contains("active");

            // Toggle d-block on code column
            codeCol.classList.toggle("d-block", isActive);

            // Toggle phone-h-auto on tab-content
            tabContent.classList.toggle("phone-h-row", isActive);
        }

        // Run once on load
        toggleCodeUI();

        // On direct click (Bootstrap toggles class after click)
        btn.addEventListener("click", function () {
            setTimeout(toggleCodeUI, 50);
        });

        // On Bootstrap pill/tab events (more reliable)
        btn.addEventListener("shown.bs.tab", toggleCodeUI);
        btn.addEventListener("hidden.bs.tab", toggleCodeUI);
    });
    // code-section-area-col hide and show end
</script>
