/* Question Navigation Performance Optimizations */

/* Smooth transitions for question content */
.question-content {
    transition: opacity 0.2s ease-in-out;
}

.question-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Progress bar animation */
.progress-bar {
    transition: width 0.3s ease-in-out;
}

/* Loading spinner animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Option selection animations */
.option-label {
    transition: all 0.15s ease-in-out;
}

.option-label:hover {
    transform: translateX(2px);
}

/* Skeleton loader for preloading */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Fixed position overlay */
.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-50 {
    z-index: 50;
}

/* Backdrop blur (for browsers that support it) */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

/* Make sure the loading overlay covers everything */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}