/* ===============================
   RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  max-width: 1200px;
  margin: 20px auto;
  font-family: system-ui, -apple-system, "Noto Sans KR", sans-serif;
  background-color: #f4f4f4;
  color: #111;
  line-height: 1.6;
}

/* ===============================
   TITLE
================================ */
h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #4caf50;
}

/* ===============================
   BOX (군적금 계산기 느낌)
================================ */
.box {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}



/* 시급 입력 줄은 두 칸 다 차지 */
.box>.row {
  grid-column: 1 / 3;
}

/* tax 박스 공통 스타일 */
.tax {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

/* 안쪽 정렬 */
.tax .row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===============================
   ROW / FORM
================================ */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  overflow: visible;
}

label {
  font-weight: 600;
}

/* ===============================
   INPUT / SELECT
================================ */
input[type="number"],
select {
  padding: 10px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fafafa;
}

input:focus,
select:focus {
  outline: 2px solid #4caf50;
  outline-offset: 1px;
}

/* ===============================
   RADIO / CHECKBOX
================================ */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #4caf50;
  cursor: pointer;
}

/* ===============================
   MODE TOGGLE (요일별 ↔ 고정근무)
================================ */
.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  font-weight: 600;
}

/* 스위치 */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* 바 */
.slider {
  position: absolute;
  inset: 0;
  background-color: #4caf50;
  /* 기본 초록 */
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.25s;
}

/* 동그라미 */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s;
}

/* 체크 시 파랑 + 이동 */
.switch input:checked+.slider {
  background-color: #2196f3;
}

.switch input:checked+.slider::before {
  transform: translateX(16px);
}

/* ===============================
   WORK CONTAINER
================================ */
#workContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===============================
   WORK CARD
================================ */
.work-row {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex: 1 1 320px;
  /* 최소 320px, 공간 있으면 늘어남 */
  max-width: 100%;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ===============================
   DAY / HOURS BADGE
================================ */
.day-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;

}

.day-hours {
  font-size: 13px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===============================
   TIME BOX
================================ */
.time-box {
  display: flex;

  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  min-width: 160px;
}

.time-box label {
  font-size: 13px;
  font-weight: 600;
}

/* ===============================
   AUTO TEXT BADGE
================================ */
.start-text,
.end-text {
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: 4px;
  white-space: nowrap;
}

/* ===============================
   BUTTON
================================ */
button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background-color: #4caf50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

button:hover {
  background-color: #43a047;
}

button:active {
  background-color: #66bb6a;
  transform: scale(0.97);
}

/* ===============================
   RESULT
================================ */
.result {
  font-size: 1.2em;
  font-weight: bold;
  color: #4caf50;
  display: flex;
}

.fixedYear {
  width: 90px;
  /* 짧게 */
  height: 44px;
  /* 손가락 터치용 */
  font-size: 18px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.hours-info {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #aaa;
}
/* input[type="time"] {
  height: 40px;
  padding: 0 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
} */

/* 포커스 시 */
/* input[type="time"]:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
} */
.seo-content {
  max-width: 900px;
  margin: 48px auto 32px;
  padding: 28px 24px;
  background: #fafafa;
  border-radius: 12px;
  line-height: 1.7;
  color: #333;
}

.seo-content h2 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  font-weight: 700;
  color: #111;
}

.seo-content p {
  margin: 10px 0;
  font-size: 0.95rem;
  color: #444;
}

.seo-content ul {
  margin: 12px 0 0 18px;
}

.seo-content li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.seo-content strong {
  color: #000;
  font-weight: 600;
}

.seo-content .trust {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #666;
}


/* ===============================
   MOBILE
================================ */
@media (max-width: 700px) {
  body {
    margin: 8px;
  }

  html {
    font-size: 14px;
    /* PC 기본 16px → 모바일 14px */
  }

  #workContainer {
    display: flex;


  }

  .work-row {
    flex-wrap: nowrap;
    /* ⭐ 줄바꿈 금지 */
    padding: 2px;
    margin: 0;
  }


  .day-box {
    display: grid;
    /* flex: 0 0 28%; */
    width: auto;
  }

  .time-box {
    flex: 0 0 36;
    min-width: 0;
    padding: 6px 6px;
    /* 모바일에서 살짝 축소 */
  }

  .time-box label {
    font-size: 12px;
  }

  .time-box span {
    display: none;
    font-size: 10px;
  }



  .day-box button {
    padding: 4px 6px;
    font-size: 11px;
  }

  .day-box select {
    font-size: 12px;
    padding: 4px 6px;
    height: 30px;
  }

  .day-box label,
  .day-hours {
    font-size: 11px;
    padding: 3px 6px;
  }

  .time-box select {
    font-size: 12px;
    padding: 4px 6px;
    height: 30px;
  }

  .time-box label {
    font-size: 11px;
  }

  .row {

    margin-bottom: 10px;
    overflow: visible;
  }

  input[type="number"],
  select {
    padding: 3px;
    
  }

}