/* client/assets/css/global.css */
/* ===== EdgeFly Loader Styles ===== */
#edgefly-loader {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#edgefly-loader.visible {
    opacity: 1;
}

.loader-overlay {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-text {
    margin-top: 16px;
    font-weight: 600;
    color: #5a4208;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* 🟡 Circle Loader (Auth Check / Redirect) */
.loader.circle {
    position: relative;
    width: 48px;
    height: 48px;
}

.loader.circle>.ball {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pop 0.9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader.circle>.ball:nth-child(1) {
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.loader.circle>.ball:nth-child(2) {
    top: 10px;
    right: 10px;
    animation-delay: -0.05s;
}

.loader.circle>.ball:nth-child(3) {
    bottom: 10px;
    right: 10px;
    animation-delay: 0.3s;
}

.loader.circle>.ball:nth-child(4) {
    bottom: 10px;
    left: 10px;
    animation-delay: 0.55s;
}

@keyframes pop {

    0%,
    100% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }
}

/* 🟨 Stretch Bars Loader (Page Transitions) */
.loader.bars {
    width: 48px;
    height: 48px;
    text-align: center;
    font-size: 10px;
}

.loader.bars>.col {
    height: 100%;
    width: 4px;
    margin: 0 2px;
    display: inline-block;
    animation: stretch 1.2s infinite ease-in-out;
}

.loader.bars>.col:nth-child(2) {
    animation-delay: -1.1s;
}

.loader.bars>.col:nth-child(3) {
    animation-delay: -1.0s;
}

.loader.bars>.col:nth-child(4) {
    animation-delay: -0.9s;
}

.loader.bars>.col:nth-child(5) {
    animation-delay: -0.8s;
}

@keyframes stretch {

    0%,
    40%,
    100% {
        transform: scaleY(0.45);
    }

    20% {
        transform: scaleY(1);
    }
}

/* 🟧 Squares Loader (Flight Search) */
.loader.squares {
    width: 48px;
    height: 48px;
    position: relative;
}

.loader.squares>.square {
    position: absolute;
    width: 12px;
    height: 12px;
}

.loader.squares>.square:nth-child(1) {
    top: 0;
    left: 0;
    animation: move1 1.2s infinite ease-in-out;
}

.loader.squares>.square:nth-child(2) {
    top: 0;
    right: 0;
    animation: move2 1.2s infinite ease-in-out;
}

.loader.squares>.square:nth-child(3) {
    bottom: 0;
    right: 0;
    animation: move3 1.2s infinite ease-in-out;
}

.loader.squares>.square:nth-child(4) {
    bottom: 0;
    left: 0;
    animation: move4 1.2s infinite ease-in-out;
}

@keyframes move1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(24px, 24px);
    }
}

@keyframes move2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-24px, 24px);
    }
}

@keyframes move3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-24px, -24px);
    }
}

@keyframes move4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(24px, -24px);
    }
}