/* Text Reverser — styles */
.page { max-width: 800px; margin: 32px auto; padding: 0 20px; }
.page h1 { font-size: 36px; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.page .subtitle { color: #888; font-size: 15px; margin-bottom: 24px; }
.page label {
  display: block; font-size: 12px; color: #aaa; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.mode-tabs {
  display: flex; gap: 6px; margin-bottom: 22px;
  background: #141414; border: 1px solid #262626; border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.mode-tab {
  padding: 8px 16px;
  background: transparent; border: none; color: #999;
  font-size: 13px; font-weight: 500;
  border-radius: 7px; cursor: pointer;
  font-family: inherit; transition: all 0.15s;
}
.mode-tab:hover { color: #fff; }
.mode-tab.active { background: #ff4444; color: #fff; }

#in, #out {
  width: 100%; min-height: 160px;
  background: #141414; border: 1px solid #262626;
  color: #e1e1e1; font-size: 14px; padding: 14px;
  border-radius: 10px; font-family: 'SF Mono', Monaco, monospace;
  resize: vertical; line-height: 1.6;
  outline: none;
}
#in:focus { border-color: #ff4444; }
#out { background: #0f0f0f; margin-bottom: 10px; }
.out-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 16px; margin-bottom: 8px;
}
.out-head label { margin: 0; }
.copy-btn {
  padding: 6px 14px; background: #1f1f1f; border: 1px solid #333;
  color: #ccc; font-size: 13px; font-weight: 500;
  border-radius: 6px; cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.copy-btn:hover { background: #2a2a2a; border-color: #444; color: #fff; }
.copy-btn.copied { border-color: #4ade80; color: #4ade80; }

@media (max-width: 600px) {
  .page h1 { font-size: 28px; }
  .mode-tabs { width: 100%; }
  .mode-tab { flex: 1; text-align: center; }
}
