/* Progress Overlay and Progress Bar */

.progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.progress-overlay.active {
    display: flex;
}

.progress-container {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    min-width: 500px;
    max-width: 90%;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    text-align: center;
}

.progress-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.progress-status {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
}

.progress-bar-wrapper {
    background: var(--bg-tertiary);
    border-radius: 50px;
    height: 30px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success) 0%, #00ff88 100%);
    border-radius: 50px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.progress-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-tertiary);
    border-top-color: var(--success);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
