/**
 * Alpha Professional Table of Contents (TOC) Stylesheet
 * Compatible with Bootstrap 4 & RTL Layouts
 * Theme Accent: #ef4a23
 */

:root {
	--toc-primary: #ef4a23;
	--toc-primary-hover: #d63c17;
	--toc-primary-light: rgba(239, 74, 35, 0.08);
	--toc-primary-border: rgba(239, 74, 35, 0.2);
	--toc-bg: #fbfbfd;
	--toc-card-border: #e8ebf0;
	--toc-text-main: #2b303a;
	--toc-text-muted: #6c757d;
	--toc-border-indent: #e3e7ee;
	--toc-radius: 12px;
	--toc-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	--toc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
	--toc-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Inline TOC Container & Card
   ========================================================================== */

.alpha-toc-wrapper {
	margin: 28px 0 36px 0;
	position: relative;
	clear: both;
}

.alpha-toc-card {
	background: var(--toc-bg);
	border: 1px solid var(--toc-card-border);
	border-radius: var(--toc-radius);
	box-shadow: var(--toc-shadow);
	overflow: hidden;
	transition: var(--toc-transition);
}

.alpha-toc-card:hover {
	box-shadow: var(--toc-shadow-hover);
	border-color: #dbe0ea;
}

/* Reading Progress Bar at TOC top */
.alpha-toc-progress-wrapper {
	height: 3px;
	background-color: #eceff4;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.alpha-toc-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--toc-primary), #ff7a59);
	transition: width 0.15s ease-out;
}

/* Header */
.alpha-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: #ffffff;
	border-bottom: 1px solid var(--toc-card-border);
	user-select: none;
	cursor: pointer;
	flex-wrap: wrap;
	gap: 10px;
}

.alpha-toc-title-area {
	display: flex;
	align-items: center;
	gap: 10px;
}

.alpha-toc-icon-badge {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--toc-primary-light);
	color: var(--toc-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	flex-shrink: 0;
}

.alpha-toc-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--toc-text-main);
	margin: 0;
	line-height: 1.4;
}

.alpha-toc-badges {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-right: 4px;
}

