/**
 * 화상영어 관리자 페이지 - 커스텀 스타일
 * 프로젝트별 추가 스타일을 정의합니다.
 */

/* FOUC(Flash of Unstyled Content) 방지 */
body {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

body.loaded {
  opacity: 1;
}

/* 로딩 오버레이 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #1ABB9C;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 커스텀 버튼 스타일 */
.btn-custom-primary {
  background-color: #1ABB9C;
  border-color: #1ABB9C;
  color: white;
}

.btn-custom-primary:hover {
  background-color: #17a689;
  border-color: #17a689;
}

/* 카드 스타일 개선 */
.card-custom {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s ease;
}

.card-custom:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* 테이블 스타일 */
.table-hover tbody tr:hover {
  background-color: rgba(26, 187, 156, 0.05);
}

/* 통계 위젯 */
.stat-widget {
  padding: 20px;
  border-left: 4px solid #1ABB9C;
  background: white;
  border-radius: 4px;
  margin-bottom: 20px;
}

.stat-widget .stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #2A3F54;
}

.stat-widget .stat-label {
  color: #73879C;
  font-size: 0.9rem;
}

/* 응답형 디자인 개선 */
@media (max-width: 768px) {
  .stat-widget .stat-value {
    font-size: 1.5rem;
  }
}

/* 커스텀 알림 스타일 */
.alert-custom {
  border-radius: 6px;
  padding: 15px 20px;
}

/* 페이지 제목 스타일 */
.page-title {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #E6E9ED;
}

.page-title h3 {
  color: #2A3F54;
  font-weight: 600;
  margin: 0;
}

/* 폼 스타일 개선 */
.form-label {
  font-weight: 500;
  color: #2A3F54;
  margin-bottom: 8px;
}

.form-control:focus {
  border-color: #1ABB9C;
  box-shadow: 0 0 0 0.2rem rgba(26, 187, 156, 0.25);
}

/* 사이드바 활성 메뉴 강조 */
.nav.side-menu > li.active > a {
  background-color: rgba(26, 187, 156, 0.1);
  border-left: 3px solid #1ABB9C;
}
