/* Basic page styling */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #0f172a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

/* The main card in the middle of the page */
.container {
  background-color: #1e293b;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  width: 90%;
  max-width: 350px;
  box-sizing: border-box;
}

h1 {
  text-align: center;
  font-size: 22px;
  color: #e2e8f0;
}

/* Box that holds the password and the copy button */
.result-box {
  display: flex;
  margin-bottom: 20px;
}

#password {
  flex: 1;
  padding: 10px;
  font-size: 15px;
  background-color: #0f172a;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
}

#password::placeholder {
  color: #64748b;
}

#copyBtn {
  padding: 10px 15px;
  border: none;
  background-color: #475569;
  color: #ffffff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#copyBtn:hover {
  background-color: #334155;
}

/* Password strength meter */
.strength-track {
  width: 100%;
  height: 8px;
  background-color: #334155;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

#strengthBar {
  width: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

#strengthText {
  font-size: 13px;
  text-align: center;
  min-height: 16px;
  margin: 0 0 15px 0;
}

/* Each option row (length and checkboxes) */
.option {
  margin-bottom: 15px;
  font-size: 14px;
  color: #cbd5e1;
}

.option label {
  cursor: pointer;
}

/* Make the checkboxes and slider match the theme */
.option input {
  accent-color: #6366f1;
}

#length {
  width: 100%;
  margin-top: 5px;
}

/* Validation message */
#message {
  color: #f87171;
  font-size: 14px;
  text-align: center;
  min-height: 18px;
}

/* Generate button */
#generateBtn {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#generateBtn:hover {
  background-color: #4f46e5;
}
