﻿.dashboard-loader.lg {
    width: 10rem;
    height: 10rem;
}

.dashboard-loader {
    position: relative;
}

/* Outer ring */
.outer-ring, .middle-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.outer-ring {
    border: 22px solid #e5e7eb;
}

.outer-rotating {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #3b82f6;
    border-right-color: #06b6d4;
    animation: spin 1s linear infinite;
}

/* Middle ring */
.middle-ring {
    inset: 0.25rem;
    border: 2px solid #f3f4f6;
}

.middle-rotating {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 10px solid transparent;
    border-top-color: #22c55e;
    border-left-color: #eab308;
    animation: spin 1.5s linear infinite reverse;
}

/* Inner dot */
.inner-dot {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .inner-dot div {
        width: 3.5rem;
        height: 3.5rem;
        background: linear-gradient(to right, #3b82f6, #06b6d4);
        border-radius: 50%;
        animation: pulse 1.5s infinite;
    }

/* Floating particles */
.particles .particle {
    position: absolute;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    animation: ping 2s infinite;
}

.particle-top {
    top: 0;
    left: 50%;
    background: #eab308;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.particle-right {
    top: 50%;
    right: 0;
    background: #22c55e;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.particle-bottom {
    bottom: 0;
    left: 50%;
    background: #06b6d4;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.particle-left {
    top: 50%;
    left: 0;
    background: #3b82f6;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

/* Texto animado */
.loading-text {
    font-size: 1rem;
    animation: bounce 1s infinite;
}

/* Animaciones */
@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

@keyframes ping {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    80%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}
