#overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.845); /* Semi-transparent background */
    z-index: 9999; /* Ensure it appears below the loader but above other content */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader {
    width: 40px;
    aspect-ratio: 1;
    color: #ffb516;
    position: relative;
    background:
        conic-gradient(from 134deg at top, currentColor 92deg, #0000 0) top,
        conic-gradient(from -46deg at bottom, currentColor 92deg, #0000 0) bottom;
    background-size: 100% 50%;
    background-repeat: no-repeat;
}

.loader:before {
    content: '';
    position: absolute;
    inset: 0;
    --g: currentColor 14.5px, #0000 0 calc(100% - 14.5px), currentColor 0;
    background:
        linear-gradient(45deg, var(--g)),
        linear-gradient(-45deg, var(--g));
    animation: l7 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l7 {
    33% { inset: -10px; transform: rotate(0deg); }
    66% { inset: -10px; transform: rotate(90deg); }
    100% { inset: 0; transform: rotate(90deg); }
}
.loader-text {
    margin-top: 25px;
    font-size: 25px;
    font-weight: 600;
    color: #000000;
}