/**
 * Admin sidebar — soft modern (konsisten dengan admin-modern.css)
 */

:root {
	/* Sidebar — blue palette */
	--sf-navy: #2563eb;
	--sf-navy-dark: #1e40af;
	--sf-navy-light: #3b82f6;
	--sf-orange: #3b82f6;
	--sf-orange-light: #60a5fa;
	--sf-navy-soft: rgba(37, 99, 235, 0.08);
	--sf-navy-soft-md: rgba(37, 99, 235, 0.14);
	--sf-navy-soft-strong: rgba(37, 99, 235, 0.2);

	--adm-side-width: 260px;
	--adm-side-collapsed: 76px;
	--adm-side-primary: var(--sf-navy);
	--adm-side-primary-hover: var(--sf-navy-dark);
	--adm-side-accent: var(--sf-orange);
	--adm-side-primary-soft: var(--sf-navy-soft);
	--adm-side-border: rgba(148, 163, 184, 0.22);
	--adm-side-text: #334155;
	--adm-side-muted: #64748b;
	--adm-side-bg: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	--adm-side-head-bg: rgba(255, 255, 255, 0.94);
	--adm-side-active-gradient: linear-gradient(135deg, var(--sf-navy-dark) 0%, var(--sf-navy) 68%, var(--sf-navy-light) 100%);
}

