
.containerd {
  margin:auto ;
  justify-content: center;
  background-color: #f0fdfa;
  padding: 30px;
  border-radius: 15px;
  border: 1px solid #d1fae5;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
  max-width: 400px;
  width: 100%;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.output-box {
  display: flex;
  margin-bottom: 15px;
  border: 1px solid #d1fae5;
  border-radius: 20px;
}

#password {
  flex: 1;
  padding: 10px;
  background-color: #6b7280; /* Fixed typo: valid background-color */
  color: white;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 16px;
}

#copy {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  border-radius: 0 5px 5px 0;
}

.settings {
  margin-bottom: 20px;
}

.settings label {
  display: block;
  margin-bottom: 10px;
}

#generate {
  width: 100%;
  padding: 10px;
  background: #009688;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

/* Strength Indicator (Progress Bar) */
#strengthIndicator {
  margin-top: 10px;
  text-align: right;
  font-weight: bold;
  font-size: 14px;
  color: #333;
}

#strengthText {
  display: block;
  margin-bottom: 5px;
}

#progressBar {
  height: 12px;
  background: #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#progressBar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.weak #progressBar::before {
  width: 33%;
  background: #e74c3c; /* Red */
}

.good #progressBar::before {
  width: 66%;
  background: #f39c12; /* Orange */
}

.very-good #progressBar::before {
  width: 100%;
  background: #2ecc71; /* Green */
}

/* Modern Slider */
.slider-container {
  position: relative;
  margin-bottom: 15px;
}

.slider-container label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #333;
}

.range-wrapper {
  position: relative;
  width: 100%;
}

input[type="range"]#length {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #d1fae5 0%, #10b981 100%);
  border-radius: 5px;
  outline: none;
  margin: 10px 0;
  position: relative;
  transition: all 0.3s ease;
}

input[type="range"]#length::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 8px;
  background: transparent;
}

input[type="range"]#length::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 5px;
}

input[type="range"]#length::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]#length::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #10b981;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

input[type="range"]#length::-webkit-slider-thumb:hover,
input[type="range"]#length::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

input[type="range"]#length::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #10b981 calc((var(--value) - 4) / (32 - 4) * 100%), #d1fae5 calc((var(--value) - 4) / (32 - 4) * 100%));
}

input[type="range"]#length::-moz-range-progress {
  height: 8px;
  background: #10b981;
  border-radius: 5px 0 0 5px;
}