/* Progress Bar Styles */
.progress-container {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
    position: relative;
}

.progress-fill::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: shimmer 2s infinite;
}

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

.progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    min-width: 40px;
    text-align: right;
}

.progress-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 500;
}

/* Processing indicator enhancements */
.processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.processing .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.processing p {
    margin: 0;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .progress-container {
        padding: 12px;
        margin-top: 15px;
    }
    
    .progress-bar-wrapper {
        gap: 10px;
    }
    
    .progress-text {
        font-size: 12px;
        min-width: 35px;
    }
    
    .progress-status {
        font-size: 13px;
    }
    
    .processing {
        padding: 30px 15px;
    }
    
    .processing .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    .processing p {
        font-size: 14px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .progress-container {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .progress-bar {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Loading animation for progress bar */
.progress-bar.loading .progress-fill {
    background: linear-gradient(90deg, #4CAF50, #2196F3, #4CAF50);
    background-size: 200% 100%;
    animation: progressGradient 2s ease-in-out infinite;
}

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