/* Style for the loader */
#loader {
    position: relative; /* To keep it in the center of the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    animation: spin 25s linear infinite;
    z-index: 1000; /* Make sure it's on top of everything */
    text-align: center;
    font-weight: bold;
}

#loaderNotInUse {
    position: relative; /* To keep it in the center of the screen */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 16px solid #f3f3f3; /* Light grey border */
    border-radius: 50%;
    border-top: 16px solid lightseagreen; /* Blue spinner */
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    z-index: 1000; /* Make sure it's on top of everything */
    text-align: center;
    font-weight: bold;
}

/* Keyframes for spinning loader animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style for the blurred/whitened container */
#ToolDataContainer {
    opacity: 0.5; /* Initial blur or semi-transparent effect */
    pointer-events: none; /* Prevent interactions while loading */
    transition: opacity 0.3s ease-in-out;
}

/* Hide loader and restore container when page is fully loaded */
.loaded #loader {
    display: none;
}

.loaded #ToolDataContainer {
    opacity: 1;
    pointer-events: auto; /* Restore interactions */
}


/* Initially keep the ToolDataContainer hidden (white) */
#ToolDataContainer {
    background-color: white; /* Set the background to white */
    opacity: 0; /* Full opacity */
    transition: opacity 0.3s ease-in-out; /* Smooth transition for fading */
}

/* After the delay, reveal the content */
.loaded #ToolDataContainer {
    opacity: 1;
}

.show-content #ToolDataContainer {
    opacity: 1; /* Fade out white overlay */
    transition: opacity 3s ease-in-out; /* Delayed fade effect */
}



/* Center the loader End */
