:root {
  --green: #6aaa64;
  --green-dark: #538d4e;
  --yellow: #c9b458;
  --gray: #787c7e;
  --border: #e5e7eb;
  --bg: #f5f7fa;
  --black: #2a2a2a;
}

* {
  box-sizing: border-box;
}

.m-0 {
  margin: 0;
}

body {
  margin: 0;
  padding: 40px 20px;
  background: var(--bg);
  font-family: Inter, sans-serif;
}

.solver-container {
  max-width: 1000px;
  margin: auto;
}

.solver-header {
  text-align: center;
  margin-bottom: 30px;
}

.solver-header h1 {
  font-size: 56px;
  margin: 0;
}

.solver-header p {
  color: #666;
}

.solver-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.solver-form {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.solver-form .btn-search {
  flex: none; /* Menghilangkan flex: 1; agar tombol tidak melebar memenuhi sisa ruang */
  height: 52px;
  width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px; /* Mengatur jarak horizontal antara ikon dan teks */
  color: var(--green);
}

.svg-icon {
  display: inline-flex;
  align-items: center;
}

.contains-input {
  width: 100%;
  height: 52px;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 20px;
  margin-bottom: 8px;
}

.input-helper {
  color: var(--gray);
}

.position-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.position-grid input {
  width: 52px;
  height: 52px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  border: 2px solid #ccc;
  color: var(--black);
  border-radius: 10px;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  flex: 1;
  height: 58px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
}
.btn:focus, .btn:hover {
  background-color: var(--green-dark);
}

.btn-helper .active,
.btn-keyboard .active {
  background-color: var(--green-dark);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-secondary {
  background: var(--green);
  color: #fff;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-count {
  background: #eef7ee;
  color: var(--green-dark);
  padding: 6px 12px;
  border-radius: 8px;
}

.results-box {
  min-height: 220px;
  margin-top: 20px;
}

.word-grid-result {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.word-pill {
  padding: 12px;
  text-align: center;
  background: #f1f3f5;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.word-pill.highlight-helper {
  border: 1px solid var(--yellow); /* Warna kuning emas (seperti `--yellow` Tailwind/Wordle) */
  background-color: #f1edd1;
  box-shadow: 0 0 8px rgba(234, 179, 8, 0.3); /* Efek glow opsional */
}
.word-pill:hover {
  cursor: pointer;
}

.empty-state {
  display: flex;
  text-align: center;
  color: var(--gray);
  padding: 60px 20px;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state .svg-icon {
  width: 2.2rem;
  height: 2.2rem;
}
.empty-state span {
  display: flex;
}

.keyboard-card,
.helper-card {
  display: none;
}
.keyboard-card .show,
.helper-card .show {
  display: block;
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.keyboard button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 8px;
  background: #d3d6da;
  color: var(--black);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

.keyboard-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
}

.legend {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
}

.legend.green {
  background: var(--green);
}

.yellow {
  background: var(--yellow);
}

.legend.gray {
  background: var(--gray);
}/*# sourceMappingURL=wordle-solver.css.map */