
/* ==============================
   CONTAINER PRINCIPAL
   ============================== */
main.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ==============================
   BLOCO PADRÃO (cards)
   ============================== */
.types,
.form,
.preview {
  background-color: #1E293B; /* cinza escuro do modo painel */
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

h2 {
  font-weight: 600;
  color: #E5E7EB;
  margin-bottom: 1rem;
}

/* ==============================
   ABAS DE TIPO
   ============================== */
.types__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.type-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #1E293B;
  border-radius: 8px;
  background-color: #111827;
  color: #E5E7EB;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
}

.type-btn:hover {
  border-color: #F97316;
  cursor: pointer;
}

.type-btn.is-active {
  background-color: #F97316;
  color: #fff;
  border-color: #F97316;
}

/* ==============================
   FORMULÁRIO
   ============================== */
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #E5E7EB;
}

.field-row {
  margin-bottom: 1rem;
}

input[type="text"] {
  width: 100%;
  background-color: #111827;
  border: 1px solid #334155;
  color: #E5E7EB;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #F97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.3);
}

.hint {
  font-size: 0.85rem;
  color: #9CA3AF;
  margin-top: 0.25rem;
}

/* ==============================
   BOTÕES
   ============================== */
.btn {
  display: inline-block;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background-color: #F97316;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background-color: #fb8c35;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #334155;
  color: #E5E7EB;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #475569;
}

/* ==============================
   RESULTADO / PAINEL JSON
   ============================== */
.result-panel {
  background-color: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  color: #E5E7EB;
  min-height: 150px;
}

.result-panel .placeholder {
  text-align: center;
  color: #9CA3AF;
  font-style: italic;
  padding: 2rem 0;
}

.actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}


/* só mostra o painel ativo */
.form__panel {
  display: none;
}
.form__panel.is-active {
  display: block;
}
/* ===== COLUNA 1: Lista de tipos (CNPJ/CPF) ===== */

/* Zera bolinhas e espaços do UL */
.types__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Garante que os <li> não mostrem marcadores */
.types__list > li {
  list-style: none;
}

/* Botão "tile" escuro, preenchido igual à imagem 1 */
.type-btn {
  display: block;
  width: 100%;
  text-align: left;

  background-color: #0F1A2B;   /* azulado bem escuro */
  color: #E5E7EB;
  font-weight: 600;

  padding: 0.85rem 1rem;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.06);  /* borda sutil */
  outline: none;

  transition: box-shadow 0.2s ease, transform 0.08s ease, background-color 0.2s ease;
}

/* Hover: leve realce, sem mudar a cor do fundo */
.type-btn:hover {
  background-color: #122034;
  transform: translateY(-1px);
}

/* Foco via teclado: anel discreto */
.type-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35); /* laranja translúcido */
}

/* ATIVO: contorno laranja (sem preencher de laranja) */
.type-btn.is-active {
  background-color: #0F1A2B;
  box-shadow: 0 0 0 2px #F97316;   /* contorno laranja */
  border-color: transparent;
  color: #E5E7EB;
}

/* Versão compacta horizontal no mobile se quiser manter */
@media (max-width: 960px) {
  .types__list {
    flex-direction: column; /* mantém coluna no mobile, como a imagem 1 */
  }
}


/* ==============================
   RESPONSIVO
   ============================== */
@media (max-width: 960px) {
  main.container {
    grid-template-columns: 1fr;
  }

  .types__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .type-btn {
    flex: 1;
    text-align: center;
  }
}

