/* Token Loading Indicator - Lock Icon with Animation */

.token-loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.token-loading-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* Lock Icon SVG Animation */
.token-loading-icon svg {
    width: 100%;
    height: 100%;
    animation: lockPulse 1.5s ease-in-out infinite;
}

@keyframes lockPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Alternative: Rotation animation */
.token-loading-icon.rotating svg {
    animation: lockRotate 2s linear infinite;
}

@keyframes lockRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.token-loading-message {
    text-align: center;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.token-loading-message.hidden {
    display: none;
}

/* Overlay variant - if displaying over ticket content */
.token-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.token-loading-overlay .token-loading-indicator {
    padding: 0;
}

/* Inline variant - displayed within the ticket container */
.token-loading-inline {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
}

.token-loading-inline .token-loading-icon {
    margin-bottom: 1rem;
}

.token-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
