:root,
[data-bs-theme="light"] {
	--bs-primary: #2563eb;
	--bs-secondary: #64748b;
	--bs-success: #059669;
	--bs-warning: #d97706;
	--bs-danger: #dc2626;
	--bs-info: #0ea5e9;
	--bs-body-bg: #f5f7fb;
	--bs-body-color: #0f172a;
	--bs-border-color: rgba(15, 23, 42, 0.1);
	--bs-secondary-color: #64748b;
	--premium-bg: var(--bs-body-bg);
	--premium-surface: #ffffff;
	--premium-surface-muted: #f8fafc;
	--premium-border: var(--bs-border-color);
	--premium-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
	--premium-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
	--premium-glow: 0 20px 44px rgba(37, 99, 235, 0.16);
	--premium-navbar-bg: rgba(255, 255, 255, 0.9);
	--premium-navbar-border: rgba(15, 23, 42, 0.06);
	--premium-hero-grad-1: rgba(37, 99, 235, 0.98);
	--premium-hero-grad-2: rgba(79, 70, 229, 0.96);
	--premium-hero-ring: rgba(255, 255, 255, 0.08);
	--premium-hero-border: rgba(255, 255, 255, 0.16);
	--premium-hero-text: rgba(255, 255, 255, 0.72);
	--premium-soft-hover: rgba(79, 70, 229, 0.08);
	--premium-soft-hover-strong: rgba(79, 70, 229, 0.14);
	--premium-btn-outline-border: rgba(37, 99, 235, 0.35);
	--premium-btn-outline-bg: var(--premium-surface);
	--premium-btn-outline-hover-bg: rgba(37, 99, 235, 0.08);
	--premium-table-stripe: rgba(15, 23, 42, 0.025);
	--premium-table-hover: rgba(79, 70, 229, 0.06);
	--premium-table-divider: rgba(15, 23, 42, 0.08);
	--premium-body-grad-1: rgba(37, 99, 235, 0.12);
	--premium-body-grad-2: rgba(79, 70, 229, 0.1);
	--premium-radius: 14px;
	--premium-radius-lg: 22px;
}

[data-bs-theme="dark"] {
	--bs-primary: #60a5fa;
	--bs-secondary: #94a3b8;
	--bs-success: #34d399;
	--bs-warning: #f59e0b;
	--bs-danger: #f87171;
	--bs-info: #38bdf8;
	--bs-body-bg: #0b1220;
	--bs-body-color: #e2e8f0;
	--bs-border-color: rgba(148, 163, 184, 0.24);
	--bs-secondary-color: #94a3b8;
	--premium-bg: var(--bs-body-bg);
	--premium-surface: #111a2c;
	--premium-surface-muted: #0f172a;
	--premium-border: var(--bs-border-color);
	--premium-shadow-sm: 0 12px 24px rgba(2, 6, 23, 0.45);
	--premium-shadow: 0 24px 52px rgba(2, 6, 23, 0.55);
	--premium-glow: 0 22px 48px rgba(56, 189, 248, 0.12);
	--premium-navbar-bg: rgba(6, 11, 24, 0.78);
	--premium-navbar-border: rgba(148, 163, 184, 0.22);
	--premium-hero-grad-1: rgba(18, 52, 106, 0.96);
	--premium-hero-grad-2: rgba(40, 33, 92, 0.94);
	--premium-hero-ring: rgba(255, 255, 255, 0.045);
	--premium-hero-border: rgba(148, 163, 184, 0.14);
	--premium-hero-text: rgba(226, 232, 240, 0.72);
	--premium-soft-hover: rgba(96, 165, 250, 0.16);
	--premium-soft-hover-strong: rgba(96, 165, 250, 0.24);
	--premium-btn-outline-border: rgba(96, 165, 250, 0.4);
	--premium-btn-outline-bg: color-mix(in srgb, var(--premium-surface) 90%, #0b1220);
	--premium-btn-outline-hover-bg: rgba(96, 165, 250, 0.14);
	--premium-table-stripe: rgba(148, 163, 184, 0.045);
	--premium-table-hover: rgba(96, 165, 250, 0.09);
	--premium-table-divider: rgba(148, 163, 184, 0.12);
	--premium-body-grad-1: rgba(59, 130, 246, 0.14);
	--premium-body-grad-2: rgba(14, 165, 233, 0.08);
}

body {
	background:
		radial-gradient(circle at 0% 0%, var(--premium-body-grad-1), transparent 28%),
		radial-gradient(circle at 100% 100%, var(--premium-body-grad-2), transparent 30%),
		var(--premium-bg);
	color: var(--bs-body-color);
}

.card {
	border: 1px solid var(--premium-border);
	border-radius: var(--premium-radius-lg);
	background: var(--premium-surface);
	box-shadow: var(--premium-shadow-sm);
}

.premium-orbit-border {
	position: relative;
	isolation: isolate;
	border-radius: var(--premium-radius-lg);
}

.premium-orbit-border::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	border: 3px solid transparent;
	background:
		linear-gradient(var(--premium-surface), var(--premium-surface)) padding-box,
		conic-gradient(
			from var(--snake-angle),
			transparent 0deg 312deg,
			color-mix(in srgb, var(--bs-primary) 78%, white) 324deg,
			color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info)) 338deg,
			color-mix(in srgb, var(--bs-primary) 78%, white) 350deg,
			transparent 360deg
		) border-box;
	animation: premiumOrbit 2.6s linear infinite;
	pointer-events: none;
	z-index: 2;
}

