/* NovaPress E-Paper Reader Stylesheet */
.np-reader-container {
	position: relative;
	width: 100%;
	background: #1e293b;
	color: #f8fafc;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 700px;
}

/* Reader Toolbar */
.np-reader-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #0f172a;
	padding: 10px 16px;
	border-bottom: 1px solid #334155;
	gap: 12px;
	user-select: none;
	z-index: 20;
}

.np-toolbar-left, .np-toolbar-center, .np-toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.np-reader-title {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	white-space: nowrap;
}

.np-reader-date {
	font-size: 12px;
	color: #94a3b8;
}

.np-tool-btn {
	background: #1e293b;
	border: 1px solid #334155;
	color: #e2e8f0;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background 0.15s, border-color 0.15s;
}

.np-tool-btn:hover {
	background: #334155;
	border-color: #475569;
	color: #ffffff;
}

.np-btn-action {
	background: #2563eb;
	border-color: #3b82f6;
	color: #ffffff;
}

.np-btn-action:hover {
	background: #1d4ed8;
}

.np-page-counter {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #cbd5e1;
}

.np-page-counter input {
	width: 44px;
	text-align: center;
	background: #0f172a;
	border: 1px solid #334155;
	color: #ffffff;
	border-radius: 4px;
	padding: 4px;
}

/* Reader Stage */
.np-reader-stage {
	display: flex;
	flex: 1;
	position: relative;
	background: #0f172a;
	overflow: hidden;
}

/* Thumbnails Drawer */
.np-thumbnails-drawer {
	width: 140px;
	background: #090d16;
	border-right: 1px solid #1e293b;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	transition: width 0.2s;
	z-index: 10;
}

.np-thumbnails-drawer.collapsed {
	width: 0;
	display: none;
}

.np-thumbs-header {
	padding: 10px;
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #64748b;
	display: flex;
	justify-content: space-between;
}

.np-thumb-item {
	padding: 8px 10px;
	cursor: pointer;
	text-align: center;
	border-bottom: 1px solid #1e293b;
	transition: background 0.15s;
}

.np-thumb-item:hover, .np-thumb-item.active {
	background: #1e293b;
}

.np-thumb-item img {
	max-width: 100%;
	border-radius: 4px;
	border: 1px solid #334155;
	display: block;
	margin: 0 auto 4px auto;
}

.np-thumb-number {
	font-size: 11px;
	color: #94a3b8;
}

/* Page Viewport */
.np-page-viewport {
	flex: 1;
	overflow: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #0f172a;
}

.np-page-container {
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
	display: inline-block;
}

.np-active-page {
	display: block;
	max-width: 100%;
	height: auto;
	user-select: none;
}

/* Hotspots on Viewport */
.np-viewer-hotspots-layer {
	position: absolute;
	inset: 0;
}

.np-hotspot-marker {
	position: absolute;
	border: 2px solid rgba(37, 99, 235, 0.5);
	background: rgba(37, 99, 235, 0.15);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.np-hotspot-marker:hover {
	border-color: rgba(37, 99, 235, 0.95);
	background: rgba(37, 99, 235, 0.35);
	box-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

/* Modal Popup */
.np-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 20px;
}

.np-modal-card {
	background: #1e293b;
	border: 1px solid #334155;
	border-radius: 12px;
	max-width: 650px;
	width: 100%;
	padding: 24px;
	position: relative;
	box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.np-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 24px;
	color: #94a3b8;
	cursor: pointer;
}

.np-modal-title {
	margin: 0 0 12px 0;
	font-size: 20px;
	color: #ffffff;
}

.np-modal-text {
	color: #cbd5e1;
	line-height: 1.6;
	font-size: 14px;
}
