/* ======================================================
   PASSWORD GENERATOR — Tool-specific styles only
   Works with common.css + tools-common.css
====================================================== */

/* Title inside tool card */
.tool-card .title {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.tool-card .title a {
  color: var(--primary);
  text-decoration: none;
}

/* Length field */
.field {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field label {
  font-weight: 600;
}

.input-number {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  width: 90px;
  text-align: center;
  font-size: 1rem;
  background: var(--bg-page);
  color: var(--text-main);
}

/* Options grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Generate button */
.btn-generate {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-generate:hover {
  opacity: 0.95;
}

/* Password output */
.password-display {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  border: 2px dashed var(--border);
  font-family: monospace;
  font-size: 1.1rem;
  background: var(--bg-page);
  word-break: break-all;
  display: none;
}

/* Copy / Hide buttons */
.actions {
  display: none;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

.btn-action {
  padding: 10px 22px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
}

.btn-copy {
  background-color: #10b981;
}

.btn-toggle {
  background-color: #6b7280;
}

/* Status message */
.message {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}
