: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; }

html, body { height: 100%; }

body {
  background: var(--bg);
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 30px;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
}
.header h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 5px;
}
.header p {
  color: var(--muted);
  font-size: 16px;
}

/* Settings Bar */
.setting-bar {
  background: #fff;
  padding: 14px 22px;
  border-radius: 50px;
  border: 1px solid #dfe5ef;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 22px;
}

.setting-section {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.setting-title {
  font-weight: 800;
  margin-right: 5px;
}

/* Tool Section */
.card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #edf1f7;
  box-shadow: 0 8px 28px var(--soft-shadow);
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.input-wrap, .output-wrap {
  flex: 1;
  min-width: 48%;
}

label {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
}

textarea {
  width: 100%;
  height: 320px;
  padding: 16px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--border);
  resize: vertical;
}

/* Buttons */
.bottom-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.action-btn {
  background: var(--primary);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.clear-btn {
  background: #E04545 !important;
}

/* Content Sections */
.content { margin-top: 35px; }

.content h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}
.content p, .content li {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--text);
}

.info-box {
  background: #f7f9ff;
  border: 1px solid #e2e8f5;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 10px;
}

.use-cases, .features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-cases li, .features li {
  background: #fbfcff;
  border: 1px solid #e9eef7;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.steps { padding-left: 18px; }

/* FAQ */
.faq details {
  border: 1px solid #e9eef7;
  background: #fbfcff;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 15px 0;
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

/* Responsive */
@media(max-width: 768px){
  .setting-bar {
    flex-direction: column;
    gap: 10px;
    border-radius: 18px;
  }
  textarea {
    height: 260px;
  }
}
