body {
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  margin: 0;
}

/* NAVBAR */
.navbar {
  background: #1f2937;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links button {
  background: transparent;
  border: 1px solid #374151;
  color: #e5e7eb;
  padding: 6px 12px;
  margin-left: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-links button.active,
.nav-links button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* APP */
.app-section {
  max-width: 760px;
  margin: 18px auto;  /* reduced from 40px */
  padding: 16px;      /* reduced from 20px */
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.button-row button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
}

/* CARD */
.card {
  background: #fff;
  padding: 16px;
  margin-top: 16px;
  border-radius: 8px;
}

.hidden {
  display: none;
}

.section {
  margin-top: 10px;
  line-height: 1.5;
}

.incorrect { color: #b91c1c; }
.correct { color: #15803d; }
.reason { color: #374151; }
.alt { color: #1f2937; }

/* PRONUNCIATION */
.pronounce-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.stress {
  color: #dc2626;
  font-weight: bold;
}

/* 🔊 SPEAKER BUTTON */
.speaker {
  all: unset;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e5e7eb;
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
}

.speaker:hover {
  background: #2563eb;
  color: #fff;
}
/* ===============================
   TOOL SWITCH
================================ */
.tool-switch {
  margin-top: 40px;
  text-align: center;
}

.tool-switch h3 {
  margin-bottom: 16px;
  font-weight: 600;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 0 auto;
}

.tool-card {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.tool-card:hover {
  background: #f0f5ff;
  border-color: #2c6bed;
}

.tool-card.active {
  background: #2c6bed;
  color: white;
  border-color: #2c6bed;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.action-grid button {
  padding: 14px;
  font-size: 14px;
}
.hero {
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 16px;
  color: #444;
  max-width: 800px;
}
.listen-hint{
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
  cursor: pointer;
  user-select: none;
}

.listen-hint:hover{
  text-decoration: underline;
  color: #2563eb;
}
/* ===============================
   ✅ Guided Navigation / User Activity
================================ */
#guidedWrap {
  margin-top: 18px;
}

.guided-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.guided-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.guided-toggle input {
  transform: scale(1.1);
}

.guided-steps {
  margin: 10px 0 12px;
  line-height: 1.55;
}

.guided-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-wrap {
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 12px;
}

.progress-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-item {
  padding: 10px 12px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  font-size: 14px;
}

.progress-item.done {
  background: rgba(0, 200, 120, 0.10);
  border-color: rgba(0, 200, 120, 0.25);
  font-weight: 600;
}

.tip-line {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 120, 255, 0.08);
  border: 1px solid rgba(30, 120, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
}
/* ✅ Button styling upgrade (optional but recommended) */
.button-row button {
  flex: 1;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  transition: 0.2s;
}

.button-row button:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
/* ✅ Make tool button text bold */
.button-row button {
  font-weight: 700;
  font-size: 14px;
}
.guided-note{
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
}

/* ✅ Make Guided Mode note show below toggle */
.guided-toggle-wrap{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
