/* /style/random_password.css */

.random-password-page {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  color: #f0f0f0;
  background-color: #121212;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.random-password-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* --- Controls Panel --- */
.controls {
  background-color: #1c1c1c;
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.control-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ddd;
}

.checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  font-size: 0.9rem;
}

/* --- Inputs and Selects --- */
input[type="text"],
select {
  background-color: #181818;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.5rem;
  color: #f0f0f0;
  font-size: 0.95rem;
}

input[type="range"] {
  width: 100%;
}

/* --- Buttons --- */
button {
  background-color: #2a2a2a;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #444;
}

/* --- Password Output --- */
.output {
  background-color: #1c1c1c;
  padding: 1rem;
  border-radius: 8px;
  min-height: 60px;
}

.pw-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.pw-box {
  flex: 1;
  background-color: #181818;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.5rem;
  font-family: 'Courier New', monospace;
  color: #f0f0f0;
  font-size: 1rem;
}

.pw-copy-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* --- Meter and Entropy --- */
.strength-meter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#strengthLabel {
  font-size: 0.95rem;
}

.meter-bar {
  width: 100%;
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
}

#strengthBar {
  height: 100%;
  width: 0%;
  transition: width 0.3s;
  background-color: gray;
}

.entropy-info {
  font-size: 0.85rem;
  color: #aaa;
}

/* --- Character Pool Preview --- */
.char-preview {
  background-color: #181818;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 0.5rem;
  font-family: monospace;
  color: #ccc;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

/* --- Copy Controls --- */
.copy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.copy-controls button {
  white-space: nowrap;
}

/* --- Save Settings --- */
.settings-note {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* --- How to Use Section --- */
.how-to-use {
  background-color: #1c1c1c;
  padding: 1rem;
  border-left: 4px solid #555;
  border-radius: 6px;
}

.how-to-use h2 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.how-to-use p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

/* --- Responsive Fixes --- */
@media (max-width: 600px) {
  .pw-row {
    flex-direction: column;
    align-items: stretch;
  }

  .copy-controls {
    justify-content: center;
  }
}