.premium-orbit-border::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--bs-primary) 14%, transparent) inset,
		0 0 18px color-mix(in srgb, var(--bs-primary) 16%, transparent);
	opacity: 0.7;
	pointer-events: none;
	z-index: 1;
}
.premium-orbit-border div{
	position:relative;
	z-index:2;
}
.premium-orbit-border-success::before {
	background:
		linear-gradient(var(--premium-surface), var(--premium-surface)) padding-box,
		conic-gradient(
			from var(--snake-angle),
			transparent 0deg 312deg,
			color-mix(in srgb, var(--bs-success) 78%, white) 324deg,
			color-mix(in srgb, var(--bs-success) 98%, white) 338deg,
			color-mix(in srgb, var(--bs-success) 78%, white) 350deg,
			transparent 360deg
		) border-box;
}
.premium-orbit-border-success::after {
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--bs-success) 14%, transparent) inset,
		0 0 18px color-mix(in srgb, var(--bs-success) 16%, transparent);
}

@property --snake-angle {
	syntax: "<angle>";
	inherits: false;
	initial-value: 0deg;
}

@keyframes premiumOrbit {
	to {
		--snake-angle: 360deg;
	}
}

.card-header,
.card-footer {
	background: var(--premium-surface);
	border-color: var(--premium-border);
}

.btn {
	border-radius: var(--premium-radius);
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: all 0.2s ease;
}

.btn-primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info)));
	box-shadow: var(--premium-glow);
}

.btn-primary:hover,
.btn-primary:focus {
	transform: translateY(-1px);
	filter: brightness(1.03);
}

.btn-outline-primary {
	border-color: var(--premium-btn-outline-border);
	color: var(--bs-primary);
	background: var(--premium-btn-outline-bg);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
	background: var(--premium-btn-outline-hover-bg);
	border-color: var(--bs-primary);
	color: var(--bs-primary);
}

.btn-light {
	border-color: var(--premium-border);
}

.form-label {
	font-weight: 600;
	color: var(--bs-body-color);
}

.form-control,
.form-select {
	min-height: 48px;
	border-radius: var(--premium-radius);
	border-color: var(--premium-border);
	background: var(--premium-surface);
	color: var(--bs-body-color);
}

.form-control::placeholder {
	color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.14);
}

.input-group > .btn {
	border-color: var(--premium-border);
}

.navbar {
	background: var(--premium-navbar-bg);
	backdrop-filter: saturate(150%) blur(8px);
	border-bottom: 1px solid var(--premium-navbar-border);
}

.navbar .nav-link {
	font-weight: 600;
	color: var(--bs-secondary-color);
	border-radius: 10px;
	padding: 0.5rem 0.75rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
	color: var(--bs-body-color);
	background: var(--premium-soft-hover);
}

.dropdown-menu {
	border: 1px solid var(--premium-border);
	border-radius: 14px;
	box-shadow: var(--premium-shadow);
	padding: 0.5rem;
}

