#fallback-loader {
    font-size: 18px;
    color: #333;
    text-align: center;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's above all other elements */
  }
  
body.loaded #loading-screen {
    display: none; /* Hide the loading screen when the page has loaded */
  }

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.0); /* Slight transparency */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Higher than Soft UI navbars */
    transition: opacity 0.5s ease;
}

.loader-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    height: 0; /* Optional: prevents it from taking up space */
}

.loader-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    height: 56px;
    margin-top: -20px;
    margin-bottom: -20px;
}