/* ========================================
   UNIVERSAL PROGRESS BAR STYLES
   ======================================== */

/* Circular Progress */
.universal-progress-container {
    text-align: center;
    padding: 40px 20px;
}

.progress-ring-wrapper {
    position: relative;
    margin: 0 auto 30px;
}

.progress-ring-wrapper svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
}

.progress-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-percentage-text {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.progress-status-text {
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.progress-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.progress-file-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}

.file-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    font-size: 14px;
}

.file-info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.file-info-value {
    font-weight: 700;
    color: var(--text-primary);
}

/* Progress Error State */
.progress-error {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

.error-title {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    margin: 0 0 12px 0;
}

.error-message {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Linear Progress Bar */
.linear-progress-container {
    padding: 20px;
}

.linear-progress-message {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.linear-progress-bar-wrapper {
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.linear-progress-bar-bg {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 100px;
    overflow: hidden;
}

.linear-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #10b981);
    border-radius: 100px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.linear-progress-percent {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Dark Mode */
body.dark-mode .file-info-item {
    background: rgba(37, 99, 235, 0.1);
}

body.dark-mode .linear-progress-bar-bg {
    background: #374151;
}

/* Animations */
@keyframes pulse-ring {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.progress-ring-wrapper svg circle:last-child {
    animation: pulse-ring 2s ease-in-out infinite;
}