/* —— Shell —— */
.sidebar-wrapper.adm-sidebar {
	width: var(--adm-side-width);
	font-family: "Plus Jakarta Sans", Roboto, sans-serif;
	background: var(--adm-side-bg);
	border-right: 1px solid var(--adm-side-border);
	box-shadow: 4px 0 28px rgba(15, 23, 42, 0.05) !important;
	transition: width 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-wrapper.adm-sidebar .sidebar-header {
	width: var(--adm-side-width);
	height: 64px;
	padding: 0 1rem;
	background: var(--adm-side-head-bg);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--adm-side-border);
	transition: width 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar-wrapper.adm-sidebar .logo-area {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.sidebar-wrapper.adm-sidebar .app-sidebar-logo-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.sidebar-wrapper.adm-sidebar .logo-icon.logo-full {
	height: 38px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.sidebar-wrapper.adm-sidebar .logo-icon.logo-mini {
	width: 38px;
	height: 38px;
	object-fit: contain;
	border-radius: 10px;
}

.sidebar-wrapper.adm-sidebar .adm-sidebar__toggle {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-size: 1.15rem;
	color: var(--adm-side-primary);
	background: var(--adm-side-primary-soft);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
	flex-shrink: 0;
}

.sidebar-wrapper.adm-sidebar .adm-sidebar__toggle:hover {
	background: var(--sf-navy-soft-md);
	color: var(--sf-navy-dark);
}

/* Logo toggle (collapsed) */
.adm-sidebar .logo-mini {
	display: none;
	width: 40px;
}

.adm-sidebar .logo-full {
	display: inline-block;
	max-width: 100%;
	height: 40px;
}

.adm-sidebar .logo-icon.logo-full {
	height: 38px;
	width: auto;
	max-width: min(180px, 100%);
	object-fit: contain;
}

.adm-sidebar .logo-icon.logo-mini {
	width: 38px;
	height: 38px;
	object-fit: contain;
	border-radius: 10px;
}

.wrapper.toggled .adm-sidebar .logo-full {
	display: none;
}

.wrapper.toggled .adm-sidebar .logo-mini {
	display: inline-block;
}

.wrapper.toggled.sidebar-hovered .adm-sidebar {
	width: var(--adm-side-width);
}

.wrapper.toggled.sidebar-hovered .adm-sidebar .sidebar-header {
	width: var(--adm-side-width);
}

.wrapper.toggled.sidebar-hovered .adm-sidebar .menu-title {
	display: inline-block;
}

.wrapper.toggled.sidebar-hovered .adm-sidebar .logo-full {
	display: inline-block;
}

.wrapper.toggled.sidebar-hovered .adm-sidebar .logo-mini {
	display: none;
}

@media (max-width: 768px) {
	.adm-sidebar .logo-full {
		display: inline-block !important;
	}

	.adm-sidebar .logo-mini {
		display: none !important;
	}
}

/* —— Menu —— */
.sidebar-wrapper.adm-sidebar .metismenu,
.sidebar-wrapper.adm-sidebar .metismenu ul,
.sidebar-wrapper.adm-sidebar .metismenu li {
	list-style: none;
}

.sidebar-wrapper.adm-sidebar .metismenu {
	padding: 0.65rem 0.6rem 1.5rem;
}

.sidebar-wrapper.adm-sidebar .metismenu > li + li {
	margin-top: 2px;
}

.sidebar-wrapper.adm-sidebar .metismenu a {
	display: flex;
	align-items: center;
	padding: 0.5rem 0.7rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--adm-side-text);
	letter-spacing: 0;
	border-radius: 12px;
	transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon {
	width: 36px;
	height: 36px;
	min-width: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-right: 0.65rem;
	font-size: 1.05rem;
	line-height: 1;
	border-radius: 10px;
	background: var(--sf-navy-soft);
	color: var(--adm-side-primary);
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon i.bi::before {
	display: inline-block;
	line-height: 1;
}

.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon i.fas,
.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon i.far,
.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon i.fab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 1em;
	line-height: 1;
}

.sidebar-wrapper.adm-sidebar .metismenu a .parent-icon svg.svg-inline--fa {
	width: 1em;
	height: 1em;
	display: block;
}

.sidebar-wrapper.adm-sidebar .metismenu a .menu-title {
	margin-left: 0;
	flex: 1;
	min-width: 0;
}

.sidebar-wrapper.adm-sidebar .metismenu a:hover,
.sidebar-wrapper.adm-sidebar .metismenu a:focus,
.sidebar-wrapper.adm-sidebar .metismenu a:active {
	color: var(--adm-side-primary);
	text-decoration: none;
	background: var(--adm-side-primary-soft);
}

.sidebar-wrapper.adm-sidebar .metismenu a:hover .parent-icon,
.sidebar-wrapper.adm-sidebar .metismenu a:focus .parent-icon {
	background: var(--sf-navy-soft-md);
	color: var(--sf-navy-dark);
}

.sidebar-wrapper.adm-sidebar .metismenu .mm-active > a {
	position: relative;
	color: var(--adm-side-primary);
	font-weight: 600;
	background: var(--adm-side-primary-soft);
}

.sidebar-wrapper.adm-sidebar .metismenu .mm-active > a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 58%;
	border-radius: 0 4px 4px 0;
	background: linear-gradient(180deg, var(--sf-orange) 0%, var(--sf-orange-light) 100%);
}

.sidebar-wrapper.adm-sidebar .metismenu .mm-active > a .parent-icon {
	background: var(--adm-side-active-gradient);
	color: #fff;
	box-shadow: 0 3px 10px rgba(37, 99, 235, 0.32), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.sidebar-wrapper.adm-sidebar .menu-label {
	padding: 1rem 0.75rem 0.35rem;
	margin-top: 0.35rem;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--adm-side-muted);
}

.sidebar-wrapper.adm-sidebar .metismenu .has-arrow::after {
	border-color: #94a3b8;
	right: 12px;
	opacity: 0.85;
}

.sidebar-wrapper.adm-sidebar .metismenu .mm-active > a.has-arrow::after,
.sidebar-wrapper.adm-sidebar .metismenu a.has-arrow:hover::after {
	border-color: var(--adm-side-primary);
}

/* Submenu collapse — ensure hidden when metismenu is collapsed */
.sidebar-wrapper.adm-sidebar .metismenu .mm-collapse:not(.mm-show) {
	display: none;
}

.sidebar-wrapper.adm-sidebar .metismenu .mm-collapsing {
	position: relative;
	height: 0;
	overflow: hidden;
	transition: height 0.35s ease;
}

/* Submenu */
.sidebar-wrapper.adm-sidebar .metismenu ul {
	margin: 0.2rem 0 0.4rem 0.35rem;
	padding: 0.15rem 0 0.15rem 0.65rem;
	border: none;
	border-left: 2px solid rgba(37, 99, 235, 0.22);
	background: transparent;
}

.sidebar-wrapper.adm-sidebar .metismenu ul a {
	padding: 0.42rem 0.65rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #64748b;
	border-radius: 8px;
}

.sidebar-wrapper.adm-sidebar .metismenu ul a i {
	font-size: 0.5rem;
	color: #60a5fa;
	margin-right: 0.45rem;
	vertical-align: middle;
}

.sidebar-wrapper.adm-sidebar .metismenu ul a:hover,
.sidebar-wrapper.adm-sidebar .metismenu ul a:focus,
.sidebar-wrapper.adm-sidebar .metismenu ul .mm-active > a {
	color: var(--adm-side-primary);
	background: var(--sf-navy-soft);
}

.sidebar-wrapper.adm-sidebar .metismenu ul ul {
	margin-left: 0.55rem;
	padding-left: 0.55rem;
	border-left-color: rgba(37, 99, 235, 0.14);
}

.sidebar-wrapper.adm-sidebar .metismenu ul ul a {
	padding-left: 0.85rem;
	font-size: 0.78rem;
}

.sidebar-wrapper.adm-sidebar .metismenu ul a.has-arrow {
	position: relative;
}

.sidebar-wrapper.adm-sidebar .metismenu a.logout:hover,
.sidebar-wrapper.adm-sidebar .metismenu a.logout:focus {
	color: #dc2626;
	background: rgba(239, 68, 68, 0.08);
}

.sidebar-wrapper.adm-sidebar .metismenu a.logout:hover .parent-icon {
	background: rgba(239, 68, 68, 0.12);
	color: #dc2626;
}

/* Collapsed desktop */
@media screen and (min-width: 1025px) {
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar {
		width: var(--adm-side-collapsed);
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .sidebar-header {
		width: var(--adm-side-collapsed);
		justify-content: center;
		padding: 0 0.5rem;
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu a {
		justify-content: center;
		padding: 0.5rem;
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu a .parent-icon {
		margin-right: 0;
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu .menu-title,
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu li.menu-label,
	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu .has-arrow::after {
		display: none;
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .metismenu li ul {
		display: none;
	}

	.wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper.adm-sidebar .adm-sidebar__toggle {
		display: none;
	}
}

/* —— Dark theme —— */
html.dark-theme .sidebar-wrapper.adm-sidebar {
	--adm-side-bg: linear-gradient(180deg, #151b1e 0%, #12181a 100%);
	--adm-side-head-bg: rgba(18, 24, 26, 0.95);
	--adm-side-border: rgba(255, 255, 255, 0.1);
	--adm-side-text: #cbd5e1;
	--adm-side-muted: #64748b;
	--adm-side-primary-soft: rgba(59, 130, 246, 0.14);
}

html.dark-theme .sidebar-wrapper.adm-sidebar .metismenu a .parent-icon {
	background: rgba(59, 130, 246, 0.12);
	color: #93c5fd;
}

html.dark-theme .sidebar-wrapper.adm-sidebar .metismenu .mm-active > a,
html.dark-theme .sidebar-wrapper.adm-sidebar .metismenu a:hover {
	color: #e2e8f0;
}

/* —— Colored sidebar themes —— */
html.color-sidebar .sidebar-wrapper.adm-sidebar {
	--adm-side-text: rgba(255, 255, 255, 0.88);
	--adm-side-muted: rgba(255, 255, 255, 0.5);
	--adm-side-primary-soft: rgba(255, 255, 255, 0.12);
	--adm-side-border: rgba(255, 255, 255, 0.12);
	--adm-side-head-bg: rgba(0, 0, 0, 0.12);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .sidebar-header {
	border-bottom-color: rgba(255, 255, 255, 0.12);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu a .parent-icon {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu a:hover,
html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu .mm-active > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.14);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu .mm-active > a .parent-icon {
	background: rgba(255, 255, 255, 0.28);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu ul {
	border-left-color: rgba(255, 255, 255, 0.25);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu ul a {
	color: rgba(255, 255, 255, 0.78);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu ul a i {
	color: rgba(255, 255, 255, 0.55);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .adm-sidebar__toggle {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

html.color-sidebar .sidebar-wrapper.adm-sidebar .metismenu .has-arrow::after {
	border-color: rgba(255, 255, 255, 0.65);
}

/* Semi-dark */
html.semi-dark .sidebar-wrapper.adm-sidebar {
	--adm-side-bg: #1a2226;
	--adm-side-head-bg: #1a2226;
	--adm-side-border: rgba(255, 255, 255, 0.08);
	--adm-side-text: #b6bec6;
	--adm-side-muted: #6b7280;
}

/* Scrollbar */
.sidebar-wrapper.adm-sidebar .simplebar-scrollbar::before {
	background: rgba(37, 99, 235, 0.4);
	border-radius: 4px;
}

/* —— Topbar (match sidebar) —— */
.topbar.adm-topbar {
	height: 64px;
	background: var(--adm-side-head-bg) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--adm-side-border) !important;
	box-shadow: none !important;
	font-family: "Plus Jakarta Sans", Roboto, sans-serif;
	transition: left 0.2s ease;
}

.topbar.adm-topbar .navbar {
	height: 64px;
	width: 100%;
	padding: 0 1rem 0 1.15rem;
	gap: 0.75rem;
}

.topbar.adm-topbar .adm-topbar__toggle,
.topbar.adm-topbar .sidebar-toggle-menu,
.topbar.adm-topbar .mobile-toggle-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	margin: 0;
	font-size: 1.35rem;
	color: var(--adm-side-primary);
	background: var(--adm-side-primary-soft);
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topbar.adm-topbar .adm-topbar__toggle:hover,
.topbar.adm-topbar .sidebar-toggle-menu:hover,
.topbar.adm-topbar .mobile-toggle-menu:hover {
	background: var(--sf-navy-soft-md);
	color: var(--sf-navy-dark);
}

.topbar.adm-topbar .adm-topbar__search {
	flex: 1;
	max-width: 280px;
	min-width: 0;
}

.topbar.adm-topbar .adm-topbar__search-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.5rem 1rem;
	font-size: 0.85rem;
	font-weight: 500;
	font-family: inherit;
	color: var(--adm-side-muted);
	background: rgba(37, 99, 235, 0.06);
	border: 1px solid var(--adm-side-border);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
	text-decoration: none;
}

.topbar.adm-topbar .adm-topbar__search-btn:hover {
	color: var(--adm-side-primary);
	border-color: rgba(37, 99, 235, 0.25);
	background: rgba(37, 99, 235, 0.1);
}

.topbar.adm-topbar .adm-topbar__search-btn i {
	font-size: 1.1rem;
}

.topbar.adm-topbar .top-menu {
	display: flex;
	align-items: center;
}

.topbar.adm-topbar .navbar-nav {
	gap: 0.35rem;
}

.topbar.adm-topbar .navbar-nav .nav-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 10px;
	color: var(--adm-side-text);
	background: transparent;
	transition: background 0.15s ease, color 0.15s ease;
}

.topbar.adm-topbar .navbar-nav .nav-link:hover,
.topbar.adm-topbar .navbar-nav .nav-link:focus {
	color: var(--adm-side-primary);
	background: var(--adm-side-primary-soft);
}

.topbar.adm-topbar .adm-topbar__language-toggle {
	width: 40px;
	min-width: 40px;
	padding: 0;
}

.topbar.adm-topbar .adm-topbar__language-flag-img,
.topbar.adm-topbar .adm-topbar__language-item-flag-img {
	display: block;
	width: 22px;
	height: 16px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.topbar.adm-topbar .adm-topbar__language-item-flag-img {
	margin-right: 0.65rem;
	flex-shrink: 0;
}

.topbar.adm-topbar .adm-topbar__language-menu .dropdown-item.active {
	color: var(--adm-side-primary);
	background: var(--adm-side-primary-soft);
	font-weight: 600;
}

.topbar.adm-topbar .user-box {
	height: 64px;
	padding: 0 0 0 0.75rem !important;
	margin: 0;
	border: none;
	border-left: 1px solid var(--adm-side-border);
	background: transparent;
}

.topbar.adm-topbar .user-box > .nav-link {
	padding: 0.35rem 0.5rem 0.35rem 0.35rem;
	border-radius: 12px;
	transition: background 0.15s ease;
	gap: 0.65rem;
}

.topbar.adm-topbar .navbar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
}

.topbar.adm-topbar .user-box > .nav-link:hover {
	background: var(--adm-side-primary-soft);
}

.topbar.adm-topbar .user-img {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.topbar.adm-topbar .user-info {
	line-height: 1.3;
	min-width: 0;
}

.topbar.adm-topbar .user-name {
	font-size: 0.88rem;
	font-weight: 700;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 160px;
}

.topbar.adm-topbar .designattion {
	font-size: 0.75rem;
	color: var(--adm-side-muted);
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.topbar.adm-topbar .designattion i {
	color: var(--adm-side-primary);
	font-size: 0.9rem;
}

.topbar.adm-topbar .dropdown-menu {
	border: 1px solid var(--adm-side-border);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	padding: 0.4rem;
	font-family: inherit;
	margin-top: 0.35rem !important;
}

.topbar.adm-topbar .dropdown-menu::after {
	display: none;
}

.topbar.adm-topbar .dropdown-item {
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--adm-side-text);
}

.topbar.adm-topbar .dropdown-item i {
	color: var(--adm-side-primary);
	margin-right: 0.5rem;
}

.topbar.adm-topbar .dropdown-item:hover {
	background: var(--adm-side-primary-soft);
	color: var(--adm-side-primary);
}

.topbar.adm-topbar .dropdown-divider {
	border-color: var(--adm-side-border);
	margin: 0.35rem 0;
}

.topbar.adm-topbar .adm-topbar__env-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.4rem 0.85rem;
	font-size: 0.78rem;
	font-weight: 600;
	font-family: inherit;
	color: #b45309;
	background: rgba(245, 158, 11, 0.12);
	border: 1px solid rgba(245, 158, 11, 0.25);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.topbar.adm-topbar .adm-topbar__env-btn:hover {
	background: rgba(245, 158, 11, 0.2);
}

/* Page offset — align with 64px header */
.page-wrapper {
	margin-top: 64px;
}

/* Topbar offset when sidebar width changes */
@media screen and (min-width: 1025px) {
	.wrapper.toggled:not(.sidebar-hovered) .topbar {
		left: var(--adm-side-collapsed);
	}

	.topbar.adm-topbar,
	.topbar {
		left: var(--adm-side-width);
	}

	.wrapper.toggled:not(.sidebar-hovered) .page-footer {
		left: var(--adm-side-collapsed);
	}

	.page-footer {
		left: var(--adm-side-width);
	}

	.wrapper.toggled:not(.sidebar-hovered) .page-wrapper {
		margin-left: var(--adm-side-collapsed);
	}

	.page-wrapper {
		margin-left: var(--adm-side-width);
		transition: margin-left 0.2s ease;
	}
}

@media (max-width: 1024px) {
	.topbar.adm-topbar .navbar {
		padding: 0 0.85rem;
	}
}

@media (max-width: 767.98px) {
	.topbar.adm-topbar .user-info {
		display: none !important;
	}

	.topbar.adm-topbar .user-box > .nav-link {
		padding: 0.25rem;
	}
}

html.dark-theme .topbar.adm-topbar {
	--adm-side-head-bg: rgba(30, 41, 59, 0.95);
	--adm-side-border: rgba(148, 163, 184, 0.15);
	--adm-side-text: #e2e8f0;
	--adm-side-muted: #94a3b8;
}

html.dark-theme .topbar.adm-topbar .user-name {
	color: #f1f5f9;
}

html.semi-dark .topbar.adm-topbar {
	--adm-side-head-bg: #1a2226;
	--adm-side-border: rgba(255, 255, 255, 0.08);
}

/* Member menu search modal */
.modal.adm-menu-search {
	font-family: "Plus Jakarta Sans", Roboto, sans-serif;
}

.modal.adm-menu-search .modal-content {
	border: 1px solid var(--adm-side-border);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.modal.adm-menu-search .modal-header {
	padding: 1rem 1.15rem;
	border-bottom: 1px solid var(--adm-side-border);
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.modal.adm-menu-search .modal-body {
	padding: 0.75rem 1rem 1rem;
	max-height: min(70vh, 520px);
	overflow-y: auto;
}

.modal.adm-menu-search .adm-menu-search__field {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--adm-side-border);
	border-radius: 12px;
	background: var(--sf-navy-soft);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal.adm-menu-search .adm-menu-search__field:focus-within {
	border-color: rgba(37, 99, 235, 0.4);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
	background: #fff;
}

.modal.adm-menu-search .adm-menu-search__field > i {
	color: var(--adm-side-primary);
	font-size: 1.2rem;
	flex-shrink: 0;
}

.modal.adm-menu-search .adm-menu-search__field .form-control {
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 0.45rem 0;
	font-size: 0.95rem;
	font-weight: 500;
}

.modal.adm-menu-search .adm-menu-search__field .form-control:focus {
	box-shadow: none;
}

.modal.adm-menu-search .adm-menu-search__hint {
	font-size: 0.78rem;
	color: var(--adm-side-muted);
	margin: 0 0 0.65rem;
}

.modal.adm-menu-search .adm-menu-search__results {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.modal.adm-menu-search .adm-menu-search__group {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--adm-side-muted);
	padding: 0.65rem 0.5rem 0.25rem;
}

.modal.adm-menu-search .adm-menu-search__item {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.65rem;
	border-radius: 10px;
	text-decoration: none;
	color: var(--adm-side-text);
	border: 1px solid transparent;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.modal.adm-menu-search .adm-menu-search__item:hover {
	background: var(--adm-side-primary-soft);
	border-color: rgba(37, 99, 235, 0.18);
	color: #1e293b;
}

.modal.adm-menu-search .adm-menu-search__item-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--adm-side-primary-soft);
	color: var(--adm-side-primary);
	flex-shrink: 0;
	font-size: 1.05rem;
}

.modal.adm-menu-search .adm-menu-search__item-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.modal.adm-menu-search .adm-menu-search__item-parent {
	font-size: 0.72rem;
	color: var(--adm-side-muted);
}

.modal.adm-menu-search .adm-menu-search__item-title {
	font-size: 0.88rem;
	font-weight: 600;
}

.modal.adm-menu-search .adm-menu-search__item-arrow {
	color: #cbd5e1;
	font-size: 1.1rem;
}

.modal.adm-menu-search .adm-menu-search__item--logout .adm-menu-search__item-icon {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
}

.modal.adm-menu-search .adm-menu-search__item--logout:hover {
	background: rgba(239, 68, 68, 0.08);
	border-color: rgba(239, 68, 68, 0.15);
}

.modal.adm-menu-search .adm-menu-search__empty {
	text-align: center;
	padding: 2rem 1rem;
	color: var(--adm-side-muted);
}

.modal.adm-menu-search .adm-menu-search__empty i {
	font-size: 2rem;
	display: block;
	margin-bottom: 0.5rem;
	opacity: 0.5;
}

.modal.adm-menu-search .adm-menu-search__empty p {
	margin: 0;
	font-size: 0.88rem;
}

html.dark-theme .modal.adm-menu-search .modal-header {
	background: rgba(30, 41, 59, 0.95);
}

html.dark-theme .modal.adm-menu-search .modal-content {
	background: #1e293b;
}

html.dark-theme .modal.adm-menu-search .adm-menu-search__item:hover {
	color: #f1f5f9;
}

/* —— Primary buttons: same gradient as active sidebar —— */
.btn-primary {
	background-color: var(--sf-navy);
	background-image: var(--adm-side-active-gradient);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
	background-color: var(--sf-navy-dark);
	background-image: linear-gradient(135deg, var(--sf-navy-dark) 0%, var(--sf-navy) 72%, var(--sf-navy-light) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 18px rgba(37, 99, 235, 0.34);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show > .btn-primary.dropdown-toggle {
	background-color: var(--sf-navy-dark);
	background-image: linear-gradient(135deg, #1e3a8a 0%, var(--sf-navy-dark) 55%, var(--sf-navy) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 2px 10px rgba(30, 64, 175, 0.35);
}

.btn-primary.disabled,
.btn-primary:disabled {
	background-color: var(--sf-navy);
	background-image: var(--adm-side-active-gradient);
	border-color: transparent;
	color: #fff;
	opacity: 0.65;
	box-shadow: none;
}

.btn-primary:not(:disabled):not(.disabled):active:focus,
.btn-primary:not(:disabled):not(.disabled).active:focus,
.show > .btn-primary.dropdown-toggle:focus {
	box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.35);
}
