/* 홈 버튼 */
.home-button {
  position: fixed;
  top: 12px; left: 0; right: 0;
  margin: auto;
  width: fit-content;
  padding: 14px 24px;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.2em;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  z-index: 999;
}
.home-button:hover {
  background-color: #004999;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* 기본 구조 */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
}
header {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 1rem;
}
main {
  padding: 0 1rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  font-size: 1rem;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#outputText {
  background: #e9e9e9;
}

/* 버튼 스타일 */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.button-group button {
  flex: 1;
  min-width: 110px;
  padding: 0.6rem;
  font-size: 1rem;
  white-space: nowrap;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
  border: none;
}
.button-group button.active {
  background-color: #3498db;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.button-group button.active:hover {
  background-color: #2581c4;
}
.button-group button.inactive {
  background-color: #e0e0e0;
  color: #888;
  border: 1px solid #ccc;
  box-shadow: none;
}

/* 복사 버튼 */
#copyBtn {
  background-color: #0066cc;
  color: #fff;
}
#copyBtn:hover {
  background-color: #004999;
}

/* 푸터 중앙 */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #999;
  border-top: 1px solid #eee;
  margin-top: 2rem;
}
footer p {
  margin: 0 auto;
  text-align: center;
}

/* ✅ 토스트 알림 */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  z-index: 9999;
}
.toast.show {
  opacity: 1;
  bottom: 50px;
}
