/* Start custom CSS for html, class: .elementor-element-04ffa29 *//* Estilo general del contenedor */
#password-generator {
  max-width: 700px;
  margin: 0 auto;
  background-color: #f1fdf5;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: justify;
}

/* Título */
#password-generator h1 {
  text-align: center;
  color: #2563eb;
  font-size: 1.8em;
  margin-bottom: 10px;
}

/* Descripción */
#password-generator p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Slider de longitud */
.range-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 20px;
}

.range-container label {
  font-weight: bold;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #d1d5db;
  outline: none;
  transition: opacity .2s;
  margin: 0 10px;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
}

/* Interruptores (sliders tipo iOS) */
.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.toggle input {
  height: 0;
  width: 0;
  visibility: hidden;
}

.toggle label {
  cursor: pointer;
  text-indent: -9999px;
  width: 46px;
  height: 26px;
  background: #ccc;
  display: block;
  border-radius: 100px;
  position: relative;
}

.toggle label:after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

.toggle input:checked + label {
  background: linear-gradient(90deg, #2563eb, #10b981);
}

.toggle input:checked + label:after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}

/* Botones */
button {
  display: block;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-weight: 600;
  font-size: 1em;
  margin-top: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #1e4ed8;
}

.copy-btn {
  background: #10b981;
}

.copy-btn:hover {
  background: #0ea672;
}

/* Barra de fuerza */
#strength-bar {
  height: 10px;
  border-radius: 5px;
  margin-top: 15px;
  background-color: #e5e7eb;
}

#strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s;
}

.strength-text {
  text-align: center;
  font-size: 0.9em;
  margin-top: 5px;
}

/* Responsive */
@media (max-width: 600px) {
  #password-generator {
    padding: 20px;
  }
}/* End custom CSS */