@charset "utf-8";

:root {
	--bg-color: rgba(255, 255, 255, 0.95);
	--text-color: #333;
	--panel-bg: rgba(240, 240, 240, 0.9);
	--input-bg: white;
	--input-border: #ddd;
	--button-bg: #4a90e2;
	--button-hover: #357abd;
}

:root[data-theme="dark"] {
	--bg-color: rgba(10, 10, 10, 0.95);
	--text-color: #e0e0e0;
	--panel-bg: rgba(45, 45, 45, 0.9);
	--input-bg: #eeeeee;
	--input-border: #444;
	--button-bg: #414141;
	--button-hover: #5a5a5a;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

.wrap {
	width: 100%;
	height: 100%;
}

.main-grid {
	display: flex;
	width: 100%;
	height: 100%;
	position: relative;
}

#cesiumContainer {
	width: calc(100% - 220px);
	height: 100%;
	margin-left: 220px;
}

/* Side UI Container */
.side-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 220px;
	height: 100%;
	background: var(--bg-color);
	padding: 10px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 20px;
	z-index: 1000;
	overflow-y: auto;
	box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

/* Logo Styles */
.logo {
	width: 100%;
	padding: 10px 0;
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.logo a {
	display: block;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.logo img {
	width: 100%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
	transition: opacity 0.3s ease;
}

/* Control Panel Styles */
.control-panel {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Mode Toggle Container */
.mode-toggle-container {
	display: flex;
	flex-direction: column;
	gap: 0px;
	margin: 0px;
}

.control-panel button {
	display: block;
	width: 100%;
	padding: 12px 15px;
	background: var(--button-bg);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: 'Noto Sans KR', sans-serif;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
}

.control-panel button:hover {
	background: var(--button-hover);
	transform: translateX(5px);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Camera Panel Styles */
.camera-panel {
	background: var(--panel-bg);
	padding: 0px;
	border-radius: 8px;
	margin-top: auto;
	transition: background-color 0.3s ease;
}

.camera-panel h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-family: 'Noto Sans KR', sans-serif;
	color: var(--text-color);
	font-weight: 500;
}

.camera-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.info-group {
	display: flex;
	flex-direction: column;
	gap: 5px; 
}

.info-group label {
	font-size: 12px;
	font-family: 'Noto Sans KR', sans-serif;
	color: var(--text-color);
	font-weight: 500;
}

.info-group input {
	width: 90%;
	padding: 8px;
	border: 1px solid var(--input-border);
	border-radius: 4px;
	font-size: 13px;
	background: var(--input-bg);
	color: var(--input-color);
	transition: all 0.3s ease;
}

.info-group input:focus {
	outline: none;
	border-color: #4a90e2;
	box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.camera-panel button {
	margin-top: 15px;
	width: 100%;
	padding: 10px;
	background: var(--button-bg);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: 'Noto Sans KR', sans-serif;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
}

.camera-panel button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#loadingStatus {
	margin: 10px 0;
	padding: 10px;
	background: var(--panel-bg);
	border-radius: 4px;
	font-size: 13px;
	color: var(--text-color);
	text-align: center;
	font-family: 'Noto Sans KR', sans-serif;
}

/* 측정 도구 토글 버튼 */
.measure-toggle-button {
	position: absolute;
	bottom: 30px;
	left: 230px;
	width: 40px;
	height: 40px;
	background: var(--button-bg);
	border-radius: 4px;
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
}

.measure-toggle-button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
}

.measure-toggle-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* 단면 도구 토글 버튼 */
.section-toggle-button {
	position: absolute;
	bottom: 30px;
	left: 275px;  /* measure-toggle-button보다 35px 오른쪽 */
	width: 40px;
	height: 40px;
	background: var(--button-bg);
	border-radius: 4px;
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
}

.section-toggle-button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
}

.section-toggle-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* 필터 도구 토글 버튼 */
.filter-toggle-button {
	position: absolute;
	bottom: 30px;
	left: 320px;  /* section-toggle-button보다 45px 오른쪽 */
	width: 40px;
	height: 40px;
	background: var(--button-bg);
	border-radius: 4px;
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
}

.filter-toggle-button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
}

