/* Facility Preloader Styles */
/* ========================== */

@keyframes preloaderReveal {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0% 0 0);
    }
}

@keyframes preloaderFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes dotAnimation {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

.facility-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.facility-preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #031439;
    z-index: 1;
}

.facility-preloader-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.facility-preloader-logo-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.facility-preloader-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
    animation: preloaderReveal 2.5s ease-in-out forwards;
}

.facility-preloader-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-align: center;
    min-width: 150px;
}

/* Fade out animation */
.facility-preloader.fade-out {
    animation: preloaderFadeOut 600ms ease-out forwards;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facility-preloader-logo {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .facility-preloader-logo {
        max-width: 200px;
    }
}
