/* =============================================================
   Textbook Manager — front-end styles
   ============================================================= */

/* ----------------------------------------------------------
   Modal overlay
   ---------------------------------------------------------- */
@keyframes tbm-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes tbm-scale-in {
	from { transform: scale(0.95); opacity: 0; }
	to   { transform: scale(1);    opacity: 1; }
}

#tbm-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(3px);         /* subtle blur on the site behind */
	-webkit-backdrop-filter: blur(3px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: tbm-fade-in 0.2s ease;
}

#tbm-modal[hidden] {
	display: none;
}

#tbm-modal-inner {
	position: relative;
	width: 90vw;
	height: 90vh;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
	animation: tbm-scale-in 0.2s ease;
}

#tbm-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 10;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 11px 6px;
	border-radius: 4px;
	transition: background 0.15s;
}

#tbm-close:hover,
#tbm-close:focus-visible {
	background: rgba(0, 0, 0, 0.9);
	outline: none;
}

#tbm-frame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
