* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
	background-color: #000;
	display: flex;
	flex-direction: column;
}

#pdf-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 12px 16px;
	background-color: rgba(0, 0, 0, 0.75);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	flex-shrink: 0;
}

#pdf-controls button {
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 4px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

#pdf-controls button:hover:not(:disabled) {
	background-color: rgba(255, 255, 255, 0.16);
}

#pdf-controls button:active:not(:disabled) {
	transform: translateY(1px);
}

#pdf-controls button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

#page-info {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	user-select: none;
	font-variant-numeric: tabular-nums;
}

#pdf-container {
	flex: 1;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

#loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(255, 255, 255, 0.1);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-text {
	font-size: 18px;
	color: #fff;
	text-align: center;
}

.progress-container {
	width: 300px;
	height: 6px;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #4a90e2, #64b5f6);
	border-radius: 3px;
	transition: width 0.3s ease;
	box-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.progress-text {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

#pdf-canvas {
	display: none;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Mobile specific styles */
@media (max-width: 768px) {
	#pdf-controls {
		padding: 10px 12px;
		gap: 10px;
	}

	#pdf-controls button {
		padding: 4px 14px;
		font-size: 13px;
	}

	#page-info {
		font-size: 13px;
	}

	.spinner {
		width: 40px;
		height: 40px;
		border-width: 3px;
	}

	.loading-text {
		font-size: 16px;
	}

	.progress-container {
		width: 250px;
	}

	.progress-text {
		font-size: 13px;
	}
}
