@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #eef2f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header ── */
header {
  width: 100%;
  background: linear-gradient(135deg, #1e1e2e, #2e2e4e);
  padding: 28px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f5c842;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.title-icon {
  font-size: 2rem;
}

.subtitle {
  margin-top: 6px;
  color: #a9aabf;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ── Main ── */
main {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0 60px;
  gap: 24px;
}

/* ── Textarea ── */
textarea {
  width: 100%;
  height: 50vh;
  padding: 20px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c3e;
  background-color: #ffffff;
  border: 2px solid #d8dff0;
  border-radius: 16px;
  resize: vertical;
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s;
}

textarea:focus {
  border-color: #f5c842;
  box-shadow: 0 0 0 4px rgba(245, 200, 66, 0.2);
}

textarea::placeholder {
  color: #b0b8cc;
}

/* ── Button Group ── */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

button {
  padding: 12px 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1e1e2e;
  background-color: #f5c842;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 200, 66, 0.4);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

button:hover {
  background-color: #f0b800;
  box-shadow: 0 6px 20px rgba(245, 200, 66, 0.55);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(245, 200, 66, 0.3);
}

#save-text-file {
  background-color: #1e1e2e;
  color: #f5c842;
  box-shadow: 0 4px 14px rgba(30, 30, 46, 0.3);
}

#save-text-file:hover {
  background-color: #2e2e4e;
  box-shadow: 0 6px 20px rgba(30, 30, 46, 0.45);
}