.filter-toggle-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* 에셋 도구 토글 버튼 */
.asset-toggle-button {
	position: absolute;
	bottom: 30px;
	left: 365px;  /* filter-toggle-button보다 45px 오른쪽 */
	width: 40px;
	height: 40px;
	background: var(--button-bg);
	border-radius: 4px;
	cursor: pointer;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
}

.asset-toggle-button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
}

.asset-toggle-button img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

/* 측정 도구 컨테이너 스타일 */
.measure-container {
	position: absolute;
	bottom: 80px;
	left: 230px;
	background: var(--bg-color);
	padding: 2px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 998;
	font-family: 'Noto Sans KR', sans-serif;
	transition: all 0.3s ease;
	display: none; /* 기본적으로 숨김 */
}

.measure-button {
	display: block;
	margin: 5px;
	padding: 8px 12px;
	background: var(--button-bg);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.3s ease;
}

.measure-button:hover {
	background: var(--button-hover);
	transform: translateY(-2px);
}

.measure-button.active {
	background: var(--button-hover);
}

/* 단면 도구 컨테이너 스타일 */
.section-container {
	position: absolute;
	bottom: 80px;
	left: 270px;  /* measure-container와 동일한 위치로 조정 */
	background: var(--bg-color);
	padding: 2px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	z-index: 998;
	font-family: 'Noto Sans KR', sans-serif;
	transition: all 0.3s ease;
	display: none; /* 기본적으로 숨김 */
}

/* 필터 도구 컨테이너 스타일 */
.filter-container {
	position: absolute;
	top: 20px;
	left: 230px;
	width: 300px;
	height: 500px; /* 고정 높이 설정 */
	background: var(--panel-bg);
	border: 1px solid var(--input-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	display: none; /* 기본적으로 숨김 */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	flex-direction: column;
}

/* 에셋 도구 컨테이너 스타일 */
.asset-container {
	position: absolute;
	top: 20px; /* 페이지 상단에 가깝게 */
	left: 550px;
	width: 600px; /* 폭을 더 넓게 */
	height: 400px; /* 높이도 조금 늘림 */
	background: var(--panel-bg);
	border: 1px solid var(--input-border);
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	display: none; /* 기본적으로 숨김 */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	flex-direction: column;
}

/* 에셋 헤더 스타일 */
.asset-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--input-border);
	font-weight: 600;
	font-size: 14px;
	color: var(--text-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0; /* 헤더 크기 고정 */
}

.asset-close-btn {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 16px;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 에셋 콘텐츠 컨테이너 */
.asset-content {
	flex: 1;
	padding: 16px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); /* 폭을 3/5 정도로 줄임 (120px * 0.6 = 72px) */
	gap: 8px; /* 간격도 줄임 */
	color: var(--text-color);
	font-size: 16px;
	overflow-y: auto;
	align-items: start;
}

/* 에셋 버튼 스타일 */
.asset-button {
	width: 100%;
	height: 30px;
	padding: 4px 8px;
	border: 1px solid var(--input-border);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	word-break: break-all;
	overflow: hidden;
}

/* 라이트모드 기본 상태 (비활성화) */
.asset-button.inactive-light {
	background: #4a90e2;
	color: white;
}

/* 라이트모드 활성화 상태 */
.asset-button.active-light {
	background: #2c5aa0;
	color: white;
}

/* 라이트모드 호버 상태 */
.asset-button.inactive-light:hover {
	background: #357abd;
	transform: translateY(-1px);
}

.asset-button.active-light:hover {
	background: #1e4a7a;
	transform: translateY(-1px);
}

/* 다크모드 기본 상태 (비활성화) */
.asset-button.inactive-dark {
	background: #666666;
	color: white;
}

/* 다크모드 활성화 상태 */
.asset-button.active-dark {
	background: #222222;
	color: white;
}

/* 다크모드 호버 상태 */
.asset-button.inactive-dark:hover {
	background: #888888;
	transform: translateY(-1px);
}

.asset-button.active-dark:hover {
	background: #444444;
	transform: translateY(-1px);
}

