/* 로딩 스피너 컨테이너 */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
}

/* 회전하는 스피너 */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* 회전 애니메이션 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 관리자 다크테마용 스피너 애니메이션 */
@keyframes admin-spin {
  0% { 
    transform: rotate(0deg);
    filter: hue-rotate(0deg);
  }
  100% { 
    transform: rotate(360deg);
    filter: hue-rotate(360deg);
  }
}

/* 관리자 다크테마용 글로우 효과 */
@keyframes admin-glow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }
  50% { 
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6), 0 0 60px rgba(159, 122, 234, 0.4);
  }
}

/* 로딩 텍스트 */
.loading-spinner p {
  margin: 0;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #333;
  font-weight: 500;
}

/* 관리자 테마에서의 로딩 스피너 스타일 */
.admin-theme .loading-spinner {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
}

.admin-theme .spinner {
  width: 60px;
  height: 60px;
  border: 3px solid transparent;
  border-top: 3px solid #667eea;
  border-right: 3px solid #9f7aea;
  border-bottom: 3px solid #667eea;
  border-left: 3px solid #9f7aea;
  animation: admin-spin 1.2s linear infinite, admin-glow 2s ease-in-out infinite;
  margin-bottom: 20px;
  position: relative;
}

.admin-theme .spinner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 2px solid transparent;
  border-top: 2px solid #a0aec0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite reverse;
}

.admin-theme .loading-spinner p {
  color: #f7fafc;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 관리자 테마용 로딩 도트 애니메이션 추가 */
.admin-theme .loading-spinner p::after {
  content: '';
  animation: admin-loading-dots 1.5s infinite;
}

@keyframes admin-loading-dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* 로딩 스피너 숨기기 (필요시 사용) */
.loading-spinner.hidden {
  display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
  
  .loading-spinner p {
    font-size: 14px;
  }
  
  /* 관리자 테마 모바일 반응형 */
  .admin-theme .spinner {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }
  
  .admin-theme .spinner::before {
    width: 25px;
    height: 25px;
    border-width: 1px;
  }
  
  .admin-theme .loading-spinner p {
    font-size: 13px;
  }
}