  .resistor {
    display: flex;
    /* height: 60px; */
    width: 10px;
    background-color: #f0d9b5;
    border-radius: 5px;
    margin: 10px auto;
    position: relative;
    align-items: center;
  }
  
  .band {
    height: 100%;
    width: 20px;
    margin: 0 -5px;
    z-index: 2;
  }
  
  
  .controls button {
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
  }
  
  .controls button.active {
    background-color: #2E7D32;
  }
  
  select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
  }
  
  .result {
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0;
    text-align: center;
  }
  
  .band-container {
    display: none;
  }
  
  .band-container.active {
    display: block;
  }
  /* ==============================
   Página Calculadora de Resistor
   ============================== */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #fdfdfd;
    margin: 0;
    padding: 0;
}

.resistor-page .container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 15px;
}

h1 {
    text-align: center;
    font-weight: 700;
    margin-bottom: 25px;
    color: #333;
}

/* ==============================
   Controles de Bandas
   ============================== */
.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls button {
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background 0.3s;
}

.controls button.active,
.controls button:hover {
    background-color: #2E7D32;
}

/* ==============================
   Bandas do Resistor
   ============================== */
.band-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
    color: #444;
}

.band-container select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #fff;
}

/* ==============================
   Resistor visual
   ============================== */
.resistor {
    display: flex;
    height: 40px;
    width: 100%;
    max-width: 400px;
    background-color: #f0d9b5;
    border-radius: 10px;
    margin: 20px auto;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.band {
    flex: 1;
    margin: 0 2px;
    border-radius: 3px;
}

/* ==============================
   Resultado
   ============================== */
.result {
    font-size: 1.2em;
    font-weight: bold;
    margin: 25px 0;
    text-align: center;
    color: #222;
}

/* ==============================
   Responsividade
   ============================== */
@media (max-width: 768px) {
    .resistor-page .container {
        padding: 0 10px;
    }

    h1 {
        font-size: 1.5em;
    }

    .controls button {
        padding: 6px 12px;
        font-size: 13px;
        margin: 0 3px;
    }

    .resistor {
        height: 30px;
        max-width: 300px;
    }

    .band-container select {
        font-size: 13px;
    }

    .result {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .controls button {
        padding: 5px 10px;
        font-size: 12px;
    }

    .resistor {
        height: 25px;
        max-width: 250px;
    }
}
