.box {
  text-align: center;
  width: 340px;
  max-width: 95%;
  margin: 0 auto;
}

input[type="text"] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 6px;
}

input[readonly] {
  border: 2px solid #ccc;
  font-size: 14px !important;
  outline: none;
  box-shadow: none;
  text-align: center;
}
input[readonly]:focus {
  border: 2px solid #008000;
}

.options {
  text-align: left;
  font-size: 15px;
  margin-bottom: 20px;
}

.toggle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.toggle-option:hover {
  background-color: #e9e9e9;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #634fa1;
}

.switch input:checked + .slider:before {
  transform: translateX(18px);
}

.options input[type="number"]  {
  width: 70px;
  padding: 6px;
  font-size: 15px;
  border-radius: 6px;
  border: 2px solid #634fa1;
  background: #fff;
  text-align: center;
}

.options input[type="number"]:focus {
  border: 2px solid #634fa1;
  outline: none;
}

button {
  padding: 10px 20px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 5px;
  transition: background 0.2s;
}

.generate {
  background-color: #109ea5;
  color: #fff;
}

.generate:hover {
  background-color: #0c8c94;
}

.copy {
  background-color: #efb227;
  color: #000;
}

.copy:hover {
  background-color: #e0a71d;
}

button.genpass-btn {
    background-color: #fdc620;
    color: #43413d;
    cursor: pointer !important;
    padding: 10px 25px;
    letter-spacing: .1em;
    user-select: none;
    right: 10px;
    float: right;
    margin-top: 15px;
}
button:hover {
    background-color: #ffd863;
    color: #43413d;
}

.message {
  font-size: 16px;
  color: #008000;
  margin-top: 10px;
  height: 18px;
}