/* إطار عارض PDF في الصفحة — المعلم التعليمي */
.ami-viewer {
	position: relative;
	border: 1px solid #dadce0;
	border-radius: 14px;
	overflow: hidden;
	background: #eef2f8;
	box-shadow: 0 6px 24px rgba(3, 93, 205, .08);
}
.ami-viewer iframe.pdfjs-iframe {
	display: block;
	border: 0 !important;
	margin: 0 !important;
	transition: opacity .25s ease;
}

/* Hide the default look for a moment while the new design loads */
.ami-viewer.is-skinning iframe.pdfjs-iframe { opacity: 0; }
.ami-viewer.is-skinning::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid #cfdcf3;
	border-top-color: #035dcd;
	border-radius: 50%;
	animation: ami-spin .8s linear infinite;
}
@keyframes ami-spin { to { transform: rotate(360deg); } }

/* Full screen (real) */
.ami-viewer:fullscreen,
.ami-viewer:-webkit-full-screen {
	border: 0 !important;
	border-radius: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
}
.ami-viewer:fullscreen iframe.pdfjs-iframe,
.ami-viewer:-webkit-full-screen iframe.pdfjs-iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}

/* Full screen (fallback for iPhone): pin all four edges to the window */
.ami-viewer.is-pseudo-fs {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	max-width: none !important;
	max-height: none !important;
	z-index: 2147483000 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	transform: none !important;
}
.ami-viewer.is-pseudo-fs iframe.pdfjs-iframe {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
}
html.ami-noscroll, html.ami-noscroll body { overflow: hidden !important; }
