body {
  margin: 0;
  padding: 0;
  font-family: "Pretendard", sans-serif;
  background: #f5f7fb;
}

.top {
  text-align: center;
  background: #3c6ff9;
  padding: 30px 20px;
  color: white;
}

main {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
}

.box {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

textarea {
  width: 100%;
  height: 160px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  background: #3c6ff9;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

button:active {
  transform: scale(0.98);
}

.result {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.6;
}

.copy-btn {
  background: #444;
}

.loading {
  text-align: center;
}

.hidden {
  display: none;
}

.spinner {
  width: 34px;
  height: 34px;
  margin: 10px auto;
  border: 4px solid #ddd;
  border-top-color: #3c6ff9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.char-count {
  text-align: right;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

button.disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #334155;
}




@keyframes spin {
  to { transform: rotate(360deg); }
}
