/* ============================================
   COLLAPSABLE MENU WIDGET STYLES
   ============================================ */

/* Main container */
.collapsable-menu-widget {
	background: #fafafa;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
}

/* Menu list */
.collapsable-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Parent menu item */
.collapsable-menu-parent {
	position: relative;
}

/* Menu header container */
.menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}

/* Main navigation link */
.nav-link-text {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	text-decoration: none;
	font-weight: bold;
	font-size: 18px;
	color: #222;
}

.nav-link-text:hover {
	color: #333;
}

/* Toggle button - hidden by default, shown only on mobile */
.menu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	display: none;
	color: #666;
	transition: all 0.3s ease;
	position: relative;
}

.menu-toggle:hover {
	color: #333;
}

/* Custom icons container */
.expand-icon,
.collapse-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.expand-icon i,
.collapse-icon i {
	font-size: 14px;
	transition: all 0.3s ease;
}

.expand-icon svg,
.collapse-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
	transition: all 0.3s ease;
}

/* Custom SVG images */
.toggle-svg-icon {
	width: 14px;
	height: 14px;
	object-fit: contain;
	transition: all 0.3s ease;
}

/* Default toggle arrow (fallback) */
.toggle-arrow-default {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid currentColor;
	transition: transform 0.3s ease;
}

.menu-expanded .toggle-arrow-default {
	transform: rotate(180deg);
}

/* Legacy toggle arrow support */
.toggle-arrow {
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid currentColor;
	transition: transform 0.3s ease;
}

.menu-expanded .toggle-arrow {
	transform: rotate(180deg);
}

/* Submenu */
.sub-sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 16px 12px 32px;
	transition: all 0.3s ease;
}

.sub-sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	text-decoration: none;
	color: #222;
	padding: 6px 0;
	transition: all 0.3s ease;
}

.sub-sub-menu a:hover {
	color: #555;
}

.sub-sub-menu li {
	list-style: none;
}

/* Images */
.menu-parent-img,
.menu-child-img {
	width: 20px;
	height: 20px;
	object-fit: cover;
	border-radius: 2px;
	margin-right: 4px;
}

/* Labels */
.menu-label {
	margin-left: 8px;
	font-size: 12px;
	border-radius: 3px;
	padding: 2px 6px;
	background: #eee;
	font-weight: normal;
}

/* Label color variants */
.menu-label-primary { background: #e0eaff; color: #234; }
.menu-label-secondary { background: #f6f6f6; color: #444; }
.menu-label-red { background: #ffe0e0; color: #b00; }
.menu-label-green { background: #e0ffe0; color: #080; }
.menu-label-blue { background: #e0f0ff; color: #006; }
.menu-label-orange { background: #fff0e0; color: #b60; }
.menu-label-grey { background: #eaeaea; color: #666; }
.menu-label-white { background: #fff; color: #222; border: 1px solid #eee; }
.menu-label-black { background: #222; color: #fff; }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Toggle button visibility is controlled entirely by JavaScript based on dynamic breakpoint */
/* No CSS media queries should override the JavaScript behavior */

/* Default state - toggle button is hidden, JavaScript will show it when needed */
.menu-toggle {
	display: none;
}

/* Submenu default behavior - shown by default, JavaScript will hide when needed */
.sub-sub-menu {
	display: block;
	margin-top: 0;
	transition: all 0.3s ease;
}

/* When menu is collapsed (mobile state), submenu is hidden */
.sub-sub-menu.collapsed {
	display: none;
}

/* When menu is expanded via toggle, submenu is shown */
.menu-expanded .sub-sub-menu {
	display: block;
}