<div class="modal fade" id="githubModal" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content border-0 shadow">
            <div class="modal-header border-0 pb-0">
                <div class="d-flex align-items-center">
                    <div class="rounded-circle bg-dark bg-opacity-10 me-3 d-flex align-items-center justify-content-center"
                        style="width: 56px; height: 56px; min-width: 56px;">
                        <i class="bi bi-github text-dark" style="font-size: 1.5rem;"></i>
                    </div>
                    <div>
                        <h5 class="modal-title fw-bold mb-0">Clone from GitHub</h5>
                        <small class="text-muted">Import a repository directly</small>
                    </div>
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
            </div>
            <div class="modal-body pt-4">
                <form class="reloadModal" action="{{ url_for('data.clone_git_project', projectname=project.name) }}"
                    method="POST" id="cloneFromGit">
                    <div class="mb-4">
                        <label for="githubRepoUrl" class="form-label fw-semibold">
                            <i class="bi bi-link-45deg me-1"></i> Repository URL
                        </label>
                        <input type="text" class="form-control" id="githubRepoUrl" name="github_repo"
                            placeholder="https://github.com/username/repository">
                        <div class="form-text">
                            <i class="bi bi-info-circle me-1"></i>
                            Enter the full URL of the GitHub repository you want to clone
                        </div>
                    </div>
                    <div class="alert alert-light border d-flex align-items-start" role="alert">
                        <i class="bi bi-clock-history text-warning me-2 mt-1"></i>
                        <small class="text-muted">
                            Cloning may take a while depending on the repository size. Please be patient.
                        </small>
                    </div>
                </form>
            </div>
            <div class="modal-footer border-0 pt-0">
                <button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">
                    Cancel
                </button>
                <button type="submit" form="cloneFromGit" class="btn btn-dark">
                    <span class="spinner-border spinner-border-sm me-2 d-none" role="status" aria-hidden="true"></span>
                    <i class="bi bi-download me-1"></i>
                    <span>Clone Repository</span>
                </button>
            </div>
        </div>
    </div>
</div>