/* 전체 컨테이너 스타일 */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* 사이드바 스타일 */
.sidebar {
  width: 250px;
  height: 100vh;
  background-color: #2c3e50;
  color: #ecf0f1;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, transform 0.3s ease;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow: hidden;
}

/* 애니메이션 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated-fadeIn {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animated-fadeInModal {
  animation: fadeInModal 0.3s ease-in-out;
}

/* 사이드바 접힌 상태 */
.sidebar.collapsed {
  width: 0 !important;
  transform: translateX(-100%) !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  height: 100vh !important;
}

/* 사이드바 접힌 상태에서 텍스트 숨김 */
.sidebar.collapsed .submenu-item span:not(.material-symbols-outlined),
.sidebar.collapsed .category-header span:not(.material-symbols-outlined),
.sidebar.collapsed .logout-button span:not(.material-symbols-outlined),
.sidebar.collapsed .admin-home span:not(.material-symbols-outlined),
.sidebar.collapsed .logout-text {
  display: none;
}

/* 사이드바 접힌 상태에서 아이콘 중앙 정렬 */
.sidebar.collapsed .submenu-item,
.sidebar.collapsed .category-header,
.sidebar.collapsed .logout-button a {
  justify-content: center;
}

/* 사이드바 접힌 상태에서 카테고리 토글 아이콘 숨김 */
.sidebar.collapsed .category-toggle {
  display: none;
}

