@charset "utf-8";

/* ========================================
   happy13_dashboard - 세련된 대시보드 레이아웃
   미니멀 · 넓은 여백 · 부드러운 톤 (반응형)
   ======================================== */

/* Reset / Base */
.h13-dashboard,
.h13-dashboard * {
	box-sizing: border-box;
}
.h13-dashboard {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	--vx-primary: #1b84ff;
	--vx-primary-soft: rgba(27, 132, 255, 0.14);
	--vx-bg: #f8f7fa;
	--vx-card: #ffffff;
	--vx-border: rgba(15, 23, 42, 0.08);
	--vx-text: #4b4b4b;
	--vx-muted: rgba(76, 78, 100, 0.68);
	--vx-shadow-sm: 0 4px 18px rgba(15, 23, 42, 0.06);
	--vx-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
	--vx-sidebar-bg: #111827;
	--vx-sidebar-text: rgba(255, 255, 255, 0.78);
	--vx-sidebar-muted: rgba(255, 255, 255, 0.52);
	--vx-sidebar-hover: rgba(255, 255, 255, 0.07);
	--vx-radius: 10px;
	color: var(--vx-text);
	background: var(--vx-bg);
	-webkit-font-smoothing: antialiased;
}

/* Alert styles */
.dm-alert {
	padding: 12px 16px;
	margin-bottom: 16px;
	margin-top: 1rem;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
}

.dm-alert-error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
}

.dm-alert-success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #16a34a;
}

.dm-alert-warning {
	background-color: #fffbeb;
	border: 1px solid #fed7aa;
	color: #ea580c;
}

.dm-alert-info {
	background-color: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #2563eb;
}
.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
}
.skip a:focus {
	left: 0;
	display: block;
	padding: 12px 24px;
	background: #1a1d29;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
}

/* 사이드바 오버레이 */
.h13-sidebar-overlay {
	display: none;
}

/* ========== 래퍼 ========== */
.h13-wrapper {
	flex: 1;
	display: flex;
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: 100vh;
}

.h13-wrapper.h13-has-sidebar {
	padding-left: 260px;
}

.h13-toolbar {
	display: none;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}

.h13-sidebar-toggle {
	appearance: none;
	border: 1px solid var(--vx-border);
	background: #fff;
	color: #111827;
	border-radius: 10px;
	padding: 10px 12px;
	line-height: 1;
	font-weight: 800;
	cursor: pointer;
	box-shadow: var(--vx-shadow-sm);
}

.h13-sidebar-toggle:active {
	transform: translateY(1px);
}

/* ========== 사이드바 ========== */
.h13-sidebar {
	width: 260px;
	flex-shrink: 0;
	background: var(--vx-sidebar-bg);
	color: var(--vx-sidebar-muted);
	overflow-y: auto;
	overflow-x: hidden;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	z-index: 104;
}
.h13-sidebar-inner {
	padding: 12px 0 24px;
}

