/**********************************************
 * 4-7-8 호흡법 가이드 컨테이너
 **********************************************/
 .breathing-guide-container {
  margin: 20px auto !important;
  padding: 30px !important;
  background: #f8f9fa !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: #2d3748 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  overflow: hidden !important;
  font-size: 16px !important;
}

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

.breathing-guide-container h2 {
  text-align: center !important;
  font-size: 2em !important;
  margin-bottom: 5px !important;
  color: #3b82f6 !important;
  font-weight: 700 !important;
}

.explain-text {
  text-align: center !important;
  font-size: 1em !important;
  margin-bottom: 25px !important;
  color: #4b5563 !important;
}

/**********************************************
 * 메인 레이아웃
 **********************************************/
.guide-layout {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 30px !important;
}

.visualization-section {
  flex: 1 !important;
  min-width: 300px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 30px 20px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e5e7eb !important;
}

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

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

/**********************************************
 * 호흡 시각화
 **********************************************/
.breathing-circle-container {
  position: relative !important;
  width: 260px !important;
  height: 260px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.breathing-circle {
  width: 200px !important;
  height: 200px !important;
  background: rgba(59, 130, 246, 0.2) !important;
  border-radius: 50% !important;
  transition: transform 0.5s ease !important;
  position: relative !important;
  z-index: 1 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

.breathing-circle.inhale {
  animation: inhale 4s ease-in forwards !important;
  background: rgba(59, 130, 246, 0.3) !important;
}

.breathing-circle.hold {
  animation: hold 7s ease-in-out forwards !important;
  background: rgba(147, 51, 234, 0.3) !important;
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.4) !important;
}

.breathing-circle.exhale {
  animation: exhale 8s ease-out forwards !important;
  background: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4) !important;
}

@keyframes inhale {
  from {
    transform: scale(1);
    background: rgba(59, 130, 246, 0.2);
  }
  to {
    transform: scale(1.4);
    background: rgba(59, 130, 246, 0.4);
  }
}

@keyframes hold {
  from {
    transform: scale(1.4);
    background: rgba(59, 130, 246, 0.4);
  }
  to {
    transform: scale(1.4);
    background: rgba(147, 51, 234, 0.4);
  }
}

@keyframes exhale {
  from {
    transform: scale(1.4);
    background: rgba(147, 51, 234, 0.4);
  }
  to {
    transform: scale(1);
    background: rgba(16, 185, 129, 0.3);
  }
}

.breathing-text {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 1.5em !important;
  font-weight: 700 !important;
  color: #2d3748 !important;
  z-index: 2 !important;
  text-align: center !important;
}

.breathing-phase {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 0.9em !important;
  color: #4b5563 !important;
  z-index: 2 !important;
  width: 250px !important;
  text-align: center !important;
}

/**********************************************
 * 설정 컨트롤
 **********************************************/
.settings-group {
  margin-bottom: 20px !important;
}

.setting-item {
  margin-bottom: 15px !important;
}

.setting-item label {
  display: block !important;
  margin-bottom: 8px !important;
  font-weight: 500 !important;
  color: #4b5563 !important;
  font-size: 0.95em !important;
}

.duration-selector {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.duration-btn {
  padding: 6px 0 !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  font-size: 0.9em !important;
  cursor: pointer !important;
  text-align: center !important;
  color: #4b5563 !important;
  flex: 1 1 calc(20% - 5px) !important;
  transition: all 0.2s !important;
  font-family: inherit !important;
}

.duration-btn:hover {
  background: #e5e7eb !important;
  color: #3b82f6 !important;
}

.duration-btn.active {
  background: #dbeafe !important;
  color: #2563eb !important;
  border-color: #93c5fd !important;
  font-weight: bold !important;
}

/**********************************************
 * 타이머 디스플레이
 **********************************************/
.timer-display {
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 15px !important;
  text-align: center !important;
  margin-bottom: 20px !important;
  border: 1px solid #e5e7eb !important;
}

.session-time {
  font-size: 2.5em !important;
  font-weight: 700 !important;
  color: #3b82f6 !important;
  margin-bottom: 5px !important;
  letter-spacing: 2px !important;
}

.cycle-count {
  font-size: 1em !important;
  color: #4b5563 !important;
}

/**********************************************
 * 컨트롤 버튼
 **********************************************/
.control-buttons {
  display: flex !important;
  gap: 10px !important;
}

.btn-control {
  flex: 1 !important;
  padding: 12px 15px !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: center !important;
  border: none !important;
  transition: all 0.3s !important;
  font-family: inherit !important;
}

.btn-control.start {
  background: #3b82f6 !important;
  color: white !important;
}

.btn-control.start:hover {
  background: #2563eb !important;
}

.btn-control.pause {
  background: #fbbf24 !important;
  color: #7c2d12 !important;
}

.btn-control.pause:hover {
  background: #f59e0b !important;
}

.btn-control.reset {
  background: #ef4444 !important;
  color: white !important;
}

.btn-control.reset:hover {
  background: #dc2626 !important;
}

.btn-control:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/**********************************************
 * 정보 섹션
 **********************************************/
.info-section {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e5e7eb !important;
}

.info-content {
  font-size: 1em !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
}

.info-content p {
  margin-bottom: 20px !important;
}

.info-content h4 {
  margin-top: 25px !important;
  margin-bottom: 10px !important;
  color: #3b82f6 !important;
  font-size: 1.1em !important;
  font-weight: 600 !important;
}

.steps-container {
  display: flex !important;
  justify-content: space-between !important;
  margin: 30px 0 !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

.step-item {
  flex: 1 !important;
  min-width: 120px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.step-icon {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.8em !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.step-item:nth-child(1) .step-icon {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #2563eb !important;
}

.step-item:nth-child(2) .step-icon {
  background: rgba(147, 51, 234, 0.2) !important;
  color: #7c3aed !important;
}

.step-item:nth-child(3) .step-icon {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #059669 !important;
}

.step-text {
  font-size: 0.9em !important;
  line-height: 1.4 !important;
}

.benefits-list {
  padding-left: 20px !important;
  margin-bottom: 20px !important;
}

.benefits-list li {
  margin-bottom: 5px !important;
  line-height: 1.5 !important;
}

.tips-box {
  background: #f0f9ff !important;
  border: 1px solid #bae6fd !important;
  border-radius: 8px !important;
  padding: 15px 20px !important;
  margin-top: 20px !important;
}

.tips-box h4 {
  color: #0284c7 !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

.tips-box p {
  color: #334155 !important;
  margin-bottom: 0 !important;
}

/**********************************************
 * 모바일 대응
 **********************************************/
@media screen and (max-width: 768px) {
  .guide-layout {
    flex-direction: column !important;
  }
  
  .visualization-section, 
  .controls-section,
  .info-section {
    padding: 20px 15px !important;
  }
  
  .breathing-circle-container {
    width: 200px !important;
    height: 200px !important;
  }
  
  .breathing-circle {
    width: 150px !important;
    height: 150px !important;
  }
  
  .breathing-text {
    font-size: 1.3em !important;
  }
  
  .session-time {
    font-size: 2em !important;
  }
}

@media screen and (max-width: 480px) {
  .breathing-guide-container {
    padding: 15px 5px !important;
  }
  
  .visualization-section, 
  .controls-section,
  .info-section {
    padding: 15px 10px !important;
  }
  
  .steps-container {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .step-item {
    width: 100% !important;
    max-width: 200px !important;
  }
  
  .duration-btn {
    flex: 1 1 calc(33.33% - 5px) !important;
    font-size: 0.8em !important;
    padding: 8px 3px !important;
  }
}