* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.app {
  max-width: 480px;
  margin: auto;
  padding: 10px;
}

/* TEXT INPUT */
textarea {
  width: 100%;
  height: 160px;
  padding: 12px;
  font-size: 16px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  resize: none;
}

/* PRESETS */
.presets {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.presets button {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  background: #222;
  color: #fff;
  border: none;
}

.presets button.active {
  background: #444;
  font-weight: bold;
}

/* ACTION BUTTONS */
.actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.actions button {
  flex: 1;
  padding: 14px 0;
  font-size: 14px;
  border: none;
  background: #2a2a2a;
  color: #fff;
}

.actions button.primary {
  background: #3f3f3f;
  font-weight: bold;
}

/* HISTORY */
.history {
  margin-top: 12px;
}

.history-title {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 4px;
}

#historyList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#historyList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #181818;
  padding: 8px;
  margin-bottom: 4px;
  font-size: 14px;
  gap: 8px;
}

#historyList span {
  flex: 1;
}

#historyList button {
  padding: 6px 10px;
  font-size: 12px;
  border: none;
  background: #333;
  color: #fff;
}

#historyList button:last-child {
  background: #442222;
}

/* SMALL SCREEN */
@media (max-width: 360px) {
  textarea {
    height: 140px;
  }
}
