/* 공지사항 배너 애니메이션 */
.announcement-banner {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #5865f2;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Pretendard", sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideDown 0.6s ease;
}

.announcement-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
}

.announcement-close:hover {
  color: #ffffffcc;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* 다크 모드 대응 */
body.dark-mode .announcement-banner {
  background-color: #404eed;
}

/* 로딩 애니메이션 스타일 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 180px;
}

.loading-container.hidden {
  display: none;
}

.loading-animation {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.loading-bar {
  width: 8px;
  height: 24px;
  background-color: #5865f2;
  border-radius: 2px;
  animation: loading 1.2s ease-in-out infinite;
}

.loading-bar:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loading {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(2);
  }
}

.loading-text {
  font-family: "Pretendard", "Pretendard-Medium", sans-serif;
  font-weight: 500;
  color: #505050;
  font-size: 16px;
}