/* Tool page card */
.rp-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  max-width: 600px;
}

.rp-back {
  display: inline-block;
  margin-bottom: 12px;
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

.rp-back:hover {
  color: #0052a3;
  text-decoration: underline;
}

.rp-options {
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.rp-row {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.rp-row:first-child {
  margin-top: 0;
}

.rp-label {
  min-width: 70px;
  font-weight: 600;
  font-size: 14px;
}

.rp-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.18);
}

.rp-checks {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.rp-checks label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.rp-checks label:hover {
  background: rgba(0, 0, 0, 0.03);
}

.rp-checks input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.rp-slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  max-width: 420px;
}

.rp-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #000;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.rp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0066cc;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.rp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.rp-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0066cc;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s ease;
}

.rp-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.rp-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #000;
}

.rp-slider-value {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  min-width: 32px;
  text-align: center;
}

.rp-password-display {
  margin: 24px 0;
}

.rp-display-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rp-password-output {
  background: #f8f9fa;
  border: 2px solid #e1e4e8;
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  word-break: break-all;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rp-password-output[data-empty="false"] {
  background: #fff;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.rp-placeholder {
  color: #999;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: normal;
  letter-spacing: normal;
}

.rp-password-output .symbol {
  color: #0066cc;
  font-weight: 700;
}

.rp-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.rp-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-btn--primary {
  background: #0066cc;
  color: #fff;
}

.rp-btn--primary:hover {
  background: #0052a3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.rp-btn--primary:active {
  transform: translateY(0);
}

.rp-btn--secondary {
  background: #fff;
  color: #111;
  border: 2px solid #e1e4e8;
}

.rp-btn--secondary:hover:not(:disabled) {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-1px);
}

.rp-btn--secondary:active:not(:disabled) {
  transform: translateY(0);
}

.rp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  background: #e5e5e5 !important;
  color: #999 !important;
  border-color: #e5e5e5 !important;
}

.rp-msg {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #28a745;
  font-weight: 500;
}

.rp-btn--primary:focus,
.rp-btn--primary:active,
.rp-btn--primary:focus-visible {
  background: #0066cc !important;
  color: #fff !important;
  outline: none;
}

.rp-btn--secondary:focus,
.rp-btn--secondary:active,
.rp-btn--secondary:focus-visible {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #e1e4e8 !important;
  outline: none;
}

.rp-btn--secondary:focus:hover,
.rp-btn--secondary:active:hover {
  background: #111 !important;
  color: #fff !important;
}

.rp-btn--primary,
.rp-btn--secondary {
  box-shadow: none !important;
}

.rp-btn--primary:focus {
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3) !important;
}

@media (max-width: 520px) {
  .rp-actions {
    flex-direction: column;
  }

  .rp-password-output {
    font-size: 16px;
    letter-spacing: 1px;
    padding: 16px;
  }

  .rp-card {
    padding: 18px;
  }
}

.rp-wrap {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 16px;
}

.rp-back {
  display: inline-block;
  margin-bottom: 24px; /* increased spacing */
  margin-left: -4px; /* pull it left slightly */
  text-decoration: none;
  color: #0066cc;
  font-weight: 500;
}

.rp-card {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  max-width: 600px;
}