body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

h1, h2, h3 {
  color: #333;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #0056b3;
}

.welcome-screen {
  text-align: center;
  padding: 50px;
  background-color: #fff;
  box-shadow: 0 0 10px #ccc;
  max-width: 600px;
  margin: auto;
}

.form-section {
  background-color: #fff;
  padding: 30px;
  max-width: 700px;
  margin: 30px auto;
  box-shadow: 0 0 10px #ccc;
}

.preview-section {
  background-color: #fff;
  padding: 30px;
  max-width: 800px;
  margin: 30px auto;
  box-shadow: 0 0 10px #ccc;
}

.preview-layout {
  display: flex;
  gap: 30px;
}

.sidebar {
  width: 200px;
}

.sidebar img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 10px 0;
  cursor: pointer;
  color: #007bff;
}

.sidebar li:hover {
  text-decoration: underline;
}

.content {
  flex: 1;
}

input, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

.bloco-dinamico {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 15px;
  background-color: #f9f9f9;
}

/* Botões de ação */
button.adicionar {
  background-color: #28a745; /* verde */
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
}

button.adicionar:hover {
  background-color: #218838;
}

button.excluir {
  background-color: #dc3545; /* vermelho */
  color: white;
  border: none;
  padding: 8px 16px;
  margin-top: 10px;
  cursor: pointer;
}

button.excluir:hover {
  background-color: #c82333;
}

button.salvar-html {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

button.salvar-html:hover {
  background-color: #0056b3;
}


@media (max-width: 768px) {
  .preview-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    text-align: center;
    box-shadow: none;
    border-bottom: 1px solid #ccc;
  }

  .sidebar img {
    max-width: 120px;
    margin: 10px auto;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .sidebar li {
    flex: 1 1 45%;
    margin: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
  }

  .content {
    padding: 20px;
  }

  button.salvar-html {
    width: 90%;
    margin: 10px auto;
    display: block;
  }
}

.preview-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #f4f4f4;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  display: block;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  text-align: center;
  font-size: 15px;
}

.sidebar li:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

.content {
  flex: 1;
  padding: 30px;
}



@media (max-width: 768px) {
  .sidebar ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* dois por linha */
    gap: 10px;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .sidebar li {
    background-color: #007bff;
    color: white;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
  }

  .sidebar li:hover {
    background-color: #0056b3;
    transform: scale(1.03);
  }

  .sidebar {
    width: 100%;
    padding: 10px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    box-shadow: none;
    text-align: center;
  }

  .content {
    padding: 20px;
  }
}


#sectionTitle {
  font-size: 24px;
  color: #2c3e50;
  border-left: 6px solid #3498db;
  padding-left: 12px;
  margin-bottom: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

#sectionTitle::before {
  content: "📌";
  font-size: 22px;
}



/* Estilo para blocos com mãozinha e marcadores */
#sectionBody p {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
}

/* Negrito apenas na linha da mãozinha */
#sectionBody p span.maozinha {
  font-weight: bold;
  display: block;
  margin-bottom: 4px;
}

/* Marcadores circulares */
#sectionBody p span.marcador {
  display: block;
  margin-left: 20px;
  color: #555;
}


/* Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6fa;
}

/* Tela de boas-vindas */
.welcome-screen {
  background-color: #ffffff;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 500px;
  width: 90%;
  margin: 80px auto;
  animation: fadeIn 0.6s ease-in-out;
}

.welcome-screen h1 {
  font-size: 2.2em;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

.welcome-screen p {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.welcome-screen button {
  background: linear-gradient(to right, #4a90e2, #6fb1fc);
  border: none;
  color: white;
  padding: 14px 32px;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.welcome-screen button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Título principal */
.form-section h2 {
  font-size: 2.2em;
  color: #2c3e50;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-bottom: 6px solid #4a90e2;
  padding-bottom: 12px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Subtítulos das seções */
.form-section h3 {
  font-size: 1.65em;
  color: #34495e;
  margin-top: 36px;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: center;
  position: relative;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.04);
}

.form-section h3::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #4a90e2;
  margin: 10px auto 0;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Campos de entrada */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  width: 90%;
  max-width: 600px;
  margin: 10px auto;
  display: block;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Campos de entrada padrão */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  font-size: 1.1em; /* aumenta para ~17.6px */
  line-height: 1.5;
}

/* Campos de texto maiores */
textarea#sobre,
textarea#objetivos,
textarea#observacoes {
  height: 160px;
  font-size: 1.1em; /* iguala ao padrão */
}

input:focus,
textarea:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.3);
  outline: none;
}

/* Botões gerais */
button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: fit-content;
  min-width: 160px;
}

button:hover {
  background-color: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Botões de ação específicos */
.adicionar,
.botao-excluir {
  background-color: #e74c3c;
}

.adicionar:hover,
.botao-excluir:hover {
  background-color: #c0392b;
}

/* Botão excluir refinado */
.botao-excluir {
  padding: 8px 14px;
  font-size: 0.85em;
  margin: 16px auto 0;
  width: 10%;
  min-width: 160px;
}

/* Navegação entre etapas */
.navegacao {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.navegacao button {
  margin: 0;
}
.subtitulo-etapas {
  text-align: center;
  font-size: 1.2em;
  color: #555;
  margin-top: -20px;
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: 0.5px;
}


.progress-bar-container {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.progress-bar {
  height: 8px;
  background: linear-gradient(to right, #4a90e2, #6fb1fc);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.9em;
  color: #888;
}

.progress-steps span {
  width: 24px;
  height: 24px;
  background-color: #ddd;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.progress-steps span.active {
  background-color: #4a90e2;
  color: white;
}

.salvar-html {
  display: inline-block;
  padding: 12px 20px;
  margin: 10px;
  font-size: 1em;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.salvar-html:hover {
  background-color: #357ab8;
  transform: scale(1.03);
}


.titulo-secao {
  position: relative;
  background-color: #f9f9f9;
  border: 2px solid #4a90e2;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 40px auto 20px;
  max-width: 600px;
  text-align: center;
  font-size: 1.6em;
  font-weight: 600;
  color: #2c3e50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Linha decorativa abaixo do título */
.titulo-secao::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #4a90e2;
  margin: 12px auto 0;
  border-radius: 2px;
}


.titulo-principal {
  font-size: 2rem !important;
  text-align: center;
  margin: 30px auto;
  color: #2c3e50;
  max-width: 90%;
  line-height: 1.3;
}

/* Tablets */
@media screen and (max-width: 768px) {
  .titulo-principal {
    font-size: 1.7rem !important;
  }
}

/* Celulares */
@media screen and (max-width: 480px) {
  .titulo-principal {
    font-size: 1.5rem !important;
  }
}


