/* ThinkaBell Password Generator — tool-specific styles */
/* Extracted from password-generator.php inline styles */

.pw-mode-seg {
  display: inline-flex;
  background: var(--moss-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pw-mode-btn {
  border: 0;
  background: transparent;
  color: var(--slate);
  font: 600 0.82rem var(--font-sans);
  padding: 0.42rem 1rem;
  border-radius: calc(var(--radius-full) - 3px);
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pw-mode-btn:hover {
  color: var(--primary-dark);
}

.pw-mode-btn[aria-pressed="true"],
.pw-mode-btn.is-active {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.pw-history {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}

.pw-history h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.pw-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 220px;
  overflow-y: auto;
}

.pw-history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}

.pw-history-item:hover {
  background: var(--moss-light);
}

.pw-history-item code {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pw-entropy-track {
  height: 10px;
  background: var(--moss-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.5rem 0;
}

.pw-entropy-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background 0.4s ease;
}

.pw-similar-opt {
  margin-top: 0.5rem;
}

.pw-passphrase-display {
  font-size: 1.1rem;
  line-height: 1.6;
  word-spacing: 0.5rem;
}

.pw-options-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}
