/* ==========================================================================
   MyCreaTools Sidebar Navigation Menu Widget CSS
   ========================================================================== */

.mct-sidebar-nav-container {
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 24px;
	padding: 16px 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
	box-sizing: border-box;
	font-family: inherit;
	width: 100%;
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.mct-sidebar-nav-container:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	border-color: #e2e8f0;
}

.mct-sidebar-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.mct-sidebar-nav-item {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

.mct-sidebar-nav-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 18px;
	border-radius: 14px;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	background: transparent;
	transition: all 0.2s ease;
	box-sizing: border-box;
	width: 100%;
}

.mct-sidebar-nav-link:hover {
	background: #f8fafc;
	color: #0f172a;
}

.mct-sidebar-nav-link .mct-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	min-width: 22px;
	color: #0f172a;
	transition: color 0.2s ease, transform 0.2s ease;
	flex-shrink: 0;
}

.mct-sidebar-nav-link .mct-nav-icon i {
	color: inherit !important;
}

.mct-sidebar-nav-link .mct-nav-icon svg {
	fill: currentColor !important;
	color: inherit !important;
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
}

.mct-sidebar-nav-link .mct-nav-icon svg path,
.mct-sidebar-nav-link .mct-nav-icon svg g,
.mct-sidebar-nav-link .mct-nav-icon svg rect,
.mct-sidebar-nav-link .mct-nav-icon svg circle {
	fill: currentColor !important;
}

.mct-sidebar-nav-link:hover:not(.is-active) .mct-nav-icon {
	color: #dc2626;
	transform: scale(1.06);
}

.mct-sidebar-nav-link:hover:not(.is-active) .mct-nav-icon i {
	color: inherit !important;
}

.mct-sidebar-nav-link:hover:not(.is-active) .mct-nav-icon svg,
.mct-sidebar-nav-link:hover:not(.is-active) .mct-nav-icon svg path {
	fill: currentColor !important;
	color: inherit !important;
}

.mct-sidebar-nav-link .mct-nav-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}

/* Active State (Solid Red Pill with White Text & White Icon) */
.mct-sidebar-nav-link.is-active {
	background: #dc2626 !important;
	color: #ffffff !important;
	font-weight: 700 !important;
}

.mct-sidebar-nav-link.is-active .mct-nav-icon,
.mct-sidebar-nav-link.is-active:hover .mct-nav-icon,
.mct-sidebar-nav-link.is-active:focus .mct-nav-icon {
	color: #ffffff !important;
	transform: none !important;
}

.mct-sidebar-nav-link.is-active .mct-nav-icon i,
.mct-sidebar-nav-link.is-active:hover .mct-nav-icon i,
.mct-sidebar-nav-link.is-active:focus .mct-nav-icon i {
	color: #ffffff !important;
}

.mct-sidebar-nav-link.is-active .mct-nav-icon svg,
.mct-sidebar-nav-link.is-active:hover .mct-nav-icon svg,
.mct-sidebar-nav-link.is-active:focus .mct-nav-icon svg,
.mct-sidebar-nav-link.is-active .mct-nav-icon svg path,
.mct-sidebar-nav-link.is-active:hover .mct-nav-icon svg path,
.mct-sidebar-nav-link.is-active:focus .mct-nav-icon svg path,
.mct-sidebar-nav-link.is-active .mct-nav-icon svg g,
.mct-sidebar-nav-link.is-active:hover .mct-nav-icon svg g,
.mct-sidebar-nav-link.is-active:focus .mct-nav-icon svg g {
	fill: #ffffff !important;
	color: #ffffff !important;
}

.mct-sidebar-nav-link.is-active .mct-nav-title {
	color: #ffffff !important;
}

.mct-sidebar-nav-link.is-active:hover {
	background: #b91c1c !important;
	color: #ffffff !important;
}

/* Optional Badge */
.mct-sidebar-nav-link .mct-nav-badge {
	background: #dc2626;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 9999px;
	line-height: 1.4;
	margin-left: auto;
}

.mct-sidebar-nav-link.is-active .mct-nav-badge {
	background: #ffffff;
	color: #dc2626;
}

/* Mobile Offcanvas Trigger Button */
.mct-sidebar-mobile-trigger {
	display: none;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 18px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	user-select: none;
	box-sizing: border-box;
}
.mct-sidebar-mobile-trigger:focus{
	background-color: transparent !important;
}

.mct-sidebar-mobile-trigger:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.mct-sidebar-mobile-trigger .mct-trigger-icon-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
}

.mct-sidebar-mobile-trigger .mct-trigger-icon {
	font-size: 16px;
	color: #dc2626;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mct-sidebar-mobile-trigger .mct-trigger-icon i {
	color: inherit !important;
}

.mct-sidebar-mobile-trigger .mct-trigger-icon svg {
	fill: currentColor !important;
	color: inherit !important;
	width: 1em;
	height: 1em;
}

.mct-sidebar-mobile-trigger .mct-trigger-icon svg path {
	fill: currentColor !important;
}

.mct-sidebar-mobile-trigger .mct-trigger-badge-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}

.mct-sidebar-mobile-trigger .mct-trigger-arrow {
	font-size: 12px;
	color: #94a3b8;
	transition: transform 0.2s ease;
}

/* Mobile Offcanvas Drawer & Backdrop */
.mct-sidebar-offcanvas-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(15, 23, 42, 0.65) !important;
	backdrop-filter: blur(6px) !important;
	-webkit-backdrop-filter: blur(6px) !important;
	z-index: 9999999 !important;
	display: flex !important;
	align-items: flex-end !important;
	justify-content: center !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.mct-sidebar-offcanvas-backdrop.is-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.mct-sidebar-offcanvas-drawer {
	background: #ffffff !important;
	width: 100% !important;
	max-width: 520px !important;
	border-radius: 20px 20px 0 0 !important;
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2) !important;
	overflow: hidden !important;
	max-height: 85vh !important;
	display: flex !important;
	flex-direction: column !important;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mct-sidebar-offcanvas-backdrop.is-open .mct-sidebar-offcanvas-drawer {
	transform: translateY(0);
}

.mct-sidebar-offcanvas-header {
	padding: 16px 20px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	border-bottom: 1px solid #f1f5f9 !important;
	background: #ffffff !important;
}

.mct-sidebar-offcanvas-title {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 !important;
}

.mct-sidebar-offcanvas-title i {
	color: #dc2626 !important;
}

.mct-sidebar-offcanvas-close {
	background: none !important;
	border: none !important;
	font-size: 26px !important;
	color: #94a3b8 !important;
	cursor: pointer !important;
	line-height: 1 !important;
	padding: 0 !important;
}

.mct-sidebar-offcanvas-body {
	padding: 16px 18px 24px 18px !important;
	overflow-y: auto !important;
}

.mct-sidebar-offcanvas-body .mct-sidebar-nav-container {
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
	.mct-sidebar-desktop-nav {
		display: none !important;
	}

	.mct-sidebar-mobile-trigger {
		display: flex !important;
	}
}

@media (min-width: 769px) {
	.mct-sidebar-mobile-trigger {
		display: none !important;
	}

	.mct-sidebar-offcanvas-backdrop {
		display: none !important;
	}

	.mct-sidebar-desktop-nav {
		display: block !important;
	}
}
