/* NProgress color customization */
#nprogress .bar {
  background: var(--saas-primary-color) !important;
}

.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid;
    animation: l1 1s infinite;
    z-index: 999999999;
}

@keyframes l1 {
  to { transform: rotate(.5turn); }
}

.loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
}

.loader-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 8888;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loader-message {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    font-size: 1rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    z-index: 999999999;
}

/* Override dynamically added styles to use 100% instead of viewport units */
div[style*="100vw"] {
    width: 100% !important;
}

div[style*="100vh"] {
    height: 100% !important;
}

/* Specific override for high z-index overlays */
div[style*="z-index: 200000"] {
    width: 100% !important;
    height: 100% !important;
}