.redirect-spinner {
    animation: spin 1.8s ease-in-out infinite;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 10px;
    opacity: 0.9;
}

.redirect-spinner circle {
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 3;
    animation: dash 1.8s ease-in-out infinite;
    stroke-dasharray: 90, 150;
    stroke-dashoffset: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -40;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -120;
    }
}

/* Additional styling for the redirect button state */
#dashboard-redirect-btn.redirecting {
    background: linear-gradient(135deg, #4F46E5 0%, #9333EA 100%);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    transition: all 0.5s ease;
}

#dashboard-redirect-btn.redirecting:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.4);
}

/* Subtle pulse animation for the button */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
    }
    100% {
        box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
    }
}

#dashboard-redirect-btn.redirecting {
    animation: subtle-pulse 2s infinite ease-in-out;
} 