/* ========================================
   GLAMZN SIMPLE LOADER - MINIMAL & MODERN
   ======================================== */

/* Override UIKit default red spinner with indigo */
.uc-spinner > *,
.uk-spinner > *,
[class*='uc-spinner'] > *,
[class*='uk-spinner'] > * {
    animation: uc-spinner-rotate 1s linear infinite !important;
    stroke: #6366f1 !important;
    stroke-width: 3 !important;
}

/* Simple Page Loader - Hidden by default for better performance */
#page-loader,
.page-loader,
.uc-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Dark mode */
.dark #page-loader,
.dark .page-loader,
.dark .uc-page-loader {
    background: #0f172a;
}

/* Hide loader when loaded */
#page-loader.loaded,
.page-loader.loaded,
.uc-page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Simple Spinner - Single Ring */
.glamzn-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: glamzn-spin 0.8s linear infinite;
}

/* Animation */
@keyframes glamzn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* UIKit Spinner Override */
@keyframes uc-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Loading State Body */
body.loading {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .glamzn-loader-spinner {
        width: 40px;
        height: 40px;
        border-width: 2.5px;
    }
}