/* 사이드바 접힌 상태에서 하위 메뉴 항상 접힘 */
.sidebar.collapsed .submenu {
  max-height: 0 !important;
  opacity: 0 !important;
  border-left: 2px solid transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 사이드바 접힌 상태에서 메뉴 카테고리 조정 */
.sidebar.collapsed .menu-category {
  height: 40px !important;
  overflow: hidden !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

/* 사이드바 접힌 상태에서 카테고리 헤더 조정 */
.sidebar.collapsed .category-header {
  padding: 10px 5px !important;
  margin: 0 !important;
  border-left: none !important;
  background-color: transparent !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* 사이드바 접힌 상태에서 로고 조정 */
.sidebar.collapsed .logo-wrapper {
  padding: 10px 0 !important;
  min-height: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  margin: 5px !important;
  overflow: hidden !important;
}

.sidebar.collapsed .admin-logo {
  max-width: 40px;
}

/* 사이드바 접힌 상태에서 헤더 상단 영역 조정 */
.sidebar.collapsed .header-top {
  padding: 0 5px;
  height: 40px;
}

/* 사이드바 접힌 상태에서 푸터 조정 */
.sidebar.collapsed .sidebar-footer {
  padding: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  overflow: hidden !important;
  display: flex !important;
  justify-content: center !important;
}

/* 사이드바 접힌 상태에서 로그아웃 버튼 조정 */
.sidebar.collapsed .logout-button {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}

.sidebar.collapsed .logout-button a {
  padding: 8px !important;
  margin: 0 !important;
  height: 40px !important;
  width: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 사이드바 접힌 상태에서 화살표 숨김 */
.sidebar.collapsed .arrow {
  display: none;
}

/* 사이드바 접힌 상태에서 네비게이션 영역 조정 */
.sidebar.collapsed .sidebar-nav {
  padding: 0 !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  max-height: calc(100vh - 80px) !important;
  height: auto !important;
}

/* 사이드바 접힌 상태에서 아이콘 크기 조정 */
.sidebar.collapsed .material-symbols-outlined {
  font-size: 18px;
  margin-right: 0;
}

/* 사이드바 접힌 상태에서 아이콘 컨테이너 조정 */
.sidebar.collapsed .submenu-item div {
  justify-content: center;
  gap: 0;
}

/* 사이드바 토글 버튼 스타일 */
.sidebar-toggle {
  background: none;
  border: none;
  color: #ecf0f1;
  cursor: pointer;
  font-size: 24px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 50%;
}

/* 사이드바 토글 버튼 호버 효과 */
.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #3498db;
  transform: scale(1.1);
}

/* 사이드바 접힌 상태에서 토글 버튼 회전 */
.sidebar.collapsed .sidebar-toggle .material-symbols-outlined {
  transform: rotate(180deg);
}

/* 외부 고정 토글 버튼 스타일 */
.sidebar-toggle-fixed {
  position: fixed;
  left: 10px;
  top: 20px;
  height: 36px;
  width: 36px;
  background: #2c3e50;
  border: none;
  color: #ecf0f1;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
}

.sidebar-toggle-fixed:hover {
  background-color: #3498db;
  transform: scale(1.05);
}

/* 사이드바가 접혔을 때 외부 토글 버튼 표시 */
.sidebar.collapsed~.sidebar-toggle-fixed {
  display: flex;
  opacity: 1;
  visibility: visible;
  left: 10px;
}

/* 사이드바 접힌 상태에서 메인 콘텐츠 영역 조정 */
.sidebar.collapsed~.main-content {
  margin-left: 0;
}

/* Material Icons 기본 스타일 */
.material-symbols-outlined {
  font-size: 24px;
  line-height: 1;
  vertical-align: middle;
}

/* 컨텐츠 영역 조정 */
.content {
  margin-left: 280px;
  transition: all 0.3s ease;
  width: calc(100% - 280px);
  padding: 20px;
}

.content.expanded {
  margin-left: 0;
  width: 100%;
}

/* 사이드바 헤더 레이아웃 수정 */
.sidebar-header {
  padding: 0;
  border-bottom: none;
  position: sticky;
  top: 0;
  background-color: #2c3e50;
  z-index: 10;
}

/* 헤더 상단 영역 */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

/* 로고 래퍼 스타일 */
.logo-wrapper {
  padding: 20px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  margin: 10px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

.logo-wrapper a {
  display: block;
  text-decoration: none;
}

.admin-logo {
  max-width: 160px;
  height: auto;
  display: block;
}

/* 관리자 홈 텍스트 스타일 수정 */
.admin-home {
  margin: 0;
  flex: 1;
}

.admin-home a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-home a:hover {
  color: #3498db;
}

/* 사이드바 헤더에서 기존 토글 버튼 제거 */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

/* 사이드바 푸터 스타일 */
.sidebar-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #2c3e50;
  z-index: 10;
}

/* 로그아웃 버튼 스타일 수정 */
.logout-button a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
}

.logout-button a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.logout-button .material-symbols-outlined {
  font-size: 20px;
}

.sidebar-nav {
  padding: 20px 10px;
  margin-bottom: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 5px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 10px;
  font-weight: 500;
}

.sidebar-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.sidebar-nav a.active {
  background-color: rgba(52, 152, 219, 0.2);
  color: #3498db;
  font-weight: 600;
}

.sidebar-nav .material-symbols-outlined {
  color: #ecf0f1;
  font-size: 20px;
  margin-right: 12px;
}

.sidebar-nav a:hover .material-symbols-outlined,
.sidebar-nav a.active .material-symbols-outlined {
  color: #3498db;
}

.arrow.material-symbols-outlined {
  font-size: 18px;
  margin-right: 0;
}

.sidebar-nav a:hover .arrow {
  color: #3498db;
}

.submenu-toggle div {
  display: flex;
  align-items: center;
}

/* 화살표 아이콘 기본적으로 숨김 */
.arrow {
  display: none;
}

/* has-submenu 클래스가 있는 경우에만 화살표 표시 */
.has-submenu .arrow {
  display: block;
  transition: transform 0.3s ease;
}

.has-submenu.active .arrow {
  transform: rotate(180deg);
}

/* 카테고리 스타일 */
.category-header {
  padding: 12px 15px;
  font-weight: 600;
  color: #a8b6c7;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 15px;
  margin-bottom: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 3px solid #3498db;
}

.category-header:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.category-header .category-toggle {
  font-size: 18px;
  transition: transform 0.3s ease;
  color: #3498db;
}

.category-header.collapsed .category-toggle {
  transform: rotate(-90deg);
}

.category-header.collapsed {
  border-left-color: rgba(255, 255, 255, 0.1);
}

/* 서브메뉴 스타일 수정 */
.submenu {
  list-style: none;
  padding: 0;
  margin: 0 10px;
  background-color: transparent;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 20px;
  padding-left: 10px;
  opacity: 1;
}

.submenu.collapsed {
  max-height: 0;
  border-left: 2px solid transparent;
  opacity: 0;
}

/* 하위 메뉴 아이템 스타일 수정 */
.submenu-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 5px 0;
  font-weight: 500;
}

.submenu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.submenu-item div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.submenu-item .material-symbols-outlined {
  font-size: 18px;
}

/* 화살표 아이콘 숨김 */
.submenu-item .arrow {
  display: none;
}

/* 컨텐츠 영역 스타일 */
.content-header {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e1e8ef;
}

.content-header h1 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin: 0;
}

