/**
 * Centralized Spinner Styles
 */

/* Container targeting */
.spinner-relative-container {
    position: relative !important;
}

.exp-spinner-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: calc(var(--z-fullscreen) - 1);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.exp-spinner-wrap.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Global Overlay */
.exp-spinner-overlay {
    position: fixed;
    z-index: calc(var(--z-fullscreen) + 1000);
}

.exp-spinner-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 10, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Spinner Content */
.exp-spinner-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* The Circle */
.exp-spinner-circle {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent-color, #3b82f6);
    border-radius: 50%;
    animation: exp-spin 1s linear infinite;
}

.exp-spinner-small .exp-spinner-circle { width: 24px; height: 24px; border-width: 2px; }
.exp-spinner-large .exp-spinner-circle { width: 64px; height: 64px; border-width: 4px; }

/* Text */
.exp-spinner-text {
    font-size: 14px;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Animation */
@keyframes exp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fading-out {
    opacity: 0 !important;
}
