/**
 * Progress Indicator Styles
 * Enterprise-grade progress indicators for loading states
 */

/* Progress Indicator Container */
.progress-indicator {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Bar Progress Indicator */
.progress-bar-container {
    position: relative;
    width: 100%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 12px;
    transition: width 0.3s ease;
    min-width: 0;
}

.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Circle Progress Indicator */
.progress-circle-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.progress-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-circle-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* Percentage Only Indicator */
.progress-percentage-only {
    text-align: center;
    padding: 1rem;
}

.progress-percentage-large {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

/* Indeterminate Progress (Spinner) */
.progress-indeterminate .progress-bar {
    background: linear-gradient(90deg, #007bff, #0056b3, #007bff);
    background-size: 200% 100%;
    animation: progress-shimmer 1.5s ease-in-out infinite;
}

.progress-indeterminate .progress-bar-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progress-shine 1.5s ease-in-out infinite;
}

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

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Virtual Scrolling Styles */
.virtual-scroll-content {
    position: relative;
    width: 100%;
}

.virtual-scroll-items {
    position: relative;
    width: 100%;
}

/* Loading Progress Container (Below Advanced Filters) */
.loading-progress-container {
    margin: 1rem 0;
    padding: 0;
    width: 100%;
}

.loading-progress-container .progress-indicator {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .progress-indicator {
        padding: 0.75rem;
    }
    
    .progress-circle-container {
        width: 100px;
        height: 100px;
    }
    
    .progress-percentage-large {
        font-size: 1.5rem;
    }
    
    .loading-progress-container {
        margin: 0.75rem 0;
    }
}