.alpha-toc-badge {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 20px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.alpha-toc-badge-count {
	background: #f1f3f7;
	color: var(--toc-text-muted);
}

.alpha-toc-badge-time {
	background: #fff4e8;
	color: #d96307;
	border: 1px solid #ffd8b3;
}

/* Header Controls */
.alpha-toc-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.alpha-toc-btn {
	background: transparent;
	border: 1px solid transparent;
	color: var(--toc-text-muted);
	width: 32px;
	height: 32px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 13px;
	transition: var(--toc-transition);
	padding: 0;
}

.alpha-toc-btn:hover {
	background: #f1f3f7;
	color: var(--toc-primary);
}

.alpha-toc-btn.active {
	background: var(--toc-primary-light);
	color: var(--toc-primary);
	border-color: var(--toc-primary-border);
}

.alpha-toc-collapse-icon {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alpha-toc-card.is-collapsed .alpha-toc-collapse-icon {
	transform: rotate(180deg);
}

/* Search Box */
.alpha-toc-search-wrap {
	padding: 10px 20px 0;
	display: none;
	background: #ffffff;
}

.alpha-toc-card.search-open .alpha-toc-search-wrap {
	display: block;
}

.alpha-toc-search-input-group {
	position: relative;
	display: flex;
	align-items: center;
}

.alpha-toc-search-input-group i.fa-search {
	position: absolute;
	right: 12px;
	color: #9aa2af;
	font-size: 13px;
	pointer-events: none;
}

.alpha-toc-search-input {
	width: 100%;
	padding: 7px 34px 7px 30px;
	font-size: 13px;
	border: 1px solid #dce1e9;
	border-radius: 6px;
	background: #f8fafc;
	color: var(--toc-text-main);
	outline: none;
	transition: var(--toc-transition);
}

.alpha-toc-search-input:focus {
	border-color: var(--toc-primary);
	background: #ffffff;
	box-shadow: 0 0 0 3px var(--toc-primary-light);
}

.alpha-toc-search-clear {
	position: absolute;
	left: 10px;
	background: none;
	border: none;
	color: #9aa2af;
	cursor: pointer;
	padding: 0;
	display: none;
	font-size: 12px;
}

.alpha-toc-search-clear:hover {
	color: #e53e3e;
}

/* Body / Navigation List */
.alpha-toc-body {
	max-height: 1200px;
	overflow: hidden;
	transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, padding 0.25s ease;
	opacity: 1;
	padding: 14px 20px 18px;
}

.alpha-toc-card.is-collapsed .alpha-toc-body {
	max-height: 0 !important;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.alpha-toc-list,
.alpha-toc-sublist {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}

.alpha-toc-sublist {
	padding-right: 18px;
	margin-top: 4px;
	border-right: 2px solid var(--toc-border-indent);
	margin-right: 12px;
	display: block;
	transition: var(--toc-transition);
}

.alpha-toc-sublist.is-collapsed {
	display: none;
}

.alpha-toc-item {
	margin: 3px 0;
	position: relative;
}

.alpha-toc-link-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: 6px;
	transition: var(--toc-transition);
	position: relative;
}

.alpha-toc-link-row:hover {
	background: rgba(239, 74, 35, 0.05);
}

.alpha-toc-link-row.is-active {
	background: var(--toc-primary-light);
}

.alpha-toc-link {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 10px;
	color: var(--toc-text-main);
	text-decoration: none !important;
	font-size: 13.5px;
	line-height: 1.6;
	flex-grow: 1;
	transition: var(--toc-transition);
	position: relative;
}

.alpha-toc-link:hover {
	color: var(--toc-primary);
}

.alpha-toc-link-row.is-active .alpha-toc-link {
	color: var(--toc-primary);
	font-weight: 700;
}

.alpha-toc-link-row.is-active::before {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	bottom: 4px;
	width: 3px;
	background: var(--toc-primary);
	border-radius: 3px;
}

.alpha-toc-number {
	font-size: 12px;
	color: var(--toc-text-muted);
	font-weight: 600;
	flex-shrink: 0;
	font-family: inherit;
	opacity: 0.85;
}

.alpha-toc-link-row.is-active .alpha-toc-number {
	color: var(--toc-primary);
	opacity: 1;
}

.alpha-toc-text {
	flex-grow: 1;
}

/* Sub-item Toggle Arrow */
.alpha-toc-toggle-sub {
	background: none;
	border: none;
	width: 26px;
	height: 26px;
	margin-left: 6px;
	color: #9aa2af;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 11px;
	transition: var(--toc-transition);
	padding: 0;
}

.alpha-toc-toggle-sub:hover {
	background: #eaedf2;
	color: var(--toc-text-main);
}

.alpha-toc-toggle-sub i {
	transition: transform 0.2s ease;
}

.alpha-toc-toggle-sub.is-collapsed i {
	transform: rotate(90deg);
}

/* Levels styling */
.alpha-toc-level-2 > .alpha-toc-link-row > .alpha-toc-link {
	font-weight: 600;
}
.alpha-toc-level-3 > .alpha-toc-link-row > .alpha-toc-link {
	font-size: 13px;
}
.alpha-toc-level-4 > .alpha-toc-link-row > .alpha-toc-link {
	font-size: 12.5px;
	color: #555b66;
}

/* Search filtering states */
.alpha-toc-item.search-hidden {
	display: none !important;
}

.alpha-toc-text mark {
	background: #ffe3b3;
	color: #222;
	padding: 1px 3px;
	border-radius: 3px;
}

.alpha-toc-empty-search {
	padding: 16px;
	text-align: center;
	color: var(--toc-text-muted);
	font-size: 13px;
	display: none;
}

/* Footer / Quick Tools */
.alpha-toc-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	background: #fdfdfe;
	border-top: 1px solid var(--toc-card-border);
	font-size: 12px;
	color: var(--toc-text-muted);
}

.alpha-toc-tools-btn {
	background: none;
	border: none;
	color: var(--toc-text-muted);
	cursor: pointer;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 6px;
	border-radius: 4px;
	transition: var(--toc-transition);
}

.alpha-toc-tools-btn:hover {
	color: var(--toc-primary);
	background: #f1f3f7;
}

/* ==========================================================================
   Article Heading Anchor Links
   ========================================================================== */

.alpha-heading-anchor-wrap {
	position: relative;
	scroll-margin-top: 90px; /* Offset for sticky header */
}

.alpha-heading-anchor {
	position: absolute;
	right: -24px;
	top: 50%;
	transform: translateY(-50%);
	color: #c1c8d4;
	opacity: 0;
	transition: var(--toc-transition);
	cursor: pointer;
	font-size: 0.85em;
	padding: 0 4px;
	text-decoration: none !important;
}

.alpha-heading-anchor-wrap:hover .alpha-heading-anchor,
.alpha-heading-anchor:focus {
	opacity: 1;
	color: var(--toc-primary);
}

@media (max-width: 768px) {
	.alpha-heading-anchor {
		right: -18px;
		font-size: 0.8em;
	}
}

/* ==========================================================================
   Toast Notification for Anchor Copy
   ========================================================================== */

.alpha-toc-toast {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%) translateY(30px);
	background: #23272f;
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	opacity: 0;
	pointer-events: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
}

