.firmware-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  margin: 40px auto;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  text-align: left;
}

.firmware-container p {
  text-align: left;
}

.firmware-container button {
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 12px;
}

.firmware-container button:hover {
  background: #0055aa;
}

.firmware-container progress {
  width: 100%;
  height: 20px;
  margin-top: 12px;
}

#logBox {
  margin-top: 24px;
  background: #1e1e1e;
  border-radius: 8px;
  padding: 16px;
  max-height: 220px;
  overflow-y: auto;
}

#logTexto {
  color: #00ff99;
  font-size: 14px;
  margin: 0;
  white-space: pre-wrap;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.oculto {
  display: none;
}

/* ---- Instruções gerais ---- */

.instrucoes {
  background: #eef5fc;
  border: 1px solid #cfe3f7;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #333;
}

.instrucoes p {
  margin: 0 0 8px 0;
}

.instrucoes ul {
  margin: 0;
  padding-left: 20px;
}

.instrucoes li {
  margin-bottom: 4px;
}

.instrucoes ol {
  margin: 6px 0 0 20px;
  padding: 0;
}

.instrucoes ol li {
  margin-bottom: 2px;
}

/* ---- Títulos de etapa ---- */

.passo-titulo {
  font-weight: bold;
  color: #0066cc;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.subitens {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
}

.subitens li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #777;
  margin-bottom: 4px;
}

.subitens li::before {
  content: "–";
  position: absolute;
  left: 0;
}

/* ---- Listas numeradas de passos sequenciais (todas as etapas, finalização) ---- */

.checklist-numerada {
  margin: 10px 0 12px 0;
  padding-left: 22px;
  color: #333;
}

.checklist-numerada li {
  margin-bottom: 6px;
}

.checklist-numerada ol {
  margin: 6px 0 0 0;
  padding-left: 18px;
  color: #555;
  font-size: 15px;
}

.checklist-numerada ol li {
  margin-bottom: 3px;
}

.destaque {
  font-weight: bold;
}

/* ---- Lista de orientações no painel de erro ---- */

.orientacoes {
  margin: 10px 0 0 0;
  padding-left: 20px;
  color: #555;
  font-size: 15px;
}

.orientacoes li {
  margin-bottom: 4px;
}

.ajuda {
  font-size: 14px;
  color: #777;
  margin-top: 8px;
}

/* ---- Painel de sucesso ---- */

#sucesso {
  background: #eafaf0;
  border: 1px solid #b7ebc9;
  border-radius: 8px;
  padding: 16px 20px;
  color: #226b3f;
  font-size: 15px;
}

/* ---- Painel de erro / bloqueio ---- */

#erro {
  border-radius: 8px;
  padding: 16px 20px;
  border-left: 4px solid #999;
  background: #f7f7f7;
}

#erroTitulo {
  font-weight: bold;
  font-size: 18px;
  margin: 0 0 6px 0;
}

#erroTexto {
  margin: 0;
  color: #444;
}

.detalhe-tecnico {
  font-size: 12px;
  color: #999;
  margin-top: 10px;
  font-family: monospace;
}

/* Erro real: algo deu errado de fato */
#erro.erro-real {
  border-left-color: #d9534f;
  background: #fdf2f2;
}

#erro.erro-real #erroTitulo {
  color: #b3362d;
}

/* Bloqueio temporário: proteção do sistema, não é falha */
#erro.bloqueio-temporario {
  border-left-color: #f0ad4e;
  background: #fef8ec;
}

#erro.bloqueio-temporario #erroTitulo {
  color: #9a6a1f;
}