.password-generator {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  font-family: system-ui, -apple-system, sans-serif;
  color: #333;
}

.password-display {
  display: flex;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

#generatedPassword {
  flex: 1;
  padding: 12px 15px;
  border: none;
  font-size: 16px;
  background: #f9f9f9;
}

#copyButton {
  background: #4a6bff;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

#copyButton:hover {
  background: #e0e0e0;
}

.controls {
  background: #fff;
  padding: 0;
}

.length-control {
  margin-bottom: 15px;
}

.length-control label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

#passwordLength {
  width: 100%;
  height: 8px;
  cursor: pointer;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;
}

#generateBtn {
  width: 100%;
  padding: 12px;
  background: #4a6bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

#generateBtn:hover {
  background: #3a5bef;
}

@media (max-width: 480px) {
  .password-generator {
    padding: 15px;
  }
  
  #generatedPassword {
    padding: 10px 12px;
    font-size: 15px;
  }
}