/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-light-grey);
    border-top-color: var(--color-blue);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

.loader-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.loader-text {
    color: var(--color-medium-grey);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .loader-spinner {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .loader-logo {
        height: 40px;
    }
}