.dropdown-item {
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
	font-weight: 500;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background: var(--premium-soft-hover);
	color: var(--bs-body-color);
}

.table {
	--bs-table-bg: transparent;
	--bs-table-striped-bg: var(--premium-table-stripe);
	--bs-table-hover-bg: var(--premium-table-hover);
}

.table > :not(caption) > * > * {
	border-bottom-color: var(--premium-table-divider);
}

.badge {
	border-radius: 999px;
	padding: 0.45em 0.72em;
	font-weight: 600;
}

.badge.text-bg-primary,
.badge.bg-primary {
	background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info))) !important;
	color: #fff !important;
	box-shadow: var(--premium-glow);
}

.badge.text-bg-secondary,
.badge.bg-secondary {
	background: var(--bs-secondary) !important;
	color: #fff !important;
}

.badge.text-bg-success,
.badge.bg-success {
	background: var(--bs-success) !important;
	color: #fff !important;
}

.badge.text-bg-danger,
.badge.bg-danger {
	background: var(--bs-danger) !important;
	color: #fff !important;
}

.badge.text-bg-warning,
.badge.bg-warning {
	background: var(--bs-warning) !important;
	color: #111827 !important;
}

.badge.text-bg-info,
.badge.bg-info {
	background: var(--bs-info) !important;
	color: #fff !important;
}

.accordion-item {
	border: 1px solid var(--premium-border);
	border-radius: var(--premium-radius);
	overflow: hidden;
	background: var(--premium-surface);
}

.accordion-button {
	font-weight: 600;
	background: var(--premium-surface);
	color: var(--bs-body-color);
}

.accordion-button:not(.collapsed) {
	color: var(--bs-body-color);
	background: var(--premium-soft-hover);
	box-shadow: none;
}

.list-group-item {
	border-color: var(--premium-border);
}

.modal-content,
.offcanvas {
	border: 1px solid var(--premium-border);
	border-radius: 18px;
	box-shadow: var(--premium-shadow);
}

.pagination .page-link {
	border-radius: 10px;
	margin: 0 3px;
	border-color: var(--premium-border);
	color: var(--bs-secondary-color);
	background: var(--premium-surface);
}

.pagination .page-link:hover {
	background: var(--premium-soft-hover);
	border-color: rgba(79, 70, 229, 0.25);
	color: var(--bs-body-color);
}

.pagination .active > .page-link {
	border-color: transparent;
	background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info)));
}


/* Optional premium layout kit (use only if classes exist in markup) */
.siteHeader {
	position: sticky;
	top: 0;
	z-index: 1050;
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--premium-navbar-border);
}

.page-wrapper {
	padding: 32px 0 48px;
}

.brand-link {
	font-weight: 800;
	text-decoration: none;
	color: var(--bs-body-color);
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info)));
	color: #fff;
	font-weight: 700;
	box-shadow: 0 10px 30px rgba(79, 70, 229, 0.22);
}

.nav-soft-btn {
	border: 1px solid var(--premium-border);
	background: var(--premium-surface);
	color: var(--bs-body-color);
	border-radius: 14px;
	padding: 10px 14px;
	font-weight: 600;
}

.nav-soft-btn:hover,
.nav-soft-btn:focus {
	background: var(--premium-surface-muted);
	border-color: var(--premium-soft-hover-strong);
}

.user-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px 8px 8px;
	border-radius: 999px;
	background: var(--premium-surface);
	border: 1px solid var(--premium-border);
}

.user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--bs-primary), color-mix(in srgb, var(--bs-primary) 65%, var(--bs-info)));
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 0.95rem;
}

.hero-card {
	background: linear-gradient(135deg, var(--premium-hero-grad-1), var(--premium-hero-grad-2)), var(--bs-primary);
	color: #fff;
	border: 1px solid var(--premium-hero-border);
	border-radius: 28px;
	padding: 32px;
	box-shadow: var(--premium-glow);
	position: relative;
	overflow: hidden;
	height: 100%;
}

.hero-card::before {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 220px;
	height: 220px;
	background: var(--premium-hero-ring);
	border-radius: 50%;
}