/* 필터 헤더 스타일 */
.filter-header {
	padding: 12px 16px;
	border-bottom: 1px solid var(--input-border);
	font-weight: 600;
	font-size: 14px;
	color: var(--text-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0; /* 헤더 크기 고정 */
}

.filter-close-btn {
	background: none;
	border: none;
	color: var(--text-color);
	cursor: pointer;
	font-size: 16px;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 필터 콤보박스 컨테이너 */
.filter-combo-container {
	flex: 1; /* 남은 공간 모두 차지 */
	overflow-y: auto;
	overflow-x: hidden; /* 가로 스크롤 숨김 */
	padding: 16px;
	padding-bottom: 16px; /* 버튼 컨테이너와의 간격 */
	scrollbar-width: thin; /* Firefox */
	scrollbar-color: #888 #f1f1f1; /* Firefox */
}

/* Webkit 브라우저 스크롤바 스타일 */
.filter-combo-container::-webkit-scrollbar {
	width: 6px;
}

.filter-combo-container::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

.filter-combo-container::-webkit-scrollbar-thumb {
	background: #888;
	border-radius: 3px;
}

.filter-combo-container::-webkit-scrollbar-thumb:hover {
	background: #555;
}

/* 필터 드롭다운 컨테이너 */
.filter-dropdown-container {
	position: relative;
	width: 100%;
	margin-bottom: 16px;
}

.filter-dropdown-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-color);
}

.filter-dropdown-button {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid var(--input-border);
	border-radius: 4px;
	background: var(--input-bg);
	color: var(--input-color);
	font-size: 12px;
	text-align: left;
	cursor: pointer;
	outline: none;
	position: relative;
}

.filter-dropdown-arrow {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--input-color);
	font-size: 10px;
	transition: transform 0.2s;
}

/* 필터 드롭다운 메뉴 */
.filter-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: white;
	border: 1px solid var(--input-border);
	border-top: none;
	border-radius: 0 0 4px 4px;
	max-height: 200px;
	overflow-y: auto;
	z-index: 1001;
	display: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 필터 체크박스 아이템 */
.filter-checkbox-item {
	padding: 8px 12px;
	display: flex;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.2s;
}

.filter-checkbox-item:hover {
	background-color: #f0f0f0;
}

.filter-checkbox {
	margin-right: 8px;
	cursor: pointer;
}

.filter-checkbox-label {
	cursor: pointer;
	font-size: 12px;
	color: #333;
	flex: 1;
}

/* 필터 버튼 컨테이너 */
.filter-button-container {
	padding: 16px;
	border-top: 1px solid var(--input-border);
	display: flex;
	gap: 8px;
	justify-content: space-between;
	background: var(--panel-bg);
	border-radius: 0 0 8px 8px;
	flex-shrink: 0; /* 버튼 컨테이너 크기 고정 */
}

/* 필터 버튼 공통 스타일 */
.filter-reset-btn,
.filter-apply-btn {
	flex: 1;
	padding: 10px 16px;
	background: var(--button-bg);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	transition: background-color 0.2s;
}

.filter-reset-btn:hover,
.filter-apply-btn:hover {
	background: var(--button-hover);
}

/* 다크모드 스타일 */
[data-theme="dark"] .filter-container {
	background: var(--panel-bg);
	border-color: var(--input-border);
}

[data-theme="dark"] .filter-header {
	border-bottom-color: var(--input-border);
	color: var(--text-color);
}

[data-theme="dark"] .filter-close-btn {
	color: var(--text-color);
}

[data-theme="dark"] .filter-dropdown-button {
	background: var(--input-bg);
	border-color: var(--input-border);
	color: #333; /* 다크모드에서도 검정색 유지 */
}

[data-theme="dark"] .filter-dropdown-arrow {
	color: #333; /* 다크모드에서도 검정색 유지 */
}

[data-theme="dark"] .filter-dropdown-menu {
	background: #2a2a2a;
	border-color: var(--input-border);
}

[data-theme="dark"] .filter-checkbox-item:hover {
	background-color: #3a3a3a;
}

[data-theme="dark"] .filter-checkbox-label {
	color: #e0e0e0;
}

[data-theme="dark"] .filter-button-container {
	background: var(--panel-bg);
	border-top-color: var(--input-border);
}

/* 선택된 에셋 정보 창 스타일 */
#selectedAssetsInfo {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 400px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 15px;
	border-radius: 5px;
	font-family: 'Noto Sans KR', sans-serif;
	z-index: 1000;
}

#selectedAssetsInfo h3 {
	margin: 0;
	padding: 10px 0px;
	font-size: 20px;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
}

#selectedAssetsInfo .info-row {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#selectedAssetsInfo .info-row:last-child {
	border-bottom: none;
}

