body {
  font-family: 'Pretendard', sans-serif;
  background-color: #f3f6fb;
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  text-align: center;
  margin-top: 80px;
  color: #003366;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.input-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.input-row input {
  flex: 1;
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: right;
}

input[type="date"] {
  width: 100%;
  padding: 0.6rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

button {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 1rem;
}
button:hover {
  background-color: #004999;
}

.highlight-check {
  background-color: #fff3cd;
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1rem;
}
.highlight-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  transform: scale(1.3);
  margin-right: 0.5rem;
  vertical-align: middle;
}

#result {
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hidden {
  display: none;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #999;
  font-size: 0.9rem;
}

.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;
  }
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.check-inline {
  font-size: 0.9rem;
  color: #333;
}
.check-inline input {
  transform: scale(1.2);
  margin-right: 0.3rem;
}
.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.input-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  font-size: 1rem;
  text-align: right;
}

.info-box {
  background: #f2f4f8;
  padding: 1.2rem;
  border-radius: 10px;
  margin-top: 2rem;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  color: #222;
}
.info-box h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}
.info-box ul {
  padding-left: 1rem;
}
.info-box li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}
.input-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.input-row div {
  display: flex;
  flex-direction: column;
}

.input-row label {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  color: #333;
}

input.invalid {
  border: 2px solid red !important;
  background-color: #ffecec;
}
.toast {
  visibility: hidden;
  min-width: 240px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px 16px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s ease, bottom 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}
