/* Flow Analyser - estilos */

/* Pipeline progress bar */
.pipeline-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding: 16px 0;
}

.pipeline-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.pipeline-step.active { color: #3b82f6; }
.pipeline-step.done { color: #10b981; }

.pipe-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    background: #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
}

.pipeline-step.active .pipe-num { background: #3b82f6; color: #fff; }
.pipeline-step.done .pipe-num { background: #10b981; color: #fff; }

.pipeline-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 8px;
    min-width: 12px;
}

/* Pipeline sections */
.pipe-section { display: none; margin-bottom: 16px; }
.pipe-section.active { display: block; }

.pipe-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.pipe-advanced, .pipe-tools {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
}

.pipe-advanced summary, .pipe-tools summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    color: #6b7280;
    font-size: 14px;
}

.pipe-advanced[open] summary, .pipe-tools[open] summary {
    border-bottom: 1px solid #e5e7eb;
}

.pipe-advanced > :not(summary), .pipe-tools > :not(summary) {
    padding: 16px;
}

.pipe-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.flow-result-summary {
    padding: 12px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1e40af;
}

/* Existing styles kept */
.flow-panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.flow-panel h3 { margin: 0 0 8px; font-size: 18px; }
.flow-panel p { margin: 0 0 16px; color: #6b7280; font-size: 14px; }

.flow-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: border-color 0.2s;
    position: relative;
}

.flow-upload-area:hover { border-color: #3b82f6; }

.flow-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.flow-upload-area label {
    cursor: pointer;
    color: #6b7280;
    font-size: 14px;
}

.flow-diff-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.flow-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.flow-btn {
    padding: 10px 20px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
}

.flow-btn:hover { background: #2563eb; }
.flow-btn-secondary { background: #6b7280; }
.flow-btn-secondary:hover { background: #4b5563; }

.flow-btn-sm {
    padding: 4px 10px;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
}

.flow-actions-row { display: flex; gap: 8px; flex-wrap: wrap; }

.flow-result { margin-top: 16px; }

.flow-result-item {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #d1d5db;
    background: #f9fafb;
}

.flow-result-item.flow-success { border-left-color: #10b981; background: #ecfdf5; }
.flow-result-item.flow-error { border-left-color: #ef4444; background: #fef2f2; }
.flow-result-item.flow-warning { border-left-color: #f59e0b; background: #fffbeb; }

.flow-result-header { font-size: 15px; margin-bottom: 8px; }

.flow-result-section { margin-top: 8px; font-size: 13px; }
.flow-result-section ul { margin: 4px 0 0 16px; padding: 0; }
.flow-result-section li { margin-bottom: 2px; }

.flow-diff-add { color: #059669; }
.flow-diff-remove { color: #dc2626; }
.flow-diff-change { color: #d97706; }

.flow-ordem-list { padding-left: 20px; }
.flow-ordem-list li { margin-bottom: 12px; line-height: 1.5; }
.flow-ordem-list small { color: #6b7280; }

/* Textos editor */
.flow-textos-fluxo {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.flow-textos-fluxo h5 { margin: 0 0 8px; color: #3b82f6; }

.flow-texto-item { margin-bottom: 8px; }
.flow-texto-item label { display: block; font-size: 12px; color: #6b7280; font-family: monospace; }
.flow-texto-item textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

/* Conversor */
.converter-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 400px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    background: #f9fafb;
    box-sizing: border-box;
    margin-top: 12px;
}

.converter-status { margin-top: 8px; font-size: 14px; }
.converter-loading { color: #6b7280; }
.converter-success { color: #059669; }
.converter-error { color: #dc2626; }
