/* this css is made by ChatGpt  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  width: 100%;
  max-width: 500px;
}

h1 {
  color: #2d3748;
  text-align: center;
  margin-bottom: 0.5rem;
}

h3 {
  color: #4a5568;
  text-align: center;
  font-weight: 400;
  margin-bottom: 2rem;
}

.output-section {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

#generated-password {
  flex: 1;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.2rem;
  letter-spacing: 1px;
  outline: none;
  transition: all 0.3s ease;
}

#generated-password:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

button {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: #667eea;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:hover {
  background: #764ba2;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

.input-section {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 12px;
}

h2 {
  color: #2d3748;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.slider-section {
  margin-bottom: 2rem;
}

#slider {
  width: 100%;
  margin-top: 0.5rem;
  /* -webkit-appearance: none; */
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
}

#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #667eea;
  cursor: pointer;
  transition: background 0.3s ease;
}

#slider::-webkit-slider-thumb:hover {
  background: #764ba2;
}

#slider-input {
  display: block;
  width: 60px;
  padding: 0.5rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
  margin: 0 auto 1rem;
  font-weight: bold;
}

.options-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.options-section label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a5568;
  padding: 0.5rem;
  border-radius: 8px;
  background: white;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.options-section label:hover {
  border-color: #667eea;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
  cursor: pointer;
}

@media (max-width: 480px) {
  .container {
      padding: 1.5rem;
  }

  .options-section {
      grid-template-columns: 1fr;
  }

  #generated-password {
      font-size: 1rem;
  }
}