.h13-sidebar-brand {
	padding: 10px 16px 14px;
	
	margin: 0px;
	margin-top:-10px;
	margin-bottom:0px;
	border-radius: 0px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.h13-sidebar-brand-link {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 700;
	letter-spacing: -0.02em;
}

.h13-sidebar-brand-mark {
	width: 30px;
	height: 30px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1b84ff, #3aa3ff);
	box-shadow: 0 6px 18px rgba(27, 132, 255, 0.35);
}

.h13-sidebar-brand-logo {
	height: 48px;
	width: auto;
	display: block;
}

.h13-sidebar-brand-text {
	font-size: 0.98rem;
	line-height: 1.2;
}

.h13-sidebar-brand-link:hover {
	color: #fff;
}
.h13-sidebar-user {
	padding: 0 20px 20px;
	margin-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.h13-sidebar-search {
	padding: 0px;
}

.h13-sidebar-search-input {
	width: 100%;
	padding: 10px 12px;
	border-radius: 0px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-top:0px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.88);
	outline: none;
	font-size: 0.875rem;
}

.h13-sidebar-search-input::placeholder {
	color: rgba(255, 255, 255, 0.55);
}

.h13-sidebar-search-input:focus {
	border-color: rgba(27, 132, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(27, 132, 255, 0.18);
}
.h13-sidebar-user .h13-nav-title {
	padding: 0 0 10px;
	margin: 0px0;
	padding-top:10px!important;
	
}
.h13-user-dl {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 4px 12px;
	margin: 0 0 12px;
	font-size: 0.8125rem;
}
.h13-user-dl dt {
	color: var(--vx-sidebar-muted);
	font-weight: 500;
}
.h13-user-dl dd {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	word-break: break-all;
}
.h13-user-muted {
	color: #9ca3af;
	font-size: 0.8125rem;
	margin: 0 0 10px;
}
.h13-user-actions {
	margin: 0;
}
.h13-sidebar-user .h13-btn {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 0.8125rem;
	text-decoration: none;
	margin-right: 6px;
	margin-bottom: 4px;
	transition: background 0.2s, color 0.2s;
}
.h13-sidebar-user .h13-btn {
	background: rgba(255, 255, 255, 0.1);
	color: #e5e7eb;
	border: 1px solid rgba(255, 255, 255, 0.15);
}
.h13-sidebar-user .h13-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}
.h13-sidebar-user .h13-btn-outline {
	background: transparent;
	color: #9ca3af;
	border: 1px solid rgba(255, 255, 255, 0.2);
}
.h13-sidebar-user .h13-btn-outline:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #e5e7eb;
}
.h13-sidebar-user .h13-btn {
	margin-bottom: 0.5rem;
}
.dm-login-desc { 
	margin-bottom: 1.5rem; 
	padding: 0.875rem 1.125rem;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 0.9rem;
	color: #64748b;
	text-align: center;
	font-weight: 400;
	line-height: 1.5;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	position: relative;
	overflow: hidden;
}

.dm-login-desc::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}
.h13-sidebar-user .h13-btn:first-child {
	background: rgba(27, 132, 255, 0.18);
	color: rgba(194, 224, 255, 0.95);
	border: 1px solid rgba(27, 132, 255, 0.25);
}
.h13-sidebar-user .h13-btn:first-child:hover {
	background: rgba(27, 132, 255, 0.26);
	color: #eaf5ff;
	border-color: rgba(27, 132, 255, 0.35);
}
.h13-nav-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--vx-sidebar-muted);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 10px 20px 8px;
	margin: 10px 0 6px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	position: sticky;
	top: 0;
	z-index: 3;
}
.h13-sidebar-user .h13-nav-title {
	margin-top: 0;
	border-top: none;
	background: transparent;
	padding-top: 0;
}
.h13-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.h13-nav-list li {
	margin: 0;
}
.h13-nav-list li a {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	margin: 0 14px;
	border-radius: 9px;
	color: var(--vx-sidebar-text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: background 0.2s ease, color 0.2s ease;
}
.h13-nav-list li a:hover {
	background: var(--vx-sidebar-hover);
	color: rgba(255, 255, 255, 0.92);
}
.h13-nav-list li.active > a {
	background: rgba(27, 132, 255, 0.22);
	color: #fff;
	font-weight: 600;
	box-shadow: none;
}
.h13-nav-list li a {
	position: relative;
}
.h13-nav-list li.active > a::before {
	content: "";
	position: absolute;
	left: -12px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 18px;
	background: var(--vx-primary);
	border-radius: 0 4px 4px 0;
}
.h13-nav-list ul {
	list-style: none;
	margin: 0;
	padding: 4px 0 0 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	margin-left: 28px;
}
.h13-nav-list ul li a {
	padding: 8px 16px;
	font-size: 0.875rem;
	margin: 0 0 0 -8px;
}
.h13-nav-divider {
	height: 1px;
	margin: 12px 20px;
	background: rgba(255, 255, 255, 0.06);
}
.h13-nav-divider span {
	display: none;
}

/* ========== 메인 콘텐츠 ========== */
.h13-main {
	flex: 1;
	min-width: 0;
	padding: 28px 24px 40px;
	background: var(--vx-bg);
	overflow-x: hidden;
}

.h13-pagebar {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--vx-border);
	box-shadow: var(--vx-shadow-sm);
}

