/* CSS 변수 정의 - 라이트 모드 */
:root {
	/* 주요 색상 */
	--primary-blue: #1976d2;
	--primary-light-blue: #42a5f5;
	--primary-dark-blue: #0d47a1;
	
	/* 배경 색상 */
	--bg-primary: #e3f2fd;
	--bg-secondary: #bbdefb;
	--bg-tertiary: #90caf9;
	--bg-white: rgba(255, 255, 255, 1);
	--bg-container: rgba(255, 255, 255, 0.95);
	--bg-input: rgba(255, 255, 255, 0.8);
	--bg-input-focus: rgba(255, 255, 255, 0.95);
	--bg-page: #f8f9fa;
	--bg-header: #ffffff;
	--bg-submenu: rgba(227, 242, 253, 0.3);
	--bg-sidebar: #32324D;
	
	/* 텍스트 색상 */
	--text-primary: #37474f;
	--text-secondary: #546e7a;
	--text-muted: #90a4ae;
	--text-white: rgba(255, 255, 255, 0.9);
	--text-dark: #2c3e50;
	--text-nav: #495057;
	
	/* 테두리 색상 */
	--border-primary: #e3f2fd;
	--border-focus: #1976d2;
	--border-container: rgba(255, 255, 255, 0.3);
	--border-light: #e9ecef;
	--border-input: #dee2e6;
	
	/* 그림자 색상 */
	--shadow-primary: rgba(25, 118, 210, 0.15);
	--shadow-button: rgba(25, 118, 210, 0.3);
	--shadow-button-hover: rgba(25, 118, 210, 0.4);
	--shadow-light: rgba(0, 0, 0, 0.05);
	--shadow-medium: rgba(0, 0, 0, 0.1);
	
	/* 상태 색상 */
	--success: #4caf50;
	--success-bg: rgba(76, 175, 80, 0.1);
	--success-border: rgba(76, 175, 80, 0.2);
	--success-text: #388e3c;
	
	--warning: #ff9800;
	--warning-bg: rgba(255, 193, 7, 0.1);
	--warning-border: rgba(255, 193, 7, 0.2);
	--warning-text: #795548;
	
	--error: #f44336;
	--error-bg: rgba(244, 67, 54, 0.1);
	--error-border: rgba(244, 67, 54, 0.2);
	--error-text: #d32f2f;
	
	--info: #2196f3;
	--info-bg: rgba(33, 150, 243, 0.1);
	--info-border: rgba(33, 150, 243, 0.2);
	--info-text: #1976d2;
	
	/* 애니메이션 효과 */
	--animation-scale: 1.05;
	--animation-rotate: 0.5deg;
	--transition-fast: 0.2s ease;
	--transition-normal: 0.3s ease;
	--transition-slow: 0.5s ease;
	
	/* 간격 */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 16px;
	--spacing-lg: 24px;
	--spacing-xl: 32px;
	--spacing-xxl: 48px;
	
	/* 둥근 모서리 */
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 24px;
	
	/* 폰트 */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--font-size-xs: 12px;
	--font-size-sm: 14px;
	--font-size-md: 16px;
	--font-size-lg: 18px;
	--font-size-xl: 24px;
	--font-size-xxl: 32px;
	
	--sidebar-width: 280px;
}
/* 다크 모드 변수 */
@media (prefers-color-scheme: dark) {
	:root {
		/* 배경 색상 */
		--bg-primary: #0d47a1;
		--bg-secondary: #1565c0;
		--bg-tertiary: #1976d2;
		--bg-white: rgba(255, 255, 255, 0.1);
		--bg-container: rgba(255, 255, 255, 0.1);
		--bg-input: rgba(255, 255, 255, 0.1);
		--bg-input-focus: rgba(255, 255, 255, 0.15);
		--bg-page: #121212;
		--bg-header: rgba(255, 255, 255, 0.05);
		--bg-submenu: rgba(25, 118, 210, 0.1);
		
		/* 텍스트 색상 */
		--text-primary: rgba(255, 255, 255, 0.9);
		--text-secondary: rgba(255, 255, 255, 0.8);
		--text-muted: rgba(255, 255, 255, 0.5);
		--text-white: rgba(255, 255, 255, 0.9);
		--text-dark: rgba(255, 255, 255, 0.9);
		--text-nav: rgba(255, 255, 255, 0.8);
		
		/* 테두리 색상 */
		--border-primary: rgba(255, 255, 255, 0.2);
		--border-focus: rgba(66, 165, 245, 0.8);
		--border-container: rgba(255, 255, 255, 0.2);
		--border-light: rgba(255, 255, 255, 0.1);
		--border-input: rgba(255, 255, 255, 0.2);
		
		/* 그림자 색상 */
		--shadow-primary: rgba(0, 0, 0, 0.3);
		--shadow-button: rgba(66, 165, 245, 0.4);
		--shadow-button-hover: rgba(66, 165, 245, 0.6);
		--shadow-light: rgba(0, 0, 0, 0.2);
		--shadow-medium: rgba(0, 0, 0, 0.4);
		
		/* 상태 색상 */
		--success-bg: rgba(76, 175, 80, 0.2);
		--success-border: rgba(76, 175, 80, 0.4);
		--success-text: rgba(255, 255, 255, 0.9);
		
		--warning-bg: rgba(255, 193, 7, 0.2);
		--warning-border: rgba(255, 193, 7, 0.4);
		--warning-text: rgba(255, 255, 255, 0.9);
		
		--error-bg: rgba(244, 67, 54, 0.2);
		--error-border: rgba(244, 67, 54, 0.4);
		--error-text: rgba(255, 255, 255, 0.9);
		
		--info-bg: rgba(33, 150, 243, 0.2);
		--info-border: rgba(33, 150, 243, 0.4);
		--info-text: rgba(255, 255, 255, 0.9);
		
		/* 애니메이션 효과 */
		--animation-scale: 1.02;
		--animation-rotate: 0.3deg;
	}
}
/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html, body {
	height: 100%;
	overflow-x: hidden;
}
body {
	margin: 0;
	padding: 0;
	font-family: var(--font-family);
	background: var(--bg-page);
	color: var(--text-primary);
	overflow-x: hidden;
}
/* 공통 컨테이너 스타일 */
.container {
	background: var(--bg-container);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: var(--radius-lg);
	box-shadow: 
		0 25px 50px var(--shadow-primary),
		0 0 0 1px var(--border-container),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
	border: 1px solid var(--border-container);
	transition: all var(--transition-normal);
}
/* 공통 카드 스타일 */
.card {
	background: var(--bg-container);
	border-radius: var(--radius-lg);
	box-shadow: 0 8px 25px var(--shadow-primary);
	border: 1px solid var(--border-container);
	padding: var(--spacing-lg);
	transition: all var(--transition-normal);
}
.card:hover {
	transform: none;
}
/* 공통 버튼 스타일 */
.btn {
	padding: var(--spacing-sm) var(--spacing-md);
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	font-size: var(--font-size-sm);
	font-weight: 600;
	transition: all var(--transition-normal);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-xs);
}
.btn-primary {
	background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light-blue) 100%);
	color: var(--text-white);
	box-shadow: 0 4px 15px var(--shadow-button);
}
.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px var(--shadow-button-hover);
}
.btn-secondary {
	background: var(--bg-white);
	color: var(--text-primary);
	border: 1px solid var(--border-input);
}
.btn-secondary:hover {
	background: var(--bg-input);
	transform: translateY(-1px);
}
/* 공통 입력 필드 스타일 */
.input-field {
	width: 100%;
	padding: var(--spacing-md) var(--spacing-lg);
	border: 2px solid var(--border-primary);
	border-radius: var(--radius-md);
	font-size: var(--font-size-md);
	font-weight: 500;
	background: var(--bg-input);
	backdrop-filter: blur(10px);
	transition: all var(--transition-normal);
	color: var(--text-primary);
}
.input-field:focus {
	outline: none;
	border-color: var(--border-focus);
	box-shadow: 
		0 0 0 4px rgba(25, 118, 210, 0.1),
		0 8px 25px var(--shadow-primary);
	background: var(--bg-input-focus);
	transform: translateY(-2px);
}
.input-field::placeholder {
	color: var(--text-muted);
	font-weight: 400;
}
/* 공통 메시지 스타일 */
.message {
	border-radius: var(--radius-md);
	padding: var(--spacing-md) var(--spacing-lg);
	font-size: var(--font-size-sm);
	font-weight: 500;
	text-align: center;
	backdrop-filter: blur(10px);
	transition: all var(--transition-normal);
}
.message-success {
	background: var(--success-bg);
	border: 1px solid var(--success-border);
	color: var(--success-text);
}
.message-warning {
	background: var(--warning-bg);
	border: 1px solid var(--warning-border);
	color: var(--warning-text);
}
.message-error {
	background: var(--error-bg);
	border: 1px solid var(--error-border);
	color: var(--error-text);
}
.message-info {
	background: var(--info-bg);
	border: 1px solid var(--info-border);
	color: var(--info-text);
}
/* Header */
.header {
	background: linear-gradient(to right, #A50082, #7057A3);
	border-bottom: 1px solid var(--border-light);
	box-shadow: 0 2px 4px var(--shadow-light);
	transition: all var(--transition-normal);
}
.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--spacing-lg);
	display: flex;
	align-items: center;
	height: 70px;
}
.logo {
	font-size: var(--font-size-xl);
	font-weight: bold;
	color: var(--primary-blue);
	margin-right: var(--spacing-xxl);
	cursor: pointer;
	transition: color var(--transition-normal);
}
.logo:hover {
	color: var(--primary-light-blue);
}
.nav {
	display: flex;
	align-items: center;
	flex: 1;
}
.nav-item {
	padding: 0 var(--spacing-lg);
	font-weight: 500;
	color: var(--text-nav);
	cursor: pointer;
	transition: all var(--transition-normal);
	border-bottom: 3px solid transparent;
	height: 70px;
	display: flex;
	align-items: center;
}
.nav-item:hover, .nav-item.active {
	color: var(--primary-blue);
	border-bottom-color: var(--primary-blue);
}
.user-actions {
	display: flex;
	align-items: center;
	gap: var(--spacing-md);
}
.btn-login {
	background: var(--bg-white);
	color: var(--text-nav);
	border: 1px solid var(--border-input);
	padding: var(--spacing-sm) var(--spacing-md);
	border-radius: var(--radius-sm);
	cursor: pointer;
	font-size: var(--font-size-sm);
	transition: all var(--transition-normal);
	text-decoration: none;
}
.btn-login:hover {
	background: var(--bg-input);
	transform: translateY(-1px);
}
/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
	:root {
		--bg-container: #ffffff;
		--bg-input: #ffffff;
		--text-primary: #000000;
		--border-container: var(--primary-blue);
		--border-primary: var(--primary-blue);
		--bg-header: #ffffff;
		--text-nav: #000000;
	}
}
/* ====== 메뉴/사이드바/사용자 메뉴/반응형 ====== */
/*2025-09-05*/
@font-face {
    font-family: 'S-CoreDream-4Regular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'S-CoreDream-6Bold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
.sidebar-bottom {
	flex-shrink: 0;
	position: relative;
	display: flex;
	flex-direction: column;
}
.illust {
	width: 200px;
	height: auto;
	margin: 0 auto;
	padding: 20px 0;
	pointer-events: none;
}
.sidebar {
	width: var(--sidebar-width);
	background: var(--bg-sidebar);
/* 	border-right: 1px solid #e5e5e5; */
	height: 100vh;
	position: fixed;
	top: 0; left: 0;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	font-family: "S-CoreDream-6Bold";
	font-weight:normal;
}
.sidebar-header {
	padding: 22px 16px;
	font-size: 18px;
	font-weight: 600;
	color: var(--text-white);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
}
.sidebar-logo img {width:220px; height:auto; margin:0 auto;}
.sidebar-logo svg {
	width: 24px;
	height: 24px;
	color: var(--text-white);
}
.sidebar-logo i {
	font-size: 20px;
	color: #666;
}
.sidebar-nav {
	flex: 1 1 auto;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 0;
	padding-bottom: 16px;
}
.menu-list {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin: 0;
	padding: 16px 0;
	list-style: none;
}
.menu-item {
	margin: 0 12px 4px 12px;
	flex: 0 0 auto;
}
.menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	border-radius: 6px;
	transition: all 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 500;
	box-sizing: border-box;
}
.menu-link i {
	font-size: 16px;
	width: 20px;
	text-align: center;
	color: #fff;
	flex-shrink: 0;
}
.menu-item.active > .menu-link,
.menu-link:hover {
	background: #fff;
	color: #1976d2;
	font-weight: 600;
}
.menu-item.active > .menu-link i,
.menu-link:hover i {
	color: #1976d2;
}
.menu-text {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: "S-CoreDream-6Bold";
	font-size:18px;
}
.main-content {
	margin-left: 260px;
	transition: margin-left 0.3s;
    flex: 1;
    padding: 94px 32px 32px 32px;
}
.menu-toggle {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: var(--spacing-sm);
	border-radius: var(--radius-sm);
	transition: all var(--transition-normal);
	display: none;
}
.menu-toggle:hover {
	background: var(--bg-input);
	color: var(--text-primary);
}
/* 사용자 메뉴 */
.user-menu {
	position: relative;
}
.user-menu-toggle {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: var(--spacing-sm) var(--spacing-md);
	border-radius: var(--radius-md);
	transition: all var(--transition-normal);
	font-size: var(--font-size-sm);
}
.user-menu-toggle:hover {
	background: var(--bg-input);
	color: var(--text-primary);
}
.user-menu .user-name,
.user-menu-toggle .user-name {
	font-weight: 500;
	color: #fff;
}
.user-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bg-white);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-md);
	box-shadow: 0 8px 25px var(--shadow-medium);
	min-width: 200px;
	z-index: 1001;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all var(--transition-normal);
}
.user-dropdown.show {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.dropdown-item {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	padding: var(--spacing-md) var(--spacing-lg);
	color: var(--text-secondary);
	text-decoration: none;
	transition: all var(--transition-normal);
	font-size: var(--font-size-sm);
}
.dropdown-item:hover {
	background: var(--bg-input);
	color: var(--text-primary);
}
.dropdown-divider {
	height: 1px;
	background: var(--border-light);
	margin: var(--spacing-sm) 0;
}
/* 서브메뉴 */
.menu-item.has-submenu {
	position: relative;
}
.menu-link.submenu-toggle {
	cursor: pointer;
}
.submenu-arrow {
	margin-left: auto;
	font-size: 14px;
	color: #999;
	transition: transform 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.submenu-arrow svg {
	width: 16px;
	height: 16px;
}
.menu-item.open > .menu-link .submenu-arrow {
	transform: rotate(180deg);
	color: #1976d2;
}
.submenu-list {
	list-style: none;
	display: none;
	flex-direction: column;
	margin: 4px 0 0 0;
	padding: 0;
	background: transparent;
}
.menu-item.open > .submenu-list {
	display: flex;
}
.submenu-item {
	margin: 0 0 4px 0;
}
/*20250905*/
.submenu-link,
.submenu-link:visited {
	color: #fff;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 16px;
	position: relative;
	margin-left: 32px;
	font-family: "S-CoreDream-4Regular";
}
.submenu-item.active > .submenu-link,
.submenu-link:hover {
	background: #fff;
	color: #97188B;
	font-weight: 600;
}
.sidebar-footer {
	flex-shrink: 0;
	padding: 16px;
	font-size: 12px;
	color: #999;
	background: #fafafa;
	border-top: 1px solid #e5e5e5;
	text-align: center;
}
.footer-content {
	display: flex;
	justify-content: center;
	gap: 8px;
	align-items: center;
	margin-bottom: 4px;
}
.footer-title {
	font-weight: 600;
	color: #666;
	font-size: 13px;
}
.footer-version {
	font-size: 11px;
	color: #999;
}
.footer-copyright {
	font-size: 11px;
	color: #ccc;
}
/* 사이드바 스크롤바 스타일링 */
.sidebar-nav::-webkit-scrollbar {
	width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
	background: rgba(241, 243, 244, 0.8);
	border-radius: 3px;
	margin: 8px 0;
}
.sidebar-nav::-webkit-scrollbar-thumb {
	background: #c1c8cd;
	border-radius: 3px;
	transition: all 0.2s ease;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
	background: #90a4ae;
}
/* ====== 헤더(상단) ====== */
.top-header {
   /*  background: var(--bg-white); */
    background: var(--bg-sidebar);
    padding: 0 var(--spacing-xl);
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px var(--shadow-light);
    position: fixed;
	top: 0;
	right: 0;
	left: var(--sidebar-width);
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    z-index: 999;
}
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}
.header-right {
    display: flex;
    align-items: center;
}
/* 헤더 전용 page-title - 흰색 */
.header-page-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #fff;
    margin: 0;
}
/* 헤더 전용 page-title - 흰색 */
.page-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: #000000;
    margin: 0;
}
/* ====== 토스트 메시지 스타일 ====== */
.toast-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.toast-backdrop.show {
  display: block;
  opacity: 1;
}
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 500px;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.toast::before {
  content: '';
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 10px 0 0 10px;
}
.toast.success::before {
  background: #28a745;
}
.toast.error::before {
  background: #dc3545;
}
.toast.warning::before {
  background: #ffc107;
}
.toast.info::before {
  background: #2196f3;
}
.toast-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  line-height: 1.5;
  padding-left: 8px;
}
.toast-close {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #999;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toast-close:hover {
  background: #f0f0f0;
  color: #333;
}
/* 토스트 타입별 아이콘 추가 */
.toast.success .toast-message::before {
  content: '✅';
  margin-right: 8px;
}
.toast.error .toast-message::before {
  content: '❌';
  margin-right: 8px;
}
.toast.warning .toast-message::before {
  content: '⚠️';
  margin-right: 8px;
}
.toast.info .toast-message::before {
  content: 'ℹ️';
  margin-right: 8px;
}
/* ====== 확인 팝업 스타일 ====== */
.confirm-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.confirm-backdrop.show {
  opacity: 1;
}
.confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 99999;
  min-width: 400px;
  max-width: 500px;
  opacity: 0;
  transition: all 0.3s ease;
}
.confirm-modal.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.confirm-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}
.confirm-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.confirm-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.confirm-close:hover {
  background: #e5e7eb;
  color: #333;
}
.confirm-body {
  padding: 32px 24px;
  text-align: center;
}
.confirm-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.confirm-modal.info .confirm-icon {
  background: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}