.alpha-toc-toast.is-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.alpha-toc-toast i {
	color: #22c55e;
}

/* ==========================================================================
   Floating Quick TOC Button & Drawer (Mobile & Desktop)
   ========================================================================== */

.alpha-toc-floating-btn {
	position: fixed;
	bottom: 24px;
	left: 24px;
	z-index: 999;
	background: #ffffff;
	border: 1px solid var(--toc-card-border);
	border-radius: 30px;
	box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
	padding: 8px 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: var(--toc-transition);
	color: var(--toc-text-main);
	font-size: 13px;
	user-select: none;
}

.alpha-toc-floating-btn.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.alpha-toc-floating-btn:hover {
	box-shadow: 0 10px 30px rgba(239, 74, 35, 0.2);
	border-color: var(--toc-primary-border);
	color: var(--toc-primary);
}

.alpha-toc-floating-icon {
	color: var(--toc-primary);
	font-size: 14px;
}

.alpha-toc-floating-percent {
	font-size: 11px;
	font-weight: 700;
	background: var(--toc-primary-light);
	color: var(--toc-primary);
	padding: 2px 7px;
	border-radius: 12px;
}

/* Floating Drawer Backdrop & Offcanvas */
.alpha-toc-drawer-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.alpha-toc-drawer-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.alpha-toc-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: 360px;
	max-width: 88vw;
	background: #ffffff;
	z-index: 9999;
	box-shadow: 10px 0 35px rgba(0, 0, 0, 0.18);
	transform: translateX(-100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}

.alpha-toc-drawer.is-open {
	transform: translateX(0);
}

.alpha-toc-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #edf0f5;
	background: #fafbfc;
}

.alpha-toc-drawer-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--toc-text-main);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.alpha-toc-drawer-close {
	background: none;
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	color: var(--toc-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: var(--toc-transition);
}

.alpha-toc-drawer-close:hover {
	background: #f1f3f7;
	color: #e53e3e;
}

.alpha-toc-drawer-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px 24px;
}

.alpha-toc-drawer-body::-webkit-scrollbar {
	width: 5px;
}
.alpha-toc-drawer-body::-webkit-scrollbar-thumb {
	background: #d8dde6;
	border-radius: 4px;
}

/* ==========================================================================
   Global Top Reading Progress Bar (Optional)
   ========================================================================== */
