/* layout.css — ventana réplica 640px, header / content / footer, badge y reset */

.window {
  width: 640px;
  min-width: 640px;
  max-width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.header {
  text-align: center;
}

.app-title {
  font-size: 22px;             /* 28 * 0.8 (widget scaling) */
  font-weight: 700;
  line-height: 1.25;
}

.app-subtitle {
  margin-top: 6px;
  font-size: 12px;             /* 14 * 0.8 aprox */
  color: var(--text-secondary);
}

.content {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-title {
  font-size: 13px;             /* 16 * 0.8 aprox */
  font-weight: 700;
}

.btn-row {
  display: flex;
  gap: 8px;
}

.btn-row .btn {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  padding: 0 4px;
}

.file-list-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px;
}

.file-list-title {
  font-size: 12px;             /* 14 * 0.8 aprox */
  font-weight: 700;
  margin-bottom: 6px;
}

.output-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.output-path {
  flex: 1;
  height: 28px;                /* 35 * 0.8 */
  line-height: 28px;
  background: var(--pill-bg);
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.btn-change {
  width: 100px;
  flex: none;
}

.footer {
  text-align: center;
  font-size: 11px;             /* 13 * 0.8 aprox */
  color: var(--text-secondary);
}

/* Distintivo permanente de la demo */
#demo-badge {
  position: fixed;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  opacity: 0.75;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 2px 10px;
  pointer-events: none;
  z-index: 50;
}

/* Vía de regreso evidente: reinicio de la demo */
.btn-reset {
  position: fixed;
  top: 10px;
  right: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  z-index: 50;
}

.btn-reset:hover {
  color: var(--text);
  border-color: var(--accent);
}
