/* ====================================================
   PAGE LOADER & BUTTON ANIMATIONS
   ==================================================== */

/* Full Screen Loader */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Spinner Animation */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(232, 162, 192, 0.2);
    /* Light Pink */
    border-radius: 50%;
    border-top-color: #e8a2c0;
    /* Main Pink */
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================================================
   BUTTON LOADER
   ==================================================== */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    /* Hide text */
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

/* Dark variation for light buttons */
.btn-outline-dark.btn-loading::after,
.btn-light.btn-loading::after {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: #000;
}