.alpha-toc-global-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3.5px;
	background: transparent;
	z-index: 99999;
	pointer-events: none;
}

.alpha-toc-global-progress-bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #ef4a23, #ff7b2b);
	box-shadow: 0 0 10px rgba(239, 74, 35, 0.6);
	transition: width 0.12s ease-out;
}

/* ==========================================================================
   Sidebar Widget TOC Styles
   ========================================================================== */

.alpha-sidebar-toc-card {
	transition: var(--toc-transition);
	margin-top: 30px;
}

@media (min-width: 992px) {
	.alpha-sidebar-toc-card {
		position: -webkit-sticky;
		position: sticky;
		top: 85px;
		z-index: 10;
	}
}

.alpha-sidebar-toc-container {
	max-height: calc(100vh - 240px);
	overflow-y: auto;
	padding: 12px 16px 16px;
}

.alpha-sidebar-toc-container::-webkit-scrollbar {
	width: 4px;
}

.alpha-sidebar-toc-container::-webkit-scrollbar-thumb {
	background: #d8dde6;
	border-radius: 4px;
}

.alpha-sidebar-toc-container .alpha-toc-sublist {
	margin-right: 8px;
	padding-right: 12px;
}

.alpha-sidebar-toc-container .alpha-toc-link {
	font-size: 13px;
	padding: 5px 8px;
}

/* Admin Trigger Button */
.alpha-toc-admin-trigger-btn {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
	color: #6c757d;
	border-color: #dce1e9;
	background: #fff;
	transition: var(--toc-transition);
}

.alpha-toc-admin-trigger-btn:hover {
	background: var(--toc-primary-light);
	color: var(--toc-primary);
	border-color: var(--toc-primary);
}

/* ==========================================================================
   Admin Heading Chooser Modal
   ========================================================================== */

.alpha-toc-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(3px);
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.alpha-toc-modal-backdrop.is-open {
	display: flex;
	opacity: 1;
}

.alpha-toc-modal {
	background: #ffffff;
	border-radius: 14px;
	width: 580px;
	max-width: 100%;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	animation: alphaModalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	text-align: right;
	direction: rtl;
}

@keyframes alphaModalIn {
	from { transform: scale(0.95) translateY(10px); opacity: 0; }
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.alpha-toc-modal-header {
	padding: 16px 22px;
	border-bottom: 1px solid #edf0f5;
	background: #fafbfc;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.alpha-toc-modal-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: var(--toc-text-main);
	display: flex;
	align-items: center;
	gap: 8px;
}

.alpha-toc-modal-close {
	background: none;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: #8892a0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: var(--toc-transition);
}

.alpha-toc-modal-close:hover {
	background: #f1f3f7;
	color: #e53e3e;
}

.alpha-toc-modal-body {
	padding: 20px 22px;
	overflow-y: auto;
	flex: 1;
}

.alpha-toc-modal-desc {
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 16px;
	line-height: 1.6;
	background: #f8fafc;
	padding: 10px 14px;
	border-radius: 8px;
	border-right: 3px solid var(--toc-primary);
}

.alpha-toc-modal-desc code {
	background: #eceff4;
	color: #d63c17;
	padding: 1px 5px;
	border-radius: 4px;
	font-size: 11.5px;
}

.alpha-toc-heading-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 12px;
	border: 1px solid #e8ecf2;
	border-radius: 8px;
	margin-bottom: 8px;
	background: #ffffff;
	transition: var(--toc-transition);
	gap: 10px;
}

.alpha-toc-heading-item:hover {
	border-color: #cbd5e1;
	background: #fbfcfe;
}

.alpha-toc-heading-item.is-excluded {
	opacity: 0.55;
	background: #f8fafc;
}

.alpha-toc-heading-item-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	overflow: hidden;
}

.alpha-toc-heading-tag {
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	background: #e2e8f0;
	color: #475569;
}

