/* ==============================
   Estilo Global Básico
   ============================== */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 2rem;
  color: #222;
}

h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ==============================
   Escopo exclusivo da página de cálculo de resistor
   ============================== */
.resistor-page {
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
}

.resistor-page .container {
  max-width: 600px;
  margin: auto;
  margin-top: 100px;
  padding: 1.5rem;
  border-radius: 8px;
}

.resistor-page select,
.resistor-page label,
.resistor-page .resistor,
.resistor-page .result {
  display: block;
  margin-bottom: 1rem;
  width: 100%;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

select {
  width: 100%;
  padding: 0.4rem;
  margin-top: 0.3rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Desenho do resistor */
.resistor {
  margin: 1rem auto;
  width: 300px;
  height: 80px;
  background: #ddd;
  border-radius: 20px;
  position: relative;
  box-shadow: inset 0 0 15px #aaa;
}

/* Faixas coloridas */
.band {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.band1 { left: 60px; }
.band2 { left: 110px; }
.band3 { left: 160px; }
.band4 { left: 210px; }
.band5 { left: 260px; }
.band6 { left: 310px; }

/* Resultado */
.result {
  font-size: 1.3rem;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
}