#selectedAssetsInfo .info-label {
	width: 80px;
	color: white;
	font-weight: 500;
}

#selectedAssetsInfo .info-value {
	flex: 1;
	color: white;
}

#selectedAssetsInfo #assetSelector {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	flex: 1;
	width: calc(100% - 80px);
	padding: 8px;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
}

#selectedAssetsInfo #assetSelector option {
	background-color: #333;
	color: white;
	padding: 8px;
}

#selectedAssetsInfo .asset-details {
	margin-top: 5px;
}

#selectedAssetsInfo .info-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}

#selectedAssetsInfo .info-item {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 10px;
	padding: 0px 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

#selectedAssetsInfo .info-item strong {
	color: white;
	font-size: 12px;
	text-align: left;
}

#selectedAssetsInfo .info-item span {
	color: white;
	font-size: 13px;
	text-align: left;
}

/* 파이프 정보 창 스타일 */
#selectedPipeInfo {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 400px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 15px;
	border-radius: 5px;
	font-family: 'Noto Sans KR', sans-serif;
	z-index: 1000;
}

#selectedPipeInfo h3 {
	margin: 0;
	padding: 10px 0px;
	font-size: 20px;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	color: white;
}

#selectedPipeInfo .info-row {
	display: flex;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#selectedPipeInfo .info-row:last-child {
	border-bottom: none;
}

#selectedPipeInfo .info-label {
	width: 100px;
	color: white;
	font-weight: 500;
}

#selectedPipeInfo .info-value {
	flex: 1;
	color: white;
}

#selectedPipeInfo .pipe-details {
	margin-top: 5px;
}

#selectedPipeInfo .info-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 5px;
}

#selectedPipeInfo .info-item {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 10px;
	padding: 0px 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

#selectedPipeInfo .info-item strong {
	color: white;
	font-size: 12px;
	text-align: left;
}

#selectedPipeInfo .info-item span {
	color: white;
	font-size: 13px;
	text-align: left;
}

.metadata-wrapper {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	padding: 15px;
	max-width: 300px;
	max-height: 400px;
	overflow-y: auto;
}

.metadata-container h3 {
	margin: 0 0 10px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid #ddd;
	font-size: 16px;
	color: #333;
}

.metadata-table {
	width: 100%;
	border-collapse: collapse;
}

.metadata-table tr {
	border-bottom: 1px solid #eee;
}

.metadata-table tr:last-child {
	border-bottom: none;
}

.property-name {
	padding: 5px;
	font-weight: bold;
	color: #666;
	width: 40%;
}

.property-value {
	padding: 5px;
	color: #333;
	width: 60%;
}

/* 다크모드 스타일 */
[data-theme="dark"] .metadata-wrapper {
	background: rgba(40, 40, 40, 0.95);
	color: #fff;
}

[data-theme="dark"] .metadata-container h3 {
	color: #fff;
	border-bottom-color: #444;
}

[data-theme="dark"] .property-name {
	color: #aaa;
}

[data-theme="dark"] .property-value {
	color: #fff;
}

[data-theme="dark"] .metadata-table tr {
	border-bottom-color: #444;
}

.sidebar {
	position: fixed;
	right: -300px; /* 초기에는 화면 밖에 위치 */
	top: 0;
	width: 300px;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
	transition: right 0.3s ease;
	z-index: 1000;
	padding: 20px;
	overflow-y: auto;
}

.sidebar.active {
	right: 0; /* 토글 시 화면에 표시 */
}

.cesium-viewer-toolbar {
	position: fixed;
	top: 10px;
	right: 10px;
	z-index: 1001;
}

.cesium-viewer-toolbar button {
	padding: 8px 16px;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	font-family: 'Noto Sans KR', sans-serif;
}

.cesium-viewer-toolbar button:hover {
	background-color: #f0f0f0;
}

/*
.asset-details p {
	margin: 8px 0;
	font-size: 14px;
	line-height: 1.5;
}

.asset-details strong {
	color: #333;
	font-weight: 600;
}
*/

/* Asset 정보 표시 스타일 */
.asset-info-container {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 400px;
	z-index: 1000;
}

.asset-basic-info {
	display: none; /* 첫 번째 흰색 박스 숨김 */
}

