div#loadingIndicator.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay for contrast */
    display: none; /* Hide by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    pointer-events: none;
}

    div#loadingIndicator.loading-indicator.visible {
        display: flex;
        pointer-events: auto;
        animation: fadeIn 0.2s ease-in-out;
    }

    div#loadingIndicator.loading-indicator .link-icon {
        display: inline-block;
        width: 3rem; 
        height: 3rem;
    }

        div#loadingIndicator.loading-indicator .link-icon svg {
            width: 100%;
            height: 100%;
            stroke: var(--bs-primary); 
        }

        div#loadingIndicator.loading-indicator .link-icon .link-path {
            stroke-dasharray: 40; /* Approximate path length (adjust as needed) */
            stroke-dashoffset: 40; /* Initially hide the stroke */
            animation: draw 3.0s linear infinite;
        }

        div#loadingIndicator.loading-indicator .link-icon .link-path-2 {
            animation-delay: 0.00s; /* the second path delay */
        }

    div#loadingIndicator.loading-indicator .visually-hidden {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

/* Fade-in animation for the parent */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Drawing animation for the link paths */
@keyframes draw {
    from {
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0; /* Reveal the stroke */
        opacity: 1;
    }
}
