﻿.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid var(--mud-palette-primary);
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* ── PageLoading ── */
.page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f7fc;
}

.page-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: pl-fade-in 0.5s ease-out;
}

/* anel giratório em volta do ícone */
.page-loading-icon-ring {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-loading-icon-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e8e0f0;
    border-top-color: #73299A;
    animation: pl-spin 1.2s linear infinite;
}

.page-loading-icon {
    font-size: 32px !important;
    color: #73299A;
    animation: pl-pulse 2s ease-in-out infinite;
}

/* três pontos */
.page-loading-dots {
    display: flex;
    gap: 8px;
}

.page-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #73299A;
    animation: pl-dot 1.4s ease-in-out infinite;
}

.page-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.page-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

.page-loading-text {
    font-size: 1.05rem !important;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.2px;
}

@keyframes pl-spin {
    to { transform: rotate(360deg); }
}

@keyframes pl-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.08); }
}

@keyframes pl-dot {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40%           { opacity: 1;    transform: scale(1.1); }
}

@keyframes pl-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
