/* ======================== LOADING SPINNER STYLES ======================== */

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: inherit;
    animation: fadeIn 0.2s ease;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader::before {
    content: "";
    box-sizing: border-box;
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border-top: 2px solid var(--accent);
    border-right: 2px solid transparent;
    animation: spinner8217 0.8s linear infinite;
}

.loader-text {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

@keyframes spinner8217 {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smaller loader for mobile */
@media (max-width: 640px) {
    .loader {
        width: 48px;
        height: 48px;
    }
    
    .loader::before {
        width: 48px;
        height: 48px;
        border-top-width: 2px;
    }
    
    .loader-text {
        font-size: 0.7rem;
        bottom: -28px;
    }
}

/* Extra small loader for very small screens */
@media (max-width: 480px) {
    .loader {
        width: 40px;
        height: 40px;
    }
    
    .loader::before {
        width: 40px;
        height: 40px;
        border-top-width: 1.5px;
    }
    
    .loader-text {
        font-size: 0.65rem;
        bottom: -26px;
    }
}

