body { font-family: 'Segoe UI', sans-serif; background-color: #f8f9fa; margin: 0; padding: 20px; color: #2c3e50; }
header { background: #ffffff; padding: 12px; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin-bottom: 20px; text-align: center; border-bottom: 3px solid #34495e; }
h1, h2, h3, h4 { margin: 0 0 8px 0; font-weight: 600; }
h1 { font-size: 1.3rem; }

.pipeline-stepper { display: flex; justify-content: space-between; background: #f1f2f6; border-radius: 30px; padding: 4px; margin-top: 10px; }
.step { flex: 1; text-align: center; padding: 6px 10px; font-size: 0.75rem; font-weight: bold; color: #7f8c8d; border-radius: 20px; }
.step.active { background: #2980b9; color: #ffffff; }
.step.completed { background: #27ae60; color: #ffffff; }

.container { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.block { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; }
.block-header { background: #34495e; color: #ffffff; padding: 8px 15px; }
.block-header h2 { font-size: 0.95rem; margin: 0; }

.pipeline-layout { display: grid; grid-template-columns: 350px 1fr 310px; gap: 12px; padding: 12px; }
.zone { padding: 10px; background: #ffffff; border: 1px solid #edf2f7; border-radius: 4px; }
.control-zone { border-left: 4px solid #2980b9; }
.monitor-zone { border-left: 4px solid #f1c40f; background: #fafafa; }
.theory-zone { border-left: 4px solid #7f8c8d; }

.id-bloque-bloqueado { opacity: 0.25; pointer-events: none; }
.stream-box { background: #2c3e50; color: #2ecc71; font-family: monospace; padding: 8px; border-radius: 4px; font-size: 0.8rem; min-height: 30px; word-break: break-all; margin-top: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.config-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; font-size: 0.78rem; }
.config-row input, .config-row select { padding: 3px; border: 1px solid #cbd5e0; font-size: 0.78rem; }

.scroll-container { overflow-x: auto; max-width: 100%; background: #ffffff; border: 1px solid #e2e8f0; padding: 4px; }
.cell { width: 50px; text-align: center; padding: 3px; border: 1px solid #cbd5e0; font-family: monospace; font-size: 0.78rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.data-table th, .data-table td { border: 1px solid #e2e8f0; padding: 5px; text-align: left; }
.data-table th { background: #f4f6f7; color: #34495e; }

.metric-item { display: flex; justify-content: space-between; padding: 5px; border-left: 3px solid #7f8c8d; background: #f4f6f7; margin-bottom: 3px; font-size: 0.78rem; border-radius: 0 4px 4px 0; }
.metric-val { font-weight: bold; }

.btn { padding: 5px 8px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 0.78rem; }
.btn-accent { background: #27ae60; color: white; }
.btn-primary { background: #34495e; color: white; }
.btn-teoria-pdf { margin-top: 6px; width: 100%; padding: 5px; background: #7f8c8d; color: white; border: none; border-radius: 4px; font-size: 0.72rem; }

.linea-retorno { padding: 5px; font-family: monospace; font-size: 0.78rem; background: #ebedef; font-weight: bold; border-left: 4px solid #7f8c8d; }
.status-badge { padding: 2px 5px; border-radius: 3px; font-size: 0.72rem; color: white; background: #7f8c8d; font-weight: bold; }
.empty-msg { font-size: 0.72rem; color: #a0aec0; text-align: center; font-style: italic; }

.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); }
.modal-content-pdf { background: #fff; margin: 6vh auto; width: 75%; height: 75vh; position: relative; }
.close-btn { position: absolute; right: 8px; top: 4px; font-size: 18px; cursor: pointer; }