.hero-card::after {
	content: var(--fa, "");
	right: 20px;
	bottom: 16px;
	position: absolute;
	width: auto;
	height: auto;
	background: transparent;
	border-radius: 0;
	font-family: "Font Awesome 5 Pro";
	font-weight: 900;
	font-size: 108px;
	line-height: 1;
	color: color-mix(in srgb, var(--premium-hero-text) 70%, transparent);
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: color-mix(in srgb, var(--premium-hero-ring) 160%, transparent);
	border: 1px solid var(--premium-hero-border);
	color: #fff;
	padding: 10px 14px;
	border-radius: 999px;
	font-size: 0.9rem;
	margin-bottom: 18px;
}

.hero-mini-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.hero-card .info {
	background: color-mix(in srgb, var(--premium-hero-ring) 150%, transparent);
	border: 1px solid var(--premium-hero-border);
	border-radius: 18px;
	padding: 16px;
}

.hero-mini-stat {
	background: color-mix(in srgb, var(--premium-hero-ring) 150%, transparent);
	border: 1px solid var(--premium-hero-border);
	border-radius: 18px;
	padding: 16px;
}

.hero-mini-stat .label {
	font-size: 0.85rem;
	color: var(--premium-hero-text);
	margin-bottom: 4px;
}

.hero-mini-stat .value {
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
}

.panel-card,
.workspace-card,
.activity-card,
.quick-card {
	background: var(--premium-surface);
	color: var(--bs-body-color);
	border: 1px solid var(--premium-border);
	border-radius: 24px;
	box-shadow: var(--premium-shadow);
}

.panel-card,
.activity-card,
.quick-card {
	padding: 24px;
}

.workspace-card {
	padding: 22px;
	height: 100%;
	transition: 0.2s ease;
}

.workspace-card:hover {
	transform: translateY(-4px);
	border-color: var(--premium-soft-hover-strong);
	box-shadow: var(--premium-shadow);
}

.workspace-icon {
	width: 52px;
	height: 52px;
	border-radius: 18px;
	display: grid;
	place-items: center;
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 18px;
}