.h13-page-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.02em;
}

.h13-login-brand {
	display: flex;
	justify-content: center;
	margin: 8px 0 18px;
}

.h13-login-brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #111827;
	font-weight: 800;
}

.h13-login-logo {
	height: 42px;
	width: auto;
	display: block;
}

.h13-login-title {
	font-size: 1.05rem;
	letter-spacing: -0.02em;
}
.h13-content {
	background: var(--vx-card);
	border-radius: 12px;
	box-shadow: var(--vx-shadow-sm);
	border: 1px solid var(--vx-border);
	padding: 32px 36px;
	min-height: 420px;
	transition: box-shadow 0.2s ease;
}
.h13-content:hover {
	box-shadow: var(--vx-shadow-md);
}
.h13-content > *:first-child {
	margin-top: 0;
}
.h13-content img {
	max-width: 80%;
	height: auto;
}

/* ========== 푸터 ========== */
.h13-footer {
	background: #1a1d29;
	color: #6b7280;
	margin-top: auto;
	border-top: none;
}
.h13-footer-inner {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 16px 24px;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.01em;
}
.h13-footer p {
	margin: 0;
}
.h13-footer a {
	color: #9ca3af;
	text-decoration: none;
	transition: color 0.2s ease;
}
.h13-footer a:hover {
	color: #fff;
}

/* ========== 반응형: 태블릿 ========== */
@media (max-width: 991px) {
	.h13-wrapper {
		padding-left: 0;
	}
	.h13-wrapper.h13-has-sidebar {
		padding-left: 0;
	}
	.h13-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 104;
		transform: translateX(-100%);
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
	}
	.h13-dashboard.h13-sidebar-open .h13-sidebar {
		transform: translateX(0);
	}
	.h13-dashboard.h13-sidebar-open .h13-sidebar-overlay {
		opacity: 1;
		pointer-events: auto;
	}
	.h13-sidebar-overlay {
		display: block;
		position: fixed;
		inset: 0;
		top: 0;
		background: rgba(0, 0, 0, 0.35);
		backdrop-filter: blur(2px);
		z-index: 103;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}
	.h13-main {
		padding: 20px 16px 32px;
	}
	.h13-toolbar {
		display: flex;
	}
	.h13-content {
		padding: 24px 20px;
		border-radius: 10px;
	}
}

/* ========== 반응형: 모바일 ========== */
@media (max-width: 768px) {
	.h13-sidebar {
		width: 280px;
	}
	.h13-sidebar .h13-nav-title {
		cursor: pointer;
		padding: 12px 20px;
		margin: 0;
		user-select: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	.h13-sidebar .h13-nav-title::after {
		content: "";
		width: 0;
		height: 0;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
		border-top: 5px solid currentColor;
		opacity: 0.7;
		transition: transform 0.2s ease;
	}
	.h13-sidebar.is-open .h13-nav-title::after {
		transform: rotate(180deg);
	}
	.h13-sidebar .h13-nav-list,
	.h13-sidebar .h13-gnb .h13-nav-list {
		display: none;
		padding: 0 0 8px 0;
	}
	.h13-sidebar.is-open .h13-nav-list,
	.h13-sidebar.is-open .h13-gnb .h13-nav-list {
		display: block;
	}
	.h13-main {
		padding: 16px 12px 24px;
	}
	.h13-content {
		padding: 20px 16px;
		border-radius: 10px;
	}
	.h13-footer-inner {
		padding: 14px 16px;
		font-size: 12px;
	}
}

@media (max-width: 768px) {
	.h13-dashboard.h13-sidebar-expanded .h13-sidebar .h13-nav-list,
	.h13-dashboard.h13-sidebar-expanded .h13-sidebar .h13-gnb .h13-nav-list {
		display: block;
	}
	.h13-dashboard.h13-sidebar-expanded .h13-sidebar .h13-nav-title::after {
		transform: rotate(180deg);
	}
}
