.oxfb {
	--oxfb-primary: #2b1f7a;
	--oxfb-accent: #6fa8dc;
	--oxfb-bg: #f2f5f9;
	position: relative;
	width: 100%;
	margin: 30px 0;
	background: var(--oxfb-bg);
	border-top: 4px solid var(--oxfb-accent);
	border-radius: 6px;
	overflow: hidden;
	outline: none;
	box-shadow: 0 6px 24px rgba(20, 20, 60, .08);
}
.oxfb *, .oxfb *::before, .oxfb *::after { box-sizing: border-box; }

.oxfb-title {
	padding: 16px 20px;
	font-weight: 700;
	font-size: 18px;
	color: var(--oxfb-primary);
	text-align: center;
	border-bottom: 1px solid rgba(43, 31, 122, .08);
}

.oxfb-stage {
	position: relative;
	padding: 28px 16px;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.oxfb-book-wrap { width: 100%; margin: 0 auto; }
.oxfb-book { margin: 0 auto; }

.oxfb-page {
	background: #fff;
	overflow: hidden;
}
.oxfb-page canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}
.oxfb-page.is-empty::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	width: 32px; height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid rgba(43, 31, 122, .15);
	border-top-color: var(--oxfb-primary);
	border-radius: 50%;
	animation: oxfb-spin .8s linear infinite;
}
@keyframes oxfb-spin { to { transform: rotate(360deg); } }

/* Yükleniyor */
.oxfb-loader {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	z-index: 5;
	background: var(--oxfb-bg);
	transition: opacity .3s;
}
.oxfb.is-ready .oxfb-loader { opacity: 0; pointer-events: none; }
.oxfb-loader-text { color: var(--oxfb-primary); font-weight: 600; font-size: 15px; }
.oxfb-loader a { color: var(--oxfb-primary); font-weight: 700; }
.oxfb-progress {
	width: 220px; max-width: 70%;
	height: 4px;
	background: rgba(43, 31, 122, .12);
	border-radius: 4px;
	overflow: hidden;
}
.oxfb-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--oxfb-accent);
	transition: width .2s;
}

/* Araç çubuğu */
.oxfb-toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	padding: 10px 12px;
	background: var(--oxfb-primary);
}
.oxfb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.oxfb-btn:hover, .oxfb-btn:focus-visible {
	background: rgba(255, 255, 255, .12);
	color: var(--oxfb-accent);
	outline: none;
}
.oxfb-btn[disabled] { opacity: .35; cursor: default; background: transparent; color: #fff; }
.oxfb-counter {
	min-width: 90px;
	text-align: center;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .5px;
}
.oxfb-sep { width: 1px; height: 24px; margin: 0 8px; background: rgba(255, 255, 255, .25); }

/* Tam ekran */
.oxfb:fullscreen {
	margin: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
}
.oxfb:fullscreen .oxfb-stage { flex: 1; }

@media (max-width: 767px) {
	.oxfb-stage { padding: 16px 8px; }
	.oxfb-btn { width: 36px; height: 36px; }
	.oxfb-counter { min-width: 70px; font-size: 13px; }
	.oxfb-sep { display: none; }
}
