/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

/* Títulos */
h1 {
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 20px;
}

/* Estrutura de formulário */
form {
  width: 100%;
}

fieldset {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
}

legend {
  font-weight: bold;
  font-size: 1.1em;
  padding: 0 10px;
}

/* Labels e inputs */
label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.95em;
}

input[type="text"],
input[type="number"],
input[type="file"],
select {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="checkbox"] {
  margin-right: 8px;
}

/* Botões */
button,
a button {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  background: #007BFF;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

button:hover,
a button:hover {
  background: #0056b3;
}

/* Estilo para áreas dinâmicas */
.tecido-item,
.faixa-item {
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
}

#resultado {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 0.95em;
}

#listaHistorico div {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

#listaHistorico button {
  margin-top: 8px;
  padding: 8px 12px;
  font-size: 0.95em;
  border: none;
  background: #007BFF;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

#listaHistorico button:hover {
  background: #0056b3;
}

/* Responsividade */
@media (max-width: 480px) {
  h1 {
    font-size: 1.3em;
  }

  button,
  input,
  select,
  label {
    font-size: 1em;
  }
}
