:root {
  --bg: #F1F2FB;
  --text: #1A2B48;
  --muted: #5b6b7c;
  --primary: #3D49FF;
  --primary-soft: rgba(61,73,255, .15);
  --card: #ffffff;
  --soft-shadow: rgba(0,0,0,0.06);
  --border: #cfd8e6;
}

/* Core */
* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 30px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Container */
.page {
  width: 100%;
  max-width: 1200px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
}
.header h1 {
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 10px;
}
.header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* Toggle Pills */
.mode-switch {
  display: flex;
  justify-content: center;
  background: var(--primary-soft);
  border-radius: 14px;
  padding: 6px;
  width: fit-content;
  margin: 0 auto 25px;
}

.mode-btn {
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: .2s;
}
.mode-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Card Box */
.card {
  background: var(--card);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 8px 28px var(--soft-shadow);
  border: 1px solid #edf1f7;
}

/* ✅ FIXED: Textareas no longer overlap */
.tool-box {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.input-wrap,
.output-wrap {
  flex: 1;
  min-width: 48%;
}

label {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}

/* Textboxes */
textarea {
  width: 100%;
  height: 340px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px; /* ✅ Rounded individually */
  outline: none;
  resize: vertical;
  transition: .2s ease;
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61,73,255,.18);
}

/* Bottom action buttons */
.bottom-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.action-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: .1s ease;
}
.action-btn:hover { opacity: .92; }
.action-btn:active { transform: translateY(1px); }
.clear-btn { background: #E14545 !important; }

/* Content sections */
.content { margin-top: 30px; }

.content h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 25px 0 12px;
}

.content p {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Info box (example) */
.info-box {
  background: #f7f9ff;
  border: 1px solid #e2e8f5;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 15px;
}

/* Lists */
.use-cases, .features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.use-cases li, .features li {
  padding: 12px 14px;
  background: #fbfcff;
  border: 1px solid #e9eef7;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 15px;
}

/* Steps */
.steps {
  padding-left: 18px;
}
.steps li {
  margin: 6px 0;
}

/* FAQ block */
.faq details {
  background: #fbfcff;
  border: 1px solid #eaeffd;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
}

/* Copy Popup */
.copy-popup {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #4CD964; /* ✅ Light green success */
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 99999;
}

/* Footer */
.site-footer {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 900px) {
  .tool-box { flex-direction: column; }
  textarea { height: 260px; }
  .header h1 { font-size: 30px; }
}
