/**********************************************
 * 물 한 잔의 가치 컨테이너
 **********************************************/
.water-calculator-container {
  margin: 20px auto !important;
  padding: 30px !important;
  background: #f4f9ff !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1180px !important;
  font-family: 'Noto Sans KR', Arial, sans-serif !important;
  color: #2c3e50 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  font-size: 14px !important;
}

@media screen and (max-width: 768px) {
  .water-calculator-container {
    padding: 15px 8px !important;
    margin: 10px auto !important;
    border-radius: 8px !important;
  }
}

.water-calculator-container h2 {
  text-align: center !important;
  font-size: 1.9em !important;
  margin-bottom: 5px !important;
  color: #2c3e50 !important;
  font-weight: 700 !important;
}

.explain-text {
  text-align: center !important;
  font-size: 0.97em !important;
  margin-bottom: 25px !important;
  color: #5d7592 !important;
}

/**********************************************
 * 플렉스 레이아웃
 **********************************************/
.calculator-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 20px !important;
}

.input-section {
  flex: 1 !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e0e0e0 !important;
  min-width: 300px !important;
}

.output-section {
  flex: 1 !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e0e0e0 !important;
  min-width: 300px !important;
}

.full-width-section {
  width: 100% !important;
  background: #fff !important;
  border-radius: 10px !important;
  padding: 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e0e0e0 !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.section-title {
  font-size: 1.25em !important;
  font-weight: 600 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  color: #2c3e50 !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid #f2f2f2 !important;
}

/**********************************************
 * 성별 선택 스타일
 **********************************************/
.gender-toggle {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
}

.gender-toggle label {
  flex: 1 !important;
  position: relative !important;
  padding: 12px 10px !important;
  background: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 6px !important;
  text-align: center !important;
  cursor: pointer !important;
  color: #2c3e50 !important;
  font-weight: 500 !important;
  font-size: 0.92em !important;
  transition: all 0.25s ease !important;
}

.gender-toggle input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.gender-toggle input[type="radio"]:checked + span {
  color: #3498db !important;
  font-weight: bold !important;
}

.gender-toggle label:hover {
  background: #f0f0f0 !important;
}

.gender-toggle input[type="radio"]:checked + span::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #edf7ff !important;
  border-radius: 6px !important;
  z-index: -1 !important;
}

/**********************************************
 * 입력 그리드 (2열)
 **********************************************/
.input-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

/**********************************************
 * 입력 필드 스타일
 **********************************************/
.input-group {
  margin-bottom: 12px !important;
  position: relative !important;
}

.input-grid .input-group {
  margin-bottom: 0 !important;
}

.input-group label {
  display: block !important;
  margin-bottom: 4px !important;
  font-weight: 500 !important;
  color: #2c3e50 !important;
  font-size: 0.92em !important;
}

.input-container {
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.input-group input {
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid #cccccc !important;
  border-radius: 6px !important;
  font-size: 0.92em !important;
  color: #2c3e50 !important;
  background: #fff !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
}

.input-group input:focus {
  border-color: #3498db !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.select-input {
  width: 100% !important;
  padding: 8px 10px !important;
  border: 1px solid #cccccc !important;
  border-radius: 6px !important;
  font-size: 0.92em !important;
  color: #2c3e50 !important;
  background: #fff !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path fill="%235d7592" d="M0 0l6 6 6-6z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 30px !important;
}

.select-input:focus {
  border-color: #3498db !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1) !important;
}

.input-addon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #5d7592 !important;
  font-size: 0.87em !important;
  font-weight: 500 !important;
}

/**********************************************
 * 버튼 스타일
 **********************************************/
.btn-calculate {
  display: block !important;
  width: 100% !important;
  padding: 10px !important;
  background: #3498db !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 0.95em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  margin-top: 15px !important;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2) !important;
  text-align: center !important;
}

.btn-calculate:hover {
  background: #2980b9 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 6px rgba(52, 152, 219, 0.25) !important;
}

.btn-calculate:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 2px rgba(52, 152, 219, 0.1) !important;
}

.btn-reset {
  background: transparent !important;
  border: 1px solid #cccccc !important;
  color: #5d7592 !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 0.92em !important;
  margin-top: 15px !important;
  transition: all 0.2s !important;
  min-width: 70px !important;
  white-space: nowrap !important;
}

.btn-reset:hover {
  background: #f9f9f9 !important;
  color: #2c3e50 !important;
  border-color: #a5a5a5 !important;
}

.btn-group {
  display: flex !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

/**********************************************
 * 결과 스타일
 **********************************************/
.result-summary {
  margin-bottom: 25px !important;
  background: #f9f9f9 !important;
  padding: 15px !important;
  border-radius: 8px !important;
  border: 1px solid #f0f0f0 !important;
}

.result-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
  font-size: 1.1em !important;
}

.result-row:last-child {
  margin-bottom: 0 !important;
}

.result-label {
  color: #2c3e50 !important;
  font-weight: 500 !important;
}

.result-value {
  font-weight: 500 !important;
  color: #2c3e50 !important;
}

.result-highlight {
  font-weight: bold !important;
  color: #3498db !important;
  font-size: 1.3em !important;
}

