/* Full screen overlay sitting on top of the dashboard */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f8f9fa;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out, visibility 0.8s;
    overflow: hidden; /* Keeps the matrix rain contained */
}

/* Fades out while sliding up (bottom-to-top feel) */
.preloader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5vh); 
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative; /* FIX: Keeps the logo and bar on top */
    z-index: 10;        /* FIX: Keeps the logo and bar on top */
}

/* The logo and text container */
.preloader-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: pulse 2s infinite;
}

/* The blue circle with checkmark */
.preloader-icon {
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

/* The checkmark size */
.preloader-icon svg {
    width: 32px;
    height: 32px;
}

/* Logo text */
.preloader-text {
    font-family: inherit;
    font-size: 46px;
    font-weight: bold;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Styling for the tagline */
.preloader-tagline {
    font-family: inherit;
    font-size: 15px;
    color: #6c757d;
    margin: -10px 0 0 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Sleek loading bar */
.loading-bar-container {
    width: 280px;
    height: 4px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: #0d6efd;
    animation: loadingSlide 1.5s ease-in-out infinite;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes loadingSlide {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(100%); }
}

