body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 420px;
  margin: 80px auto;
  padding: 20px;
}
h1 {
  text-align: center;
  margin-bottom: 5px;
}
.description {
  text-align: center;
  margin-top: 0;
  white-space: nowrap;
}

/* 홈 버튼 */
.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.3em;
  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);
}
.home-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-30deg);
  animation: shine 3s infinite;
}
@keyframes shine {
  0%   { left: -75%; }
  50%  { left: 125%; }
  100% { left: -75%; }
}
@media (max-width: 600px) {
  .home-button {
    font-size: 1.1em;
    padding: 10px 16px;
    top: 10px;
  }
}

/* 토글 버튼 */
.toggle {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 10px 0;
}
.toggle button {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  background: #fafafa;
  cursor: pointer;
}
.toggle button.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* 입력창 */
.input-area {
  text-align: center;
  margin: 10px 0;
}
.input-area input {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  font-size: 1rem;
  text-align: right;
  box-sizing: border-box;
}

/* 결과 영역 */
.result-area {
  margin: 20px 0;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #f9f9f9;
  overflow: hidden;
}
.result-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.result-row:last-child {
  border-bottom: none;
}
.result-row.total {
  background-color: #eef6ff;
  font-weight: bold;
}
.result-row .label {
  flex: 1;
}
.result-row .value {
  flex: 1;
  text-align: right;
  font-family: 'Courier New', monospace;
}

/* 복사 버튼 */
#copy-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

/* 안내 문구 */
.notice-box {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 12px;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* toast message */
.toast {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.toast.show {
  display: block;
  opacity: 1;
}
