* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #020617;
  border-bottom: 1px solid #1e293b;
}

.tool-header > div {
  min-width: 0;
}

.tool-header h1 {
  margin: 8px 0 4px;
  font-size: clamp(23px, 7vw, 32px);
  white-space: nowrap;
}

.tool-header p {
  margin: 0;
  color: #94a3b8;
}

@media (max-width: 430px) {
  .tool-header h1 {
    font-size: 27px;
  }

  .tool-header p {
    font-size: 13px;
    line-height: 1.35;
  }
}

.back-link {
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.status-pill {
  background: #064e3b;
  color: #a7f3d0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: bold;
}

.tool-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tool-card {
  background: #111827;
  border: 1px solid #263244;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.eyebrow {
  color: #38bdf8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.tool-card h2 {
  margin: 12px 0 24px;
  font-size: 26px;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #cbd5e1;
  font-weight: bold;
}

input[type="text"],
textarea {
  width: 100%;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
}

textarea {
  resize: none;
  min-height: 110px;
}

input[type="range"] {
  width: 100%;
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.checkbox-grid label {
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 9px 12px;
  cursor: pointer;
}

.checkbox-grid input {
  margin-right: 8px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-row2 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
}

.output-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

button {
  padding: 12px 18px;
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
}

button:hover {
  background: #67e8f9;
}

.secondary-btn {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
}

.secondary-btn:hover {
  background: #334155;
}

.danger-btn {
  background: #7f1d1d;
  color: #fecaca;
}

.danger-btn:hover {
  background: #991b1b;
}

.strength-box {
  margin-top: 20px;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

#strengthLabel {
  color: #67e8f9;
}

.copy-message {
  color: #a7f3d0;
  min-height: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
}

@media (max-width: 800px) {
  .tool-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }
}


.bottom-back-container {
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 20px;
}

.bottom-back-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #111827;
  border: 1px solid #263244;
  color: #38bdf8;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: bold;
  transition: 0.2s ease;
}

.bottom-back-button:hover {
  border-color: #38bdf8;
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.12);
}