.confirm-modal.info .confirm-icon::before {
  content: 'ℹ️';
}
.confirm-modal.warning .confirm-icon {
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}
.confirm-modal.warning .confirm-icon::before {
  content: '⚠️';
}
.confirm-modal.danger .confirm-icon {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}
.confirm-modal.danger .confirm-icon::before {
  content: '🗑️';
}
.confirm-message {
  font-size: 15px;
  color: #495057;
  line-height: 1.6;
  margin: 0;
}
.confirm-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}
.btn-confirm-cancel,
.btn-confirm-ok {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 80px;
}
.btn-confirm-cancel {
  background: #6c757d;
  color: white;
}
.btn-confirm-cancel:hover {
  background: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}
.btn-confirm-ok {
  background: #2196f3;
  color: white;
}
.confirm-modal.danger .btn-confirm-ok {
  background: #dc3545;
}
.confirm-modal.danger .btn-confirm-ok:hover {
  background: #c82333;
}
.btn-confirm-ok:hover {
  background: #1976d2;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}
/* 모바일 반응형 */
@media (max-width: 576px) {
  .confirm-modal {
    min-width: 90%;
    max-width: 90%;
  }
  
  .confirm-body {
    padding: 24px 20px;
  }
  
  .confirm-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}
/* ====== 공통 모던 모달 스타일 ====== */
/* Modern Modal Design - 모든 등록 팝업에 적용 */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: none;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    animation: fadeIn 0.3s ease !important;
    pointer-events: auto !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.modal-overlay.show,
.modal-overlay.active {
    display: flex !important;
}
.modal-content,
.modal-dialog {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-radius: 20px !important;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    pointer-events: auto !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    animation: slideUp 0.4s ease !important;
}
.modal-content.x-large,
.modal-dialog.x-large {
    max-width: 900px !important;
}
.modal-header {
    padding: 28px 32px 20px !important;
    background: linear-gradient(to right, #A50082, #7057A3) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative !important;
    border: none !important;
}
.modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, 
        rgba(165, 0, 130, 0.3),
        rgba(112, 87, 163, 0.3));
}
.modal-title,
.modal-header h1,
.modal-header h2,
.modal-header h3,
.modal-header h4 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}
.modal-close,
.btn-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    cursor: pointer !important;
    padding: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
}
.modal-close:hover,
.btn-close:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: rotate(90deg) !important;
}
.modal-close svg,
.btn-close svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
}
.modal-body {
    padding: 32px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1;
    background: #ffffff !important;
}
/* 커스텀 스크롤바 */
.modal-body::-webkit-scrollbar {
    width: 6px !important;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 3px !important;
}
.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(#A50082, #7057A3) !important;
    border-radius: 3px !important;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#850069, #5a4682) !important;
}
.modal-footer {
    padding: 20px 32px !important;
    background: linear-gradient(to top, #f8f9fa, #ffffff) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex;
    justify-content: flex-end;
    gap: 12px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03) !important;
}
/* 모던 폼 스타일 */
.modal-body .form-group {
    margin-bottom: 20px;
}
.modal-body .form-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #4a5568 !important;
    margin-bottom: 8px !important;
    display: flex;
    align-items: center;
    gap: 4px;
}
.modal-body .form-label.required::after {
    content: '*' !important;
    color: #e53e3e !important;
    font-size: 16px !important;
    line-height: 1 !important;
    margin-left: 2px !important;
}
.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="tel"],
.modal-body input[type="number"],
.modal-body input[type="date"],
.modal-body input[type="time"],
.modal-body input[type="password"],
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    background: #ffffff !important;
    outline: none !important;
}
.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border-color: #7057A3 !important;
    box-shadow: 0 0 0 3px rgba(112, 87, 163, 0.1) !important;
    transform: translateY(-1px) !important;
}
.modal-body input:hover,
.modal-body select:hover,
.modal-body textarea:hover {
    border-color: #cbd5e0 !important;
}
/* 모던 버튼 스타일 */
.modal-footer .btn {
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative !important;
    overflow: hidden !important;
    letter-spacing: 0.3px !important;
}
.modal-footer .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
.modal-footer .btn:hover::before {
    width: 300px;
    height: 300px;
}
.modal-footer .btn-primary {
    background: linear-gradient(135deg, #A50082, #7057A3) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(165, 0, 130, 0.3) !important;
}
.modal-footer .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(165, 0, 130, 0.4) !important;
}
.modal-footer .btn-secondary,
.modal-footer .btn-cancel {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
.modal-footer .btn-secondary:hover,
.modal-footer .btn-cancel:hover {
    background: #f7fafc !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}
/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-content,
    .modal-dialog {
        width: 95% !important;
        margin: 10px !important;
    }

    .modal-content.x-large,
    .modal-dialog.x-large {
        max-width: 95% !important;
    }

    .modal-header {
        padding: 20px !important;
    }

    .modal-body {
        padding: 20px !important;
    }

    .modal-footer {
        padding: 16px 20px !important;
    }
}

/* ===================================
   다크모드 공통 스타일 오버라이드
   =================================== */
@media (prefers-color-scheme: dark) {
    /* 페이지 배경 */
    body {
        background: #1a1a2e !important;
        color: #e0e0e0 !important;
    }

    /* 컨테이너/카드 배경 */
    .dashboard-container,
    .page-container,
    .content-wrapper,
    .main-content {
        background: #1a1a2e !important;
    }

    /* 카드/박스 스타일 */
    .card,
    .summary-card,
    .stat-card,
    .page-header,
    .search-box,
    .filter-section,
    .table-container,
    .form-section,
    .modal-content,
    .period-toggle,
    .data-card,
    .info-card {
        background: #252542 !important;
        border-color: #3d3d5c !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    }

    /* 텍스트 색상 */
    h1, h2, h3, h4, h5, h6,
    .page-title h1,
    .card-title,
    .section-title,
    .stat-value,
    .stat-label {
        color: #ffffff !important;
    }

    p, span, label,
    .page-title p,
    .card-text,
    .stat-description,
    .form-label {
        color: #b0b0b0 !important;
    }

    /* 입력 필드 */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    select,
    textarea,
    .form-control,
    .form-input {
        background: #1e1e3f !important;
        border-color: #3d3d5c !important;
        color: #e0e0e0 !important;
    }

    input::placeholder,
    textarea::placeholder {
        color: #666680 !important;
    }

    input:focus,
    select:focus,
    textarea:focus,
    .form-control:focus {
        background: #252550 !important;
        border-color: #7057A3 !important;
        box-shadow: 0 0 0 3px rgba(112, 87, 163, 0.2) !important;
    }

    /* 테이블 */
    table,
    .table {
        background: #252542 !important;
    }

    thead,
    th {
        background: #1e1e3f !important;
        color: #ffffff !important;
        border-color: #3d3d5c !important;
    }

    tbody tr {
        background: #252542 !important;
        border-color: #3d3d5c !important;
    }

    tbody tr:nth-child(even) {
        background: #2a2a4a !important;
    }

    tbody tr:hover {
        background: #303060 !important;
    }

    td {
        color: #d0d0d0 !important;
        border-color: #3d3d5c !important;
    }

    /* 버튼 (기본) */
    .btn-secondary,
    .btn-default,
    .btn-cancel {
        background: #3d3d5c !important;
        color: #e0e0e0 !important;
        border-color: #4d4d6c !important;
    }

    .btn-secondary:hover,
    .btn-default:hover,
    .btn-cancel:hover {
        background: #4d4d6c !important;
    }

    /* 드롭다운 */
    .dropdown-menu,
    .select-dropdown {
        background: #252542 !important;
        border-color: #3d3d5c !important;
    }

    .dropdown-item {
        color: #e0e0e0 !important;
    }

    .dropdown-item:hover {
        background: #303060 !important;
    }

    /* 탭 */
    .nav-tabs,
    .tab-header {
        border-color: #3d3d5c !important;
    }

    .nav-tabs .nav-link,
    .tab-btn {
        color: #b0b0b0 !important;
        background: transparent !important;
    }

    .nav-tabs .nav-link.active,
    .tab-btn.active {
        background: #252542 !important;
        color: #ffffff !important;
        border-color: #3d3d5c !important;
    }

    /* 페이지네이션 */
    .pagination .page-link,
    .paging-btn {
        background: #252542 !important;
        color: #e0e0e0 !important;
        border-color: #3d3d5c !important;
    }

    .pagination .page-link:hover,
    .paging-btn:hover {
        background: #303060 !important;
    }

    .pagination .page-item.active .page-link,
    .paging-btn.active {
        background: #7057A3 !important;
        border-color: #7057A3 !important;
    }

    /* 배지/태그 */
    .badge,
    .tag,
    .status-badge {
        background: #3d3d5c !important;
    }

    /* 구분선 */
    hr,
    .divider {
        border-color: #3d3d5c !important;
    }

    /* 모달 오버레이 */
    .modal-backdrop,
    .modal-overlay {
        background: rgba(0, 0, 0, 0.7) !important;
    }

    /* 스크롤바 (웹킷 브라우저) */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #1a1a2e;
    }

    ::-webkit-scrollbar-thumb {
        background: #4d4d6c;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #5d5d7c;
    }

    /* 차트 컨테이너 */
    .chart-container,
    .chart-wrapper {
        background: #252542 !important;
    }

    /* 기타 요소들 */
    .date-display,
    .info-box,
    .notice-box {
        background: #1e1e3f !important;
        color: #b0b0b0 !important;
    }

    /* period-btn 활성화 상태 유지 */
    .period-btn {
        color: #b0b0b0 !important;
    }

    .period-btn:hover {
        background: #303060 !important;
        color: #e0e0e0 !important;
    }

    .period-btn.active {
        background: linear-gradient(135deg, #A50082 0%, #7057A3 100%) !important;
        color: #ffffff !important;
    }
}

/* ====== 전역 로딩 오버레이 스타일 ====== */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-content {
    background: white;
    padding: 32px 48px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: loadingPopIn 0.3s ease;
}

@keyframes loadingPopIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 스피너 애니메이션 */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #A50082;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.5px;
}

.loading-subtext {
    font-size: 13px;
    color: #666;
    margin-top: -8px;
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .loading-content {
        background: #252542;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }

    .loading-spinner {
        border-color: #3d3d5c;
        border-top-color: #A50082;
    }

    .loading-text {
        color: #e0e0e0;
    }

    .loading-subtext {
        color: #b0b0b0;
    }
}