.alpha-toc-heading-label {
	font-size: 13px;
	font-weight: 500;
	color: var(--toc-text-main);
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.alpha-toc-modal-footer {
	padding: 14px 22px;
	border-top: 1px solid #edf0f5;
	background: #fafbfc;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* ==========================================================================
   Post TOC Admin Control Bar & Switch
   ========================================================================== */

.alpha-toc-admin-bar {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.alpha-toc-admin-bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.alpha-toc-admin-bar-right,
.alpha-toc-admin-bar-left {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.alpha-toc-admin-badge {
	font-size: 12px;
	font-weight: 700;
	color: var(--toc-text-main);
	background: #f1f5f9;
	padding: 4px 10px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* Toggle Switch */
.alpha-toc-switch-label {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	margin: 0;
}

.alpha-toc-switch-label input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.alpha-toc-switch-slider {
	position: relative;
	display: inline-block;
	width: 38px;
	height: 20px;
	background-color: #cbd5e1;
	border-radius: 20px;
	transition: 0.3s;
}

.alpha-toc-switch-slider:before {
	position: absolute;
	content: "";
	height: 14px;
	width: 14px;
	right: 3px;
	bottom: 3px;
	background-color: white;
	border-radius: 50%;
	transition: 0.3s;
}

.alpha-toc-switch-label input:checked + .alpha-toc-switch-slider {
	background-color: #22c55e;
}

.alpha-toc-switch-label input:checked + .alpha-toc-switch-slider:before {
	transform: translateX(-18px);
}

.alpha-toc-switch-text {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--toc-text-main);
}

/* Modal Tabs & Advanced Controls */
.alpha-toc-modal-tabs {
	display: flex;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	padding: 0 16px;
	gap: 4px;
}

.alpha-toc-modal-tab {
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	transition: var(--toc-transition);
}

.alpha-toc-modal-tab.active {
	color: var(--toc-primary);
	border-bottom-color: var(--toc-primary);
	background: #ffffff;
}

.alpha-toc-tab-content {
	display: none;
}

.alpha-toc-tab-content.active {
	display: block;
}

.alpha-toc-tags-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 16px;
}

.alpha-toc-tag-checkbox-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: var(--toc-transition);
}

.alpha-toc-tag-checkbox-label.is-checked {
	background: var(--toc-primary-light);
	border-color: var(--toc-primary);
	color: var(--toc-primary);
}

.alpha-toc-manual-textarea {
	width: 100%;
	min-height: 140px;
	font-size: 13px;
	padding: 10px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	direction: rtl;
	text-align: right;
	line-height: 1.8;
}

/* Empty Heading Warning Card for Admin */
.alpha-toc-empty-notice {
	background: #fffbeb;
	border: 1px dashed #f59e0b;
	border-radius: 10px;
	padding: 16px 20px;
	margin: 20px 0;
	font-size: 13px;
	line-height: 1.8;
	color: #92400e;
}

.alpha-toc-empty-notice strong {
	color: #78350f;
}

/* Target element highlight on TOC jump */
.alpha-target-highlight {
	animation: alphaPulseHighlight 2s ease-out;
}

@keyframes alphaPulseHighlight {
	0% {
		background-color: rgba(239, 74, 35, 0.25);
		outline: 2px solid var(--toc-primary);
		border-radius: 4px;
	}
	100% {
		background-color: transparent;
		outline: 2px solid transparent;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
	.alpha-toc-actions,
	.alpha-toc-search-wrap,
	.alpha-toc-floating-btn,
	.alpha-toc-drawer-backdrop,
	.alpha-toc-drawer,
	.alpha-toc-global-progress,
	.alpha-heading-anchor,
	.alpha-toc-toast,
	.alpha-toc-footer {
		display: none !important;
	}

	.alpha-toc-card {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
		page-break-inside: avoid;
	}

	.alpha-toc-body {
		max-height: none !important;
		opacity: 1 !important;
		display: block !important;
	}
}
