.username-generator-page {
  color: #eee;
  background: #1b1b1b;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 960px;
  margin: 0 auto;
  font-family: 'Segoe UI', sans-serif;
}

.username-generator-page h1,
.username-generator-page h2,
.username-generator-page legend {
  color: #fff;
  margin-bottom: 0.5rem;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group,
.control-group-inline {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.control-group-inline {
  flex-direction: row;
  gap: 1rem;
}

.control-group-inline .control-group {
  flex: 1;
}

.control-group label {
  font-weight: 600;
  color: #ccc;
}

.control-group input[type="text"],
.control-group input[type="number"],
.control-group input[type="range"],
.control-group select {
  padding: 0.5rem;
  background: #2c2c2c;
  border: 1px solid #444;
  border-radius: 5px;
  color: #eee;
  width: 100%;
}

.control-group input[type="range"] {
  cursor: pointer;
}

.control-group input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: #4af;
}

.control-group-group {
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 0.75rem;
  background: #232323;
}

.control-group-group legend {
  font-size: 1.1rem;
  font-weight: bold;
  color: #ddd;
  padding: 0 0.5rem;
}

button {
  padding: 0.5rem 1rem;
  border: none;
  background: #4a90e2;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #357abf;
}

.results-panel,
.favorites-panel {
  background: #262626;
  padding: 1rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 5px #000;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.results-header h2 {
  margin: 0;
}

.results-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.username-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.name-entry {
  background: #2d2d2d;
  border: 1px solid #3a3a3a;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name-entry span {
  font-family: monospace;
  font-size: 1.1rem;
  word-break: break-word;
}

.name-entry button {
  font-size: 0.9rem;
  margin-left: 0.3rem;
  padding: 0.3rem 0.6rem;
  background: #3d3d3d;
  color: #ddd;
}

.name-entry button:hover {
  background: #4a90e2;
  color: #fff;
}

.starred {
  color: gold;
}

.tool-section.how-to-use {
  background: #1c1c1c;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid #333;
  margin-top: 2rem;
}

.tool-section.how-to-use h2 {
  margin-bottom: 0.5rem;
}

.tool-section.how-to-use ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.tool-section.how-to-use li {
  margin-bottom: 0.5rem;
}
