:root {
  --bg: #F1F2FB;
  --text: #1A2B48;
  --muted: #5b6b7c;
  --primary: #115982;
  --card: #ffffff;
  --soft-shadow: rgba(0,0,0,0.06);
  --border: #cfd8e6;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  padding: 30px;
  color: var(--text);
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 1200px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
}
.header h1 {
  font-size: 38px;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: 0.2px;
}
.header p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

/* Card / Tool */
.card {
  background: var(--card);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 28px var(--soft-shadow);
  border: 1px solid #edf1f7;
}

.tool-box {
  display: flex;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.input-wrap, .output-wrap {
  flex: 1;
  min-width: 48%;
}

label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}

textarea {
  width: 100%;
  height: 340px;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
  resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17,89,130,.12);
}

/* Actions */
.bottom-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.action-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .06s ease, opacity .2s ease;
}
.action-btn:hover { opacity: .92; }
.action-btn:active { transform: translateY(1px); }
.clear-btn { background: #E04545 !important; }

/* Content Sections */
.content {
  margin-top: 26px;
}
.content h2 {
  font-size: 26px;
  margin: 22px 0 10px;
  font-weight: 800;
}
.content p {
  color: var(--text);
  font-size: 16px;
  margin: 0 0 10px;
}
.content .info-box {
  background: #f7f9ff;
  border: 1px solid #e2e8f5;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 10px;
  color: var(--text);
}

.steps {
  padding-left: 18px;
  margin: 0 0 6px;
}
.steps li { margin: 6px 0; }

.features,
.use-cases {
  list-style: none;
  padding: 0;
  margin: 0;
}
.features li,
.use-cases li {
  padding: 10px 12px;
  border: 1px solid #e9eef7;
  background: #fbfcff;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* Examples Table */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #ecf1f8;
  background: #fff;
}
table.examples {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table.examples thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f3f6fd;
  border-bottom: 1px solid #e3e9f6;
}
table.examples tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4fb;
}

/* FAQ */
.faq details {
  border: 1px solid #e9eef7;
  background: #fbfcff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .input-wrap, .output-wrap { min-width: 100%; }
  textarea { height: 260px; }
  .header h1 { font-size: 32px; }
}

/* ✅ Footer */
.site-footer {
  width: 100%;
  text-align: center;
  padding: 22px 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
