

.syllabus-viewer-section {
	padding: var(--space-6) 0 var(--space-10);
}

.syllabus-layout {
	display: flex;
	flex-direction: column;
	gap: var(--space-5);
}

.syllabus-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	background: var(--surface-alt);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	padding: var(--space-3) var(--space-5);
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.syllabus-title {
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
}

.pdf-viewer-container {
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.pdf-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px var(--space-3);
	border-radius: var(--radius-full);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	background: rgba(0, 0, 0, 0.06);
	color: var(--text-secondary);
	white-space: nowrap;
}

.pdf-status-badge.loading { background: rgba(217,119,6,0.1); color: #92400e; }
.pdf-status-badge.ready { background: rgba(15,118,110,0.1); color: #0f766e; }
.pdf-status-badge.error { background: rgba(220,38,38,0.1); color: #b91c1c; }
.pdf-status-badge.pending { background: rgba(217,119,6,0.1); color: #92400e; }

.pdf-wrapper {
	position: relative;
	height: 80vh;
	min-height: 500px;
}

.pdf-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

.pdf-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	cursor: default;
	pointer-events: none;
}

.pdf-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	gap: var(--space-4);
	color: var(--text-secondary);
}

.spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

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

.pdf-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	gap: var(--space-3);
	color: var(--text-secondary);
	padding: var(--space-10) var(--space-5);
	text-align: center;
}

.pdf-error svg { opacity: 0.4; }
.pdf-error p { font-size: 0.9rem; max-width: 400px; }

.pdf-error-title {
	margin: 0;
	font-size: 1.1rem;
	color: var(--text);
}

.pdf-error-hint {
	font-size: 0.85rem;
	color: var(--text-secondary);
	max-width: 480px;
}

.pdf-error-actions {
	display: flex;
	gap: var(--space-3);
	flex-wrap: wrap;
	justify-content: center;
	margin-top: var(--space-2);
}

@media (max-width: 900px) {
	.pdf-wrapper { height: 70vh; min-height: 400px; }
}

@media (max-width: 768px) {
	.pdf-wrapper { height: 60vh; min-height: 350px; }
	.pdf-error-actions { flex-direction: column; width: 100%; }
	.pdf-error-actions .btn { width: 100%; }
}