.asset-details {
	background: rgba(0,0,0,0.8);
	padding: 5px;
	border-radius: 5px;
	margin-top: 0;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.asset-details h4 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #333;
	font-size: 1.2em;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.info-item {
	display: flex;
	flex-direction: column;
	padding: 10px;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 4px;
}

.info-item strong {
	color: #666;
	margin-bottom: 5px;
	font-size: 0.9em;
}

.info-item span {
	color: #333;
	font-size: 1.1em;
}

/* 메타데이터 컨테이너 스타일 */
.metadata-container {
	font-family: 'Noto Sans KR', sans-serif;
	background: var(--bg-color);
	color: var(--text-color);
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

.metadata-container h3 {
	margin: 0;
	padding: 15px;
	font-size: 16px;
	font-weight: 500;
	color: var(--text-color);
	border-bottom: 1px solid var(--input-border);
	background: var(--panel-bg);
	border-radius: 8px 8px 0 0;
}

.metadata-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	background: var(--bg-color);
}

.metadata-table tr {
	border-bottom: 1px solid var(--input-border);
	transition: background-color 0.3s ease;
}

.metadata-table tr:hover {
	background: var(--panel-bg);
}

.metadata-table tr:last-child {
	border-bottom: none;
}

.metadata-key {
	padding: 12px 15px;
	color: var(--text-color);
	font-weight: 500;
	text-align: left;
	width: 40%;
	font-size: 13px;
	opacity: 0.8;
}

.metadata-value {
	padding: 12px 15px;
	color: var(--text-color);
	word-break: break-all;
	font-size: 13px;
	line-height: 1.4;
}

/* 다크모드 스타일 */
[data-theme="dark"] .metadata-container {
	background: var(--bg-color);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .metadata-container h3 {
	background: var(--panel-bg);
	border-bottom-color: var(--input-border);
}

[data-theme="dark"] .metadata-table tr {
	border-bottom-color: var(--input-border);
}

[data-theme="dark"] .metadata-table tr:hover {
	background: var(--panel-bg);
}

[data-theme="dark"] .metadata-key {
	color: var(--text-color);
	opacity: 0.7;
}

[data-theme="dark"] .metadata-value {
	color: var(--text-color);
}

/* 모드 전환 버튼 스타일 */
.mode-toggle-button {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 15px;
	background: var(--button-bg);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-family: 'Noto Sans KR', sans-serif;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.mode-toggle-button:hover {
	background: var(--button-hover);
	transform: translateX(5px);
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.mode-toggle-button .mode-icon {
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mode-toggle-button .mode-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mode-toggle-button .mode-text {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.mode-toggle-button.tileset-mode {
	border: 2px solid var(--button-hover);
}

.mode-toggle-button.feature-mode {
	border: 2px solid var(--button-hover);
}

/* Brochure Page Styles */
.pdf-container {
	width: 100%;
	height: calc(100vh - 160px);
	margin: 10px 0;
	border: 1px solid #ddd;
	border-radius: 5px;
	overflow: hidden;
}

.pdf-viewer {
	width: 100%;
	height: 100%;
	border: none;
}

.brochure-title {
	text-align: center;
	margin: 0 0 20px 0;
	color: #333;
	font-size: 28px;
	font-weight: bold;
}

.brochure-description {
	text-align: center;
	margin-bottom: 30px;
	color: #666;
	font-size: 16px;
}

.brochure-content {
	padding-top: 120px; /* 헤더 높이만큼 상단 패딩 추가 */
}

/* 브로셔 페이지 전용 오버라이드 - 스크롤 활성화 */
body.brochure-page {
	height: auto !important;
	min-height: 100vh;
	overflow-y: auto;
}

body.brochure-page .wrap {
	overflow: visible !important;
	height: auto !important;
	min-height: 100vh;
}

/* 언어 선택 버튼 스타일 */
.language-selector {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 20px 0;
}

.lang-btn {
	padding: 12px 24px;
	border: 2px solid #1e3a8a;
	background-color: transparent;
	color: #1e3a8a;
	font-size: 16px;
	font-weight: bold;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 80px;
}

.lang-btn:hover {
	background-color: #1e3a8a;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

.lang-btn.active {
	background-color: #1e3a8a;
	color: white;
	box-shadow: 0 2px 4px rgba(30, 58, 138, 0.4);
}

.lang-btn:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}