@charset "utf-8";

/* ============================================
   CSS LOADER / SPINNER
   ============================================ */

/* Default loader */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.loader.is-active {
    display: flex;
}

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

.loader-default::after {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #e0e0e0;
    border-top-color: #17378a;
    animation: loader-spin 0.8s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Small loader */
.loader-sm::after {
    width: 24px;
    height: 24px;
    border-width: 2px;
}

/* Large loader */
.loader-lg::after {
    width: 64px;
    height: 64px;
    border-width: 5px;
}

/* Inline loader (for buttons) */
.loader-inline {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: loader-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 60%;
    margin-bottom: 12px;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}
