/* 전역 로딩 컴포넌트 스타일 */
.global-loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 투명한 회색 배경 */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* 최상위 레이어 */
  backdrop-filter: blur(1px); /* 배경 블러 효과 (모던 브라우저) */
}

/* HTML: <div class="loader"></div> */
.global-loading-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  margin: 15px auto;
  position: relative;
  color: var(--text-primary-foreground);
  box-sizing: border-box;
  animation: animloader 1s linear infinite alternate;
}

@keyframes animloader {
  0% {
    box-shadow: -38px -12px, -14px 0, 14px 0, 38px 0;
  }
  33% {
    box-shadow: -38px 0px, -14px -12px, 14px 0, 38px 0;
  }
  66% {
    box-shadow: -38px 0px, -14px 0, 14px -12px, 38px 0;
  }
  100% {
    box-shadow: -38px 0, -14px 0, 14px 0, 38px -12px;
  }
}

/* 로딩 중 배경 클릭 방지 */
.global-loading-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: not-allowed;
}

/* 로딩 메시지 스타일 */
.global-loading-message {
  position: absolute;
  color: var(--bg-gray-100);
  margin-top: 80px;
  color: var(--text-primary-foreground);
  font-size: 16px;
  text-align: center;
  max-width: 300px;
  word-break: keep-all;
  line-height: 1.5;
  font-weight: 500;
}
