/* ============================================
   PROCESSOR STYLES — AudioTool Pro (procesar.html)
   Progress bar, status, and processing page layout
   ============================================ */

/* ── Page Layout ── */
.processor-container {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2.5rem 2rem;
    background: var(--surface-color);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.processor-container h1 {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.processor-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* ── Warning Banner ── */
.proc-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    color: #92400E;
}

.proc-warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Progress Bar ── */
.progress-wrapper {
    margin: 1.5rem 0;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #818CF8);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar-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 1.5s infinite;
}

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

.progress-percentage {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0.75rem;
    font-variant-numeric: tabular-nums;
}

/* ── File Info ── */
.proc-info {
    margin-top: 1.5rem;
    text-align: left;
}

.proc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.proc-info-row:last-child {
    border-bottom: none;
}

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

.proc-info-value {
    color: var(--text-color);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Status Message ── */
.proc-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.proc-status.processing {
    background: #EEF2FF;
    color: var(--primary-color);
}

.proc-status.completed {
    background: var(--success-light);
    color: var(--success);
}

.proc-status.error {
    background: #FEE2E2;
    color: var(--danger);
}

/* ── Spinner (fallback) ── */
.proc-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #E5E7EB;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

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

/* ── Current File Name ── */
.proc-current-file {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    word-break: break-all;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .processor-container {
        margin: 2rem 1rem;
        padding: 1.5rem 1.25rem;
    }

    .processor-container h1 {
        font-size: 1.3rem;
    }

    .progress-percentage {
        font-size: 1.25rem;
    }
}