.important-result {
  background: #edf7ff !important;
  border-left: 4px solid #3498db !important;
  padding: 15px !important;
  margin: 15px 0 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1) !important;
}

.important-result .result-row {
  margin-bottom: 8px !important;
}

.important-result .result-label {
  color: #2980b9 !important;
}

.important-result .result-highlight {
  font-size: 1.2em !important;
}

.recommended-water {
  color: #3498db !important;
}

.current-water {
  color: #e74c3c !important;
}

.water-difference {
  color: #16a085 !important;
}

/**********************************************
 * 차트 스타일
 **********************************************/
.chart-section {
  margin: 20px 0 !important;
}

.chart-title {
  font-size: 1.05em !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  color: #2c3e50 !important;
}

.chart-container {
  height: 220px !important;
  position: relative !important;
  margin: 0 auto !important;
  max-width: 400px !important;
}

/**********************************************
 * 혜택 정보 스타일 (컴팩트)
 **********************************************/
.benefits-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

.benefit-card {
  background: #f9f9f9 !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  border: 1px solid #e0e0e0 !important;
  transition: all 0.2s ease !important;
  max-width: 180px !important;
  min-height: 140px !important;
}

.benefit-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.benefit-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  background: #edf7ff !important;
  border-radius: 50% !important;
  margin: 0 auto 8px !important;
  color: #3498db !important;
  font-size: 1.3em !important;
}

.benefit-title {
  text-align: center !important;
  font-weight: 600 !important;
  font-size: 1.08em !important; /* 글자 크기 +1px */
  margin: 0 0 8px !important;
  color: #2c3e50 !important;
}

.benefit-description {
  font-size: 0.98em !important; /* 글자 크기 +1px */
  color: #5d7592 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  margin: 0 !important;
}

/**********************************************
 * 시간표 스타일 (전체 너비 사용)
 **********************************************/
.schedule-container {
  margin-top: 15px !important;
}

.timeline {
  display: grid !important;
  grid-template-columns: repeat(8, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 15px !important;
  width: 100% !important;
}

.time-point {
  position: relative !important;
  padding: 15px 10px !important;
  background: #f9f9f9 !important;
  border-radius: 8px !important;
  border: 1px solid #e0e0e0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.time-point:not(:last-child)::after {
  content: "" !important;
  position: absolute !important;
  top: 40px !important;
  right: -12px !important;
  width: 14px !important;
  height: 2px !important;
  background-color: #e0e0e0 !important;
  z-index: 1 !important;
}

.time-marker {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background-color: #edf7ff !important;
  color: #3498db !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-weight: bold !important;
  margin-bottom: 8px !important;
  border: 2px solid #3498db !important;
  font-size: 0.98em !important;
}

.time-description {
  font-size: 0.93em !important; /* 글자 크기 +1px */
  color: #2c3e50 !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
}

.time-detail {
  font-size: 0.75em !important;
  color: #5d7592 !important;
  margin-bottom: 5px !important;
}

.water-amount {
  font-weight: bold !important;
  color: #3498db !important;
  font-size: 0.93em !important; /* 글자 크기 +1px */
  margin-top: 4px !important;
}

/**********************************************
 * 음식 정보 스타일 (혜택 카드와 동일한 컴팩트 사이즈)
 **********************************************/
.food-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  margin-top: 15px !important;
}

.food-card {
  background: #f9f9f9 !important;
  border-radius: 8px !important;
  padding: 12px 10px !important;
  border: 1px solid #e0e0e0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 180px !important;
  min-height: 120px !important;
  transition: all 0.2s ease !important;
}

.food-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.food-icon {
  font-size: 1.8em !important;
  margin-bottom: 8px !important;
}

.food-name {
  font-weight: 600 !important;
  font-size: 1.12em !important; /* 글자 크기 +1px */
  color: #2c3e50 !important;
  margin-bottom: 4px !important;
  text-align: center !important;
}

.food-water-content {
  font-size: 0.98em !important; /* 글자 크기 +1px */
  color: #3498db !important;
  font-weight: 500 !important;
  text-align: center !important;
}

.food-description {
  font-size: 0.90em !important; /* 글자 크기 +1px */
  color: #5d7592 !important;
  text-align: center !important;
  margin-top: 5px !important;
}

/**********************************************
 * 모바일 대응
 **********************************************/
@media screen and (max-width: 1120px) {
  .input-section, 
  .output-section {
    flex: 1 1 100% !important;
  }
  
  .benefits-container,
  .food-container {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .timeline {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

@media screen and (max-width: 768px) {
  .water-calculator-container {
    padding: 12px 5px !important;
  }
  
  .input-section, 
  .output-section,
  .full-width-section {
    padding: 15px 10px !important;
    min-width: 0 !important;
  }
  
  .input-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  
  .chart-container {
    height: 200px !important;
  }
  
  .benefits-container,
  .food-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .timeline {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .time-point:not(:last-child)::after {
    display: none !important;
  }
}

@media screen and (max-width: 480px) {
  .water-calculator-container {
    padding: 10px 5px !important;
  }
  
  .input-section, 
  .output-section,
  .full-width-section {
    padding: 12px 8px !important;
  }
  
  .input-grid {
    grid-template-columns: 1fr !important;
  }
  
  .benefits-container,
  .food-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .timeline {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}