/**
 * Premium Viewer Styles
 *
 * @package PDF_Embed_SEO_Premium
 * @since   1.0.0
 */

/* Search Panel */
.pdf-search-group {
	position: relative;
}

.pdf-search-panel {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 300px;
}

.pdf-search-input {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.pdf-search-input:focus {
	outline: none;
	border-color: #2271b1;
}

.pdf-search-prev,
.pdf-search-next {
	width: 30px;
	height: 30px;
	border: 1px solid #ddd;
	background: #f0f0f1;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdf-search-prev:hover,
.pdf-search-next:hover {
	background: #e0e0e0;
}

.pdf-search-results {
	font-size: 12px;
	color: #666;
	white-space: nowrap;
}

.pdf-search-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #666;
	padding: 5px;
}

.pdf-search-close:hover {
	color: #333;
}

/* Search Highlights */
.pdf-search-highlight {
	background-color: #ffff00;
	border-radius: 2px;
}

.pdf-search-highlight.current {
	background-color: #ff9632;
}

/* Bookmarks Sidebar */
.pdf-bookmarks-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 300px;
	height: 100%;
	background: #fff;
	border-right: 1px solid #ddd;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.pdf-bookmarks-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid #ddd;
	background: #f5f5f5;
}

.pdf-bookmarks-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}

.pdf-bookmarks-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	line-height: 1;
}

.pdf-bookmarks-close:hover {
	color: #333;
}

.pdf-bookmarks-content {
	flex: 1;
	overflow-y: auto;
	padding: 10px;
}

.pdf-bookmarks-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pdf-bookmarks-list li {
	margin: 0;
	padding: 0;
}

.pdf-bookmarks-list a {
	display: block;
	padding: 8px 10px;
	color: #333;
	text-decoration: none;
	border-radius: 4px;
	font-size: 13px;
}

.pdf-bookmarks-list a:hover {
	background: #f0f0f1;
	color: #2271b1;
}

.pdf-bookmarks-list ul {
	list-style: none;
	margin: 0;
	padding-left: 15px;
}

.pdf-no-bookmarks {
	color: #666;
	font-size: 13px;
	text-align: center;
	padding: 20px;
}

/* Reading Progress Prompt */
.pdf-progress-prompt {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.pdf-progress-prompt-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	text-align: center;
	max-width: 400px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pdf-progress-message {
	font-size: 16px;
	margin-bottom: 20px;
	color: #333;
}

.pdf-progress-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.pdf-progress-buttons .button {
	padding: 10px 20px;
}

/* Presentation Mode */
.pdf-presentation-mode {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdf-presentation-mode .pdf-page-container {
	max-width: 95vw;
	max-height: 95vh;
}

.pdf-presentation-mode .pdf-presentation-controls {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.7);
	padding: 10px 20px;
	border-radius: 30px;
	display: flex;
	gap: 15px;
	align-items: center;
}

.pdf-presentation-mode .pdf-presentation-controls button {
	background: none;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	padding: 5px 10px;
}

.pdf-presentation-mode .pdf-presentation-controls button:hover {
	color: #2271b1;
}

.pdf-presentation-mode .pdf-page-info {
	color: #fff;
	font-size: 14px;
}

/* Password Protection Form */
.pdf-password-form-container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	background: #f5f5f5;
	border-radius: 8px;
}

.pdf-password-form {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
	max-width: 400px;
}

.pdf-password-form h3 {
	margin-top: 0;
	color: #333;
}

.pdf-password-form input[type="password"] {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	margin-bottom: 10px;
}

.pdf-password-form .button {
	width: 100%;
	padding: 12px;
	font-size: 16px;
}

.pdf-password-error {
	background: #f8d7da;
	color: #721c24;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
}

/* Access Denied */
.pdf-access-denied {
	text-align: center;
	padding: 60px 20px;
	background: #f5f5f5;
	border-radius: 8px;
}

.pdf-access-denied h3 {
	color: #333;
}

.pdf-access-denied p {
	color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.pdf-search-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		min-width: auto;
		border-radius: 0;
	}

	.pdf-bookmarks-sidebar {
		width: 100%;
	}

	.pdf-progress-prompt-content {
		margin: 20px;
		max-width: none;
	}
}
