body {
  font-family: 'Courier New', monospace;
  background: #fdf6e3;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, #f0c674, #f7d794);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 4px solid #b58900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #5b4636;
}

header h2 {
  margin: 0.3rem 0 0;
  font-size: 1.2rem;
  color: #6f5e4d;
  font-style: italic;
}

header p {
  margin-top: 0.5rem;
  color: #5b4636;
}

/* ===== MAIN LAYOUT ===== */
main {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
}

/* ===== TEXTAREA & BUTTONS ===== */
textarea {
  width: 100%;
  min-height: 140px;
  padding: 0.75rem;
  border: 2px dashed #b58900;
  background: #fffaf0;
  resize: vertical;
  border-radius: 6px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

button {
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  background: #b58900;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #a17900;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(1px);
}

/* ===== SECTIONS ===== */
.special-tokens, .input-area, .results {
  flex: 1 1 300px;
  background: #fff8dc;
  padding: 1rem;
  border: 2px solid #b58900;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.result-box {
  background: #fffaf0;
  border: 2px solid #b58900;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

td, th {
  border: 1px solid #b58900;
  padding: 6px;
  text-align: left;
}

th {
  background: #f0c674;
}

/* ===== SPECIAL TOKEN LIST ===== */
ul {
  padding-left: 20px;
  margin-top: 0.5rem;
}

ul li {
  margin-bottom: 0.2rem;
  background: #fdf1c9;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
  font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 0.5rem;
  background: linear-gradient(135deg, #f0c674, #f7d794);
  margin-top: 1rem;
  border-top: 3px solid #b58900;
  font-size: 0.9rem;
  color: #5b4636;
}
