* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	background: #f0f0f0;
	/*padding: 20px;*/
}
.app-container {
	max-width: 1400px;
margin: 0 auto 50px;
	display: flex;
	flex-direction: column;
	height: 800px;
	background: #525659;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.toolbar {
	background: #323639;
	border-bottom: 1px solid #1c1c1c;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	color: #fff;
}
.toolbar-group {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px;
	border-right: 1px solid #4a4a4a;
}
.toolbar-group:last-child {
	border-right: none;
}
button {
	background: #464a4d;
	color: #fff;
	border: 1px solid #5a5a5a;
	border-radius: 3px;
	padding: 6px 12px;
	cursor: pointer;
	font-size: 13px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 4px;
}
button:hover {
	background: #5a5e61;
	border-color: #6a6a6a;
}
button:active {
	background: #3a3e41;
}
button:disabled {
	background: #3a3a3a;
	color: #888;
	cursor: not-allowed;
	border-color: #4a4a4a;
}
.icon-btn {
	padding: 6px 8px;
	font-size: 16px;
}
.page-input-container {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #464a4d;
	padding: 4px 8px;
	border-radius: 3px;
	border: 1px solid #5a5a5a;
}
.page-input {
	background: #2a2e31;
	border: 1px solid #1a1a1a;
	color: #fff;
	width: 45px;
	padding: 4px 6px;
	text-align: center;
	border-radius: 2px;
	font-size: 13px;
}
.page-total {
	color: #b0b0b0;
	font-size: 13px;
}
.zoom-select {
	background: #464a4d;
	color: #fff;
	border: 1px solid #5a5a5a;
	padding: 4px 8px;
	border-radius: 3px;
	font-size: 13px;
	cursor: pointer;
	min-width: 80px;
}
.sidebar {
	background: #3a3e41;
	width: 250px;
	border-right: 1px solid #1c1c1c;
	overflow-y: auto;
	display: none;
}
.sidebar.active {
	display: block;
}
.sidebar-tabs {
	display: flex;
	background: #323639;
	border-bottom: 1px solid #1c1c1c;
}
.sidebar-tab {
	flex: 1;
	padding: 10px;
	text-align: center;
	color: #b0b0b0;
	cursor: pointer;
	border-right: 1px solid #1c1c1c;
	font-size: 12px;
}
.sidebar-tab:last-child {
	border-right: none;
}
.sidebar-tab.active {
	background: #3a3e41;
	color: #fff;
}
.thumbnail-container {
	padding: 10px;
}
.thumbnail {
	margin-bottom: 10px;
	cursor: pointer;
	border: 2px solid transparent;
	padding: 4px;
	background: #2a2e31;
	border-radius: 4px;
}
.thumbnail.active {
	border-color: #0078d4;
}
.thumbnail canvas {
	width: 100%;
	display: block;
}
.thumbnail-label {
	text-align: center;
	color: #b0b0b0;
	font-size: 11px;
	margin-top: 4px;
}
.main-content {
	display: flex;
	flex: 1;
	overflow: hidden;
}
.viewer-container {
	flex: 1;
	overflow: auto;
	background: #525659;
	display: flex;
	justify-content: center;
	padding: 20px;
	position: relative;
}
.page-container {
	background: white;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	margin: 0 auto 20px;
	position: relative;
}
#pdf-canvas {
	display: block;
}
.text-layer {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	opacity: 0.2;
	line-height: 1.0;
}
.text-layer > span {
	color: transparent;
	position: absolute;
	white-space: pre;
	cursor: text;
	transform-origin: 0% 0%;
}
.text-layer ::selection {
	background: rgba(0, 100, 255, 0.3);
}
.loading {
	text-align: center;
	padding: 40px;
	color: #fff;
}
.toggle-sidebar {
	background: #464a4d;
	color: #fff;
	border: 1px solid #5a5a5a;
}