@keyframes bgShift {
  0%,
  100% {
    background-color: #dbeafe;
  }
  50% {
    background-color: #bfdbfe;
  }
}
.playing {
  animation: bgShift 2.5s ease-in-out infinite;
}
.tab-button.active {
  border-color: #3b82f6;
  color: #3b82f6;
  font-weight: 600;
}
/* --- 화력 게이지 애니메이션 (업그레이드) --- */
.animated-fire {
  background: linear-gradient(-45deg, #ffc94a, #ff7c36, #ff4a4a, #ff6347);
  background-size: 200% 200%;
  animation: fire-gradient 3s ease-in-out infinite;
  box-shadow: 0 0 8px #ffdd57, 0 0 15px #ff7c36;
}
@keyframes fire-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/* --- 쿨타임 원형 타이머 --- */
#cooldown-circle {
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1.5s linear;
}
/* --- 도움말 말풍선 --- */
.info-tooltip {
  position: absolute;
  bottom: 100%;
  margin-bottom: 5px;
  right: 0;
  width: 48;
  background-color: #1f2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.375rem;
  padding: 0.5rem;
  z-index: 10;
  position: relative;
}
.info-tooltip::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 15px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #1f2937;
}

/* 숨김 처리 */
.hidden {
  display: none;
}

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loading-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========[ 투두리스트 관련 스타일 ]========== */

/* 아코디언 내용 (수정) */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  visibility: hidden;
  transition: max-height 0.3s ease-out, visibility 0s 0.3s;
}
.accordion-header:has(+ .accordion-content[style*="max-height"])
  + .accordion-content {
  visibility: visible;
  transition: max-height 0.3s ease-out, visibility 0s;
}

/* 필수 항목 강조 (빨간색) */
.is-essential {
  color: #ef4444; /* red-500 */
  font-weight: 600;
}

/* 완료된 항목 스타일 (신규) */
.item-done {
  text-decoration: line-through;
  color: #9ca3af; /* gray-400 */
}

/* 바로가기, 보상, 팁 버튼 컨테이너 */
.action-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
}

/* 보상/팁/링크 버튼 */
.reward-button,
.tip-button,
.link-button {
  background-color: transparent;
  border: 1px solid #9ca3af; /* gray-400 */
  color: #6b7280; /* gray-500 */
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none; /* 링크 밑줄 제거 */
}

.reward-button:hover,
.tip-button:hover,
.link-button:hover {
  background-color: #f3f4f6; /* gray-100 */
  border-color: #6b7280; /* gray-500 */
}

/* 링크 버튼만 파란색 아이콘으로 */
.link-button {
  color: #3b82f6; /* blue-500 */
}

/* 달성 완료 아이템 스타일 */
.celebration-item {
  background-color: #dbeafe; /* blue-100 */
  color: #000000; /* black */
}

/* 상세 정보 모달 (팁/보상) 캐러셀 (수정) */
.carousel-items {
  overflow: hidden;
  position: relative;
}
.carousel-item {
  display: none;
  text-align: center;
}
.carousel-item.active {
  display: block;
}
.carousel-item img {
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}
.carousel-item p {
  white-space: pre-wrap;
  word-break: keep-all;
  font-size: 0.875rem;
}
.carousel-navigation {
  position: absolute;
  top: 40%;
  left: -10px;
  right: -10px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}
.carousel-navigation button {
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 9999px;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  cursor: pointer;
}
.carousel-dots {
  text-align: center;
  margin-top: 0.75rem;
}
.carousel-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d1d5db; /* gray-300 */
  margin: 0 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-dot.active {
  background-color: #3b82f6; /* blue-500 */
  transform: scale(1.25);
}

#bottom-nav {
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  background-color: #afd1ff; /* 배경색 적용 */
  color: #000000; /* 텍스트 검정색 */
  border-top-left-radius: 24px; /* 상단 좌측 둥글게 */
  border-top-right-radius: 24px; /* 상단 우측 둥글게 */
}

#bottom-nav button {
  transition: background-color 0.2s;
}

#bottom-nav button:active {
  background-color: #bfdbfe; /* 조금 더 진한 파란색으로 눌림 효과 */
}

/* ==========[ 바텀시트 핸들 추가 ]========== */
.bottom-sheet-container {
  position: relative;
  padding-top: 20px; /* 핸들과 내용이 겹치지 않도록 패딩 추가 */
}

.bottom-sheet-handle {
  width: 40px;
  height: 5px;
  background-color: #d1d5db; /* gray-300 */
  border-radius: 2.5px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

/* ==========[ 투두리스트 버튼 핸들 스타일 ]========== */
.bottom-button-handle {
  width: 32px;
  height: 4px;
  background-color: #9ca3af; /* gray-400 */
  border-radius: 2px;
  margin-bottom: 14px; /* 핸들과 텍스트 사이 간격 조정 */
}

/* [추가] 공지사항 스와이퍼 버튼 스타일 */
.notice-swiper-button-prev,
.notice-swiper-button-next {
  color: #3b82f6; /* 파란색 */
  top: 50%;
  transform: translateY(-50%);
}
.notice-swiper-button-prev {
  left: -10px;
}
.notice-swiper-button-next {
  right: -10px;
}

/* [추가] 일일 일정 모달 메뉴 스타일 */
.event-item {
  position: relative;
}

.kebab-menu {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.kebab-menu-options {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.kebab-menu-options button {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.kebab-menu-options button:hover {
  background-color: #f3f4f6;
}

.alert-box {
  background: #fff9f0; /* 연한 노랑-오렌지톤 배경 */
  border-left: 6px solid #ff4c4c; /* 강한 빨강 테두리 */
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
}

.alert-box h4 {
  color: #d32f2f; /* 진한 빨강 */
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.alert-box h4::before {
  content: "🚨";
  margin-right: 8px;
  font-size: 1.4rem;
}

.alert-box ul {
  padding-left: 0;
  list-style: none;
}

.alert-box ul {
  list-style: disc; /* 기본 점 불릿 */
  padding-left: 1.2rem; /* 점이 잘 보이도록 여백 */
}

.alert-box ul li {
  margin: 0.4rem 0;
}
