/* YORK.IE Custom Loader Styles */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    transition: opacity 0.3s ease;
}

#global-loader.global-loader-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Pulsing Logo (Legacy) */
.yorkie-logo-loader {
    width: 140px;
    height: auto;
    animation: yorkie-pulse 1.5s ease-in-out infinite;
}

@keyframes yorkie-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* Custom animations for York.ie Loader layout */
@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes spinCircle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.animate-pulse-scale {
    animation: pulseScale 2s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spinCircle 1.5s linear infinite;
}

/* Local Content Loader */
.local-loader-wrapper {
    position: relative;
    min-height: 200px;
}

.local-content-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    transition: opacity 0.2s ease;
}

.local-content-loader.hidden {
    display: none;
    opacity: 0;
}

.local-content-loader .yorkie-logo-loader {
    width: 100px;
}