.generator-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox-group input {
  margin-right: 0.5rem;
}

.length-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.length-control input[type="range"] {
  flex: 1;
}

.length-control input[type="number"] {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.password-display {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  margin: 1.5rem 0;
  word-break: break-all;
  font-family: monospace;
  font-size: 1.2rem;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-secondary {
  background: #28a745;
}

.btn-secondary:hover {
  background: #218838;
}

.btn-copy {
  background: #ffc107;
  color: #212529;
}

.btn-copy:hover {
  background: #e0a800;
}

.strength-meter {
  margin: 1rem 0;
}

.strength-meter-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.strength-bar {
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s, background 0.3s;
}

.strength-text {
  font-weight: 500;
  text-align: right;
}

.presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.preset-btn {
  background: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.preset-btn:hover {
  background: #e0e0e0;
}

.preset-btn.active {
  background: #667eea;
  color: white;
}

@media (max-width: 768px) {
  .generator-container {
    padding: 1rem;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}