.content-body {
  background-color: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* 사이드바 메뉴 스타일링 */
.menu-category {
  margin-bottom: 10px;
}

/* 카드 공통 스타일 */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* 그리드 */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 검색 필터 공통 스타일 */
.search-filter-section {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #edf2f7;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-header:hover {
  background: linear-gradient(to right, #f1f5f9, #e2e8f0);
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-title h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

.filter-title .material-symbols-outlined {
  color: #3182ce;
  font-size: 18px;
}

.toggle-filter {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #4a5568;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-filter:hover {
  background-color: rgba(49, 130, 206, 0.1);
  color: #3182ce;
  transform: scale(1.05);
}

.toggle-filter .material-symbols-outlined {
  transition: transform 0.3s ease;
  font-size: 18px;
}

.toggle-filter.collapsed .material-symbols-outlined {
  transform: rotate(180deg);
}

.filter-content {
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
  padding: 16px;
  opacity: 1;
  background-color: #ffffff;
}

.filter-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

.search-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.search-group label {
  font-size: 13px;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 0;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  height: 36px;
}

.form-control:hover {
  border-color: #cbd5e0;
}

.form-control:focus {
  border-color: #3182ce;
  box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: #a0aec0;
  font-size: 12px;
}

/* 날짜 선택 영역 */
.date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.date-input {
  flex: 1;
  position: relative;
}

.date-input .form-control {
  padding-right: 30px;
}

.date-input::after {
  content: '\e916';
  /* calendar icon */
  font-family: 'Material Symbols Outlined';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #3182ce;
  pointer-events: none;
  font-size: 16px;
}

.date-separator {
  color: #718096;
  font-weight: 500;
  padding: 0 2px;
}

/* 버튼 영역 */
.button-row {
  justify-content: flex-end !important;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  margin-top: 4px;
}

.button-group {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  height: 32px;
}

.btn .material-symbols-outlined {
  font-size: 16px;
}

.btn-reset {
  background: #f7fafc;
  color: #4a5568;
  border: 1px solid #e2e8f0;
}

.btn-reset:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
  transform: translateY(-1px);
}

.btn-search {
  background: #3182ce;
  color: white;
}

.btn-search:hover {
  background: #2b6cb0;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2);
}

.btn-excel {
  background: #2f855a;
  color: white;
}

.btn-excel:hover {
  background: #276749;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(47, 133, 90, 0.2);
}

/* 로딩 인디케이터 스타일 */
.loading-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-bar.show {
  display: flex;
}

.loading-content {
  background: white;
  padding: 3rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 480px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.loading-icon-wrapper {
  margin: 0 auto 2rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f7ff;
  border-radius: 50%;
  padding: 1.25rem;
}

.loading-icon {
  font-size: 2.5rem;
  color: #4A90E2;
  animation: spin 1s linear infinite;
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a202c;
  padding: 0 1.5rem;
  line-height: 1.4;
}

.loading-description {
  color: #4a5568;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 3.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 1.5rem;
}

.loading-status {
  margin-top: auto;
  padding-top: 2rem;
  width: 100%;
}

.loading-progress-bar {
  background-color: #f0f7ff;
  border-radius: 1rem;
  height: 0.75rem;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  width: 100%;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.loading-progress-fill {
  background: linear-gradient(90deg, #4A90E2, #63B3ED);
  height: 100%;
  width: 0;
  transition: width 0.3s ease;
  box-shadow: 0 2px 4px rgba(74, 144, 226, 0.2);
}

.loading-time {
  font-size: 1rem;
  color: #718096;
  margin-top: 1rem;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* 페이드 아웃 애니메이션 */
.loading-bar {
  transition: all 0.5s ease;
}

.loading-bar.fade-out {
  opacity: 0;
  backdrop-filter: blur(0);
}

.loading-content {
  transition: all 0.3s ease;
}

.loading-bar.fade-out .loading-content {
  transform: translateY(-30px);
  opacity: 0;
}

/* 사이드바 접힌 상태에서 메뉴 아이템 조정 */
.sidebar.collapsed .sidebar-nav li {
  margin-bottom: 0 !important;
  height: 40px !important;
  overflow: hidden !important;
}

/* 사이드바 접힌 상태에서 메뉴 아이템 패딩 조정 */
.sidebar.collapsed .sidebar-nav a {
  padding: 10px !important;
  margin: 0 !important;
  height: 40px !important;
  width: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 사이드바 접힌 상태에서 관리자 홈 링크 조정 */
.sidebar.collapsed .admin-home a {
  padding: 8px;
  margin: 0;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 페이지네이션 스타일 */
.pagination-container {
  margin: 3rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.pagination-info {
  position: absolute;
  left: 0;
  font-size: 0.8rem;
  color: #666;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  text-decoration: none;
  color: #4a5568;
  background-color: #fff;
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.pagination-btn .material-symbols-outlined {
  font-size: 1rem;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background-color: #f7fafc;
  border-color: #4299e1;
  color: #4299e1;
}

.pagination-btn.active {
  background-color: transparent;
  color: #4299e1;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  position: relative;
  cursor: default;
}

.pagination-btn.active::before,
.pagination-btn.active::after,
.pagination-btn.active span:before,
.pagination-btn.active span:after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid #4299e1;
}

.pagination-btn.active::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.pagination-btn.active::after {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.pagination-btn.active span:before {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}

.pagination-btn.active span:after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

.pagination-btn.active:hover {
  background-color: transparent;
  color: #4299e1;
  border-color: #e2e8f0;
}

.pagination-btn.disabled {
  color: #cbd5e0;
  cursor: not-allowed;
  background-color: #f7fafc;
  border-color: #e2e8f0;
  pointer-events: none;
}

.page-size-selector {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-size-selector label {
  font-size: 0.75rem;
  color: #4a5568;
}

.page-size-selector select {
  padding: 0.25rem 1.5rem 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  cursor: pointer;
  font-size: 0.75rem;
  color: #4a5568;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  background-size: 1rem;
}

.page-size-selector select:hover {
  border-color: #4299e1;
}

/* 페이지네이션2 스타일 */
.custom-pagination-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem 0 3.5rem 0;
}

.custom-pagination-controls {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.custom-pagination-btn {
  background: none;
  border: none;
  color: #1C1B1F;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.custom-pagination-btn.custom-active {
  background: #f48ca5;
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px 0 rgba(244,140,165,0.08);
  pointer-events: none;
}

.custom-pagination-btn.custom-disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

/* 테이블 스타일 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.data-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.data-table tr:hover {
  background-color: #f8f9fa;
}

/* 빈 상태 표시 */
.empty-state {
  text-align: center;
  padding: 2rem;
  color: #6c757d;
}

.empty-state .material-symbols-outlined {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #dee2e6;
}

/* 액션 버튼 */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-edit,
.btn-delete {
  padding: 0.25rem;
  border: none;
  background: none;
  cursor: pointer;
  color: #6c757d;
}

.btn-edit:hover {
  color: #007bff;
}

.btn-delete:hover {
  color: #dc3545;
}

/* 헤더 액션 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

.btn-refresh:hover {
  background-color: #f8f9fa;
}

/* 카드 스타일 */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 1rem;
}

/* 페이지 헤더 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.page-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}



@media (max-width: 768px) {
  .custom-pagination-controls {
    gap: 1rem;
  }

  .custom-pagination-btn {
    width: 30px;
    height: 30px;
  }

  .custom-pagination-btn.custom-active {
    font-size: 1rem;
  }
}