/* passphrase_generator.css */

.passphrase-generator-page {
  padding: 2rem;
  color: #eee;
  font-family: 'Segoe UI', sans-serif;
  background-color: transparent;
}

.passphrase-generator-page h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.control-group {
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.control-group legend {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.control-group label {
  display: block;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.control-group input[type="range"] {
  width: 100%;
}

.control-group input[type="text"],
.control-group select {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #555;
  background: #2c2c2c;
  color: #eee;
  font-size: 0.95rem;
}

.checkboxes label {
  display: flex;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.checkboxes input[type="checkbox"] {
  margin-right: 0.5rem;
}

#structurePreview {
  font-family: monospace;
  background: #2a2a2a;
  color: #ccc;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

#generateBtn {
  width: 100%;
  padding: 0.6rem;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
}

#generateBtn:hover {
  background: #357abd;
}

.output {
  margin-bottom: 2rem;
}

.pass-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.pass-box {
  flex: 1;
  background: #1b1b1b;
  color: #eee;
  padding: 0.5rem;
  border: 1px solid #444;
  border-radius: 4px;
  font-family: monospace;
}

.pass-copy-btn {
  padding: 0.4rem 0.6rem;
  background: #444;
  color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pass-copy-btn:hover {
  background: #666;
}

.entropy-meter {
  margin-bottom: 2rem;
}

.meter-bar {
  background: #333;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.4rem;
}

#entropyBar,
#batchEntropyBar {
  height: 100%;
  transition: width 0.3s ease;
  background: #888;
}

.copy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.copy-controls button {
  padding: 0.5rem 0.8rem;
  background: #3a3a3a;
  color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.copy-controls button:hover {
  background: #555;
}

.settings-note label,
.how-to-use p {
  font-size: 0.9rem;
  color: #bbb;
}

.how-to-use h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #fff;
}
