:root {
  --bg: #f9f9f9;
  --text: #1d1d1f;
  --accent: #0071e3;
  --light-border: #e0e0e0;
  --gray: #888;
  --gray-light: #999;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 40px 20px;
  max-width: 900px;
  margin-inline: auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

textarea {
  width: 100%;
  min-height: 120px;
  max-height: 400px;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid var(--light-border);
  border-radius: 12px;
  resize: none;
  overflow-y: auto;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 1rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat {
  font-size: 0.95rem;
}

.section-title {
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

button {
  padding: 8px 14px;
  font-size: 0.95rem;
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button:hover {
  background-color: #005bb5;
}

.input-group {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 1rem;
}

.input-group input {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid var(--light-border);
  border-radius: 8px;
  width: 100px;
}

.textarea-container {
  position: relative;
}

.button-section {
  display: flex;
  gap: 10px;
  padding: 1% 0;
  justify-content: flex-end;
}

.reset-btn,
.copy-btn {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: var(--gray-light);
  border: none;
  width: 34px;
  padding: 5px 7px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.reset-btn:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.reset-btn svg:hover {
  color: var(--gray);
}

.ti {
  font-size: 16px;
  stroke-width: 1.5;
  color: var(--text);
}

footer {
  text-align: center;
  margin-top: 5rem;
  padding: 1rem;
  color: #888;
  font-size: 14px;
}

@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
    align-items: flex-start;
  }
}