.icon-blue { background: linear-gradient(135deg, #2563eb, #4f46e5); }
.icon-green { background: linear-gradient(135deg, #059669, #10b981); }
.icon-orange { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.icon-pink { background: linear-gradient(135deg, #db2777, #ec4899); }

.activity-item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--premium-border);
}

.activity-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.activity-dot {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--premium-soft-hover);
	color: var(--bs-primary);
	flex-shrink: 0;
}

.quick-action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-decoration: none;
	color: var(--bs-body-color);
	border: 1px solid var(--premium-border);
	border-radius: 18px;
	padding: 14px 16px;
	background: var(--premium-surface-muted);
	margin-bottom: 12px;
}

.quick-action:last-child {
	margin-bottom: 0;
}

.quick-action:hover {
	background: var(--premium-surface);
	border-color: rgba(99, 102, 241, 0.16);
}

.highlight {
	background: color-mix(in srgb, var(--premium-surface-muted) 82%, var(--premium-surface)) !important;
	border-color: var(--premium-border) !important;
	color: var(--bs-body-color) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-check:checked + .btn,
.btn-check:checked + .btn.btn-outline-primary,
.btn-check:checked + .btn.btn-outline-secondary,
.btn-check:checked + .btn.btn-outline-light,
.btn.active.btn-outline-primary,
.btn.show.btn-outline-primary {
	background: linear-gradient(135deg, var(--premium-hero-accent-1), var(--premium-hero-accent-2), var(--premium-hero-accent-3)) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow:
		0 0 0 1px color-mix(in srgb, var(--bs-info) 30%, transparent) inset,
		var(--premium-button-shadow) !important;
	transform: translateY(-1px);
}

.btn-check:checked + .btn .text-body-secondary,
.btn.active.btn-outline-primary .text-body-secondary,
.btn.show.btn-outline-primary .text-body-secondary {
	color: rgba(255, 255, 255, 0.78) !important;
}

.btn-check:checked + .btn .badge,
.btn.active.btn-outline-primary .badge,
.btn.show.btn-outline-primary .badge {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.22) !important;
}

@media (max-width: 991.98px) {
	.hero-mini-stats {
		grid-template-columns: 1fr;
	}
}

body {
	background:
		radial-gradient(circle at 0% 0%, var(--premium-body-grad-1), transparent 28%),
		radial-gradient(circle at 100% 100%, var(--premium-body-grad-2), transparent 32%),
		var(--premium-bg) !important;
	color: var(--bs-body-color);
}

.hero-card {
	background: linear-gradient(135deg, var(--premium-hero-accent-1) 0%, var(--premium-hero-accent-2) 55%, var(--premium-hero-accent-3) 100%) !important;
	border: 1px solid var(--premium-hero-border) !important;
	box-shadow:
		0 28px 70px rgba(var(--bs-primary-rgb), 0.24),
		0 10px 28px rgba(var(--bs-info-rgb), 0.16) !important;
	color: #fff !important;
}

.hero-card::before {
	background: var(--premium-hero-ring) !important;
}

.hero-card::after {
	color: rgba(255, 255, 255, 0.18) !important;
}

.hero-card .hero-badge,
.hero-card .info,
.hero-card .hero-mini-stat {
	background: var(--premium-hero-glass) !important;
	border: 1px solid var(--premium-hero-border) !important;
	backdrop-filter: blur(14px) saturate(145%);
	-webkit-backdrop-filter: blur(14px) saturate(145%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.10),
		var(--premium-hero-glass-shadow) !important;
}

.hero-card .hero-mini-stat .label {
	color: var(--premium-hero-text) !important;
}

.panel-card .hero-badge,
.workspace-card .hero-badge,
.activity-card .hero-badge,
.quick-card .hero-badge {
	background: transparent !important;
	border: 1px solid var(--premium-btn-outline-border) !important;
	color: var(--bs-primary) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
}

.btn-primary,
.badge.text-bg-primary,
.badge.bg-primary,
.pagination .active > .page-link,
.brand-mark,
.user-avatar {
	background: linear-gradient(135deg, var(--premium-hero-accent-1), var(--premium-hero-accent-2), var(--premium-hero-accent-3)) !important;
	border-color: transparent !important;
	box-shadow: var(--premium-button-shadow) !important;
	color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	box-shadow: var(--premium-button-shadow-hover) !important;
	filter: saturate(1.06) brightness(1.03);
}

.btn-outline-primary {
	border-color: var(--premium-btn-outline-border) !important;
	background: var(--premium-btn-outline-bg) !important;
	color: var(--bs-info) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
	border-color: var(--bs-info) !important;
	background: var(--premium-btn-outline-hover-bg) !important;
	color: var(--bs-info) !important;
	box-shadow: 0 14px 30px rgba(var(--bs-info-rgb), 0.16) !important;
}

.premium-orbit-border::before {
	background:
		linear-gradient(var(--premium-surface), var(--premium-surface)) padding-box,
		conic-gradient(
			from var(--snake-angle),
			transparent 0deg 312deg,
			var(--premium-orbit-color-1) 324deg,
			var(--premium-orbit-color-2) 338deg,
			var(--premium-orbit-color-1) 350deg,
			transparent 360deg
		) border-box !important;
}

.premium-orbit-border::after {
	box-shadow:
		0 0 0 1px var(--premium-orbit-outline) inset,
		0 0 18px var(--premium-orbit-glow) !important;
}

.premium-orbit-border-success::before {
	background:
		linear-gradient(var(--premium-surface), var(--premium-surface)) padding-box,
		conic-gradient(
			from var(--snake-angle),
			transparent 0deg 312deg,
			var(--premium-orbit-success-color-1) 324deg,
			var(--premium-orbit-success-color-2) 338deg,
			var(--premium-orbit-success-color-1) 350deg,
			transparent 360deg
		) border-box !important;
}

.premium-orbit-border-success::after {
	box-shadow:
		0 0 0 1px var(--premium-orbit-success-outline) inset,
		0 0 18px var(--premium-orbit-success-glow) !important;
}

.panel-card,
.workspace-card,
.activity-card,
.quick-card,
.card,
.modal-content,
.offcanvas,
.dropdown-menu {
	background: var(--premium-surface) !important;
	border-color: var(--premium-border) !important;
	color: var(--bs-body-color) !important;
}

.activity-dot {
	background: var(--premium-soft-hover) !important;
	color: var(--bs-info) !important;
}

.text-muted,
.text-secondary,
.small.text-muted {
	color: color-mix(in srgb, var(--bs-heading-color) 75%, transparent) !important;
}
