/* --- PRELOADER BASE --- */
.starter-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Exit Animations */
.starter-preloader.loaded {
    pointer-events: none;
}

/* 1. Fade Out */
.starter-preloader[data-transition="fade"].loaded {
    opacity: 0;
    visibility: hidden;
}

/* 2. Slide Up */
.starter-preloader[data-transition="slide-up"].loaded {
    transform: translateY(-100%);
}

/* 3. Split Curtain */
.starter-preloader[data-transition="curtain"] {
    background: transparent !important; /* Container is transparent, children have bg */
}
.starter-preloader-curtain-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #ffffff; /* Default, overridden by JS/PHP */
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.starter-preloader-curtain-left { left: 0; }
.starter-preloader-curtain-right { right: 0; }

.starter-preloader[data-transition="curtain"].loaded .starter-preloader-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.starter-preloader[data-transition="curtain"].loaded .starter-preloader-curtain-left {
    transform: translateX(-100%);
}
.starter-preloader[data-transition="curtain"].loaded .starter-preloader-curtain-right {
    transform: translateX(100%);
}


/* --- CONTENT STYLES --- */
.starter-preloader-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style 1: Spinner */
.starter-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: starter-spin 1s ease-in-out infinite;
}

/* Style 2: Logo Pulse */
.starter-preloader-logo {
    max-width: 150px;
    height: auto;
    animation: starter-pulse 2s infinite;
}

/* Style 3: Progress Bar */
.starter-preloader-progress-wrap {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}
.starter-preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    animation: starter-progress 2s ease-in-out forwards;
}

/* Keyframes */
@keyframes starter-spin {
    to { transform: rotate(360deg); }
}
@keyframes starter-pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}
@keyframes starter-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}