/* ==========================================================================
   FMF APP SHELL
   ========================================================================== */

.fmf-app-page {
	--fmf-shell-bg: #021733;
	--fmf-panel: #15263d;
	--fmf-panel-2: #203148;
	--fmf-border: rgba(255,255,255,0.10);
	--fmf-text: rgba(255,255,255,0.96);
	--fmf-muted: rgba(255,255,255,0.72);
	--fmf-faint: rgba(255,255,255,0.50);
	--fmf-blue: #2e85c7;
	--fmf-blue-soft: rgba(46,133,199,0.16);
	--fmf-radius-xl: 20px;
	--fmf-shell-gap: 16px;
	--fmf-shell-padding: 18px;
	--fmf-sidebar-width: 220px;
	--fmf-admin-bar-height: 0px;
	--fmf-mobilebar-height: 58px;

	margin: 0;
	background: var(--fmf-shell-bg);
	color: var(--fmf-text);
	overflow-x: hidden;
}

body.admin-bar.fmf-app-page {
	--fmf-admin-bar-height: 32px;
}

@media (max-width: 782px) {
	body.admin-bar.fmf-app-page {
		--fmf-admin-bar-height: 46px;
	}
}

.fmf-app-page *,
.fmf-app-page *::before,
.fmf-app-page *::after {
	box-sizing: border-box;
}

.fmf-app-page a {
	text-decoration: none;
}

.fmf-app-shell {
	display: grid;
	grid-template-columns: var(--fmf-sidebar-width) minmax(0, 1fr);
	gap: var(--fmf-shell-gap);
	padding: var(--fmf-shell-padding);
	min-height: calc(100vh - var(--fmf-admin-bar-height));
	background: var(--fmf-shell-bg);
}

/* ==========================================================================
   MOBILE TOP BAR
   ========================================================================== */

.fmf-app-mobilebar {
	display: none;
}

.fmf-app-mobilebar__left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fmf-app-mobilebar__brand {
	display: inline-flex;
	align-items: center;
}

.fmf-app-mobilebar__logo {
	display: block;
	width: auto;
	height: 34px;
	max-width: none;
}

.fmf-app-mobilebar__toggle {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	margin: 0;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
	color: #ffffff;
	cursor: pointer;
}

.fmf-app-mobilebar__hamburger,
.fmf-app-mobilebar__hamburger::before,
.fmf-app-mobilebar__hamburger::after {
	display: block;
	position: relative;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	content: "";
}

.fmf-app-mobilebar__hamburger::before {
	position: absolute;
	top: -6px;
	left: 0;
}

.fmf-app-mobilebar__hamburger::after {
	position: absolute;
	top: 6px;
	left: 0;
}

.fmf-app-mobilebar__brand {
	display: inline-flex;
	align-items: center;
}

.fmf-app-mobilebar__logo {
	display: block;
	width: auto;
	height: 34px;
	max-width: 34px;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.fmf-app-sidebar {
	position: sticky;
	top: calc(var(--fmf-shell-padding) + var(--fmf-admin-bar-height));
	align-self: start;
	height: calc(100vh - var(--fmf-admin-bar-height) - (var(--fmf-shell-padding) * 2));
}

.fmf-app-sidebar__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: linear-gradient(180deg, #11243d 0%, #102238 100%);
	border: 1px solid var(--fmf-border);
	border-radius: var(--fmf-radius-xl);
	overflow: hidden;
	position: relative;
}

.fmf-app-brand {
	flex: 0 0 auto;
	padding: 18px 14px 14px;
	border-bottom: 1px solid rgba(255,255,255,0.10);
	display: flex;
	justify-content: center;
	background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
}

.fmf-app-brand__image-wrap {
	display: inline-block;
	background: transparent !important;
	padding: 0;
	margin: 0;
	line-height: 0;
}

.fmf-app-brand__logo {
	display: block;
	width: auto;
	max-width: 86px;
	height: auto;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	filter: none !important;
	mix-blend-mode: normal !important;
}

.fmf-app-sidebar__close {
	display: none !important;
	appearance: none;
	-webkit-appearance: none;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.fmf-app-nav-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 10px 14px;
}

/* ==========================================================================
   MAIN
   ========================================================================== */

.fmf-app-main {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: var(--fmf-shell-gap);
}

.fmf-app-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	padding: 20px 22px;
	background: linear-gradient(180deg, #16283f 0%, #14253c 100%);
	border: 1px solid var(--fmf-border);
	border-radius: var(--fmf-radius-xl);
}

.fmf-app-header__copy {
	min-width: 0;
}

.fmf-app-header__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--fmf-text);
}

.fmf-app-header__subtitle {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--fmf-muted);
}

.fmf-app-header__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid rgba(46,133,199,0.48);
	background: var(--fmf-blue-soft);
	color: #ecf8ff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.fmf-app-content,
.fmf-app-content__inner {
	min-width: 0;
}

.fmf-app-content > .entry-content,
.fmf-app-content .elementor {
	margin: 0;
	padding: 0;
	background: transparent;
}

.fmf-app-content .elementor-section,
.fmf-app-content .elementor-container,
.fmf-app-content .elementor-column,
.fmf-app-content .elementor-widget-wrap {
	max-width: 100%;
}

/* ==========================================================================
   SHORTCODE MENU INSIDE SHELL
   ========================================================================== */

.fmf-app-nav-shell {
	min-width: 0;
}

.fmf-app-sidebar__inner .fmf-sidebar-nav {
	padding: 0;
	gap: 14px;
}

.fmf-app-sidebar__inner .fmf-nav-divider {
	margin: 8px 6px;
}

.fmf-app-sidebar__inner .fmf-nav-section {
	gap: 6px;
}

/* ==========================================================================
   RESPONSIVE - DRAWER NAV
   ========================================================================== */

.fmf-app-overlay {
	display: none;
}

@media (max-width: 1024px) {
	.fmf-app-shell {
		display: flex;
		flex-direction: column;
		gap: var(--fmf-shell-gap);
		padding-top: var(--fmf-shell-padding);
	}

	.fmf-app-mobilebar {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
		position: relative;
		width: 100%;
		max-width: 100%;
		padding: 0 4px;
		margin: 0;
		min-height: var(--fmf-mobilebar-height);
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		z-index: 1;
	}

	.fmf-app-mobilebar__left {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		gap: 12px;
	}

	.fmf-app-mobilebar__logo {
		height: 38px;
	}

	.fmf-app-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(86vw, 320px);
		height: 100vh;
		max-height: 100vh;
		z-index: 1200;
		transform: translateX(-105%);
		transition: transform 0.24s ease;
		padding: 12px;
		margin: 0;
	}

	.admin-bar .fmf-app-sidebar {
		top: var(--fmf-admin-bar-height);
		height: calc(100vh - var(--fmf-admin-bar-height));
	}

	.fmf-app-sidebar__inner {
		border-radius: 18px;
		height: 100%;
	}

	body.fmf-app-page .fmf-app-sidebar .fmf-app-sidebar__close,
	body.fmf-app-page .fmf-app-sidebar .fmf-app-sidebar__close:hover,
	body.fmf-app-page .fmf-app-sidebar .fmf-app-sidebar__close:focus {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 10px;
		right: 10px;
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;
		padding: 0 !important;
		margin: 0 !important;
		font-family: Arial, sans-serif !important;
		font-size: 30px !important;
		font-weight: 400 !important;
		line-height: 1 !important;
		color: rgba(255,255,255,0.92) !important;
		background: transparent !important;
		background-color: transparent !important;
		background-image: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		text-transform: none !important;
		letter-spacing: normal !important;
		cursor: pointer;
		z-index: 2;
	}

	.fmf-app-brand {
		padding-right: 46px;
	}

	.fmf-app-brand__logo {
		max-width: 72px;
	}

	.fmf-app-main {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	.fmf-app-header {
		width: 100%;
		max-width: 100%;
		margin: 0;
		flex-direction: column;
		align-items: flex-start;
	}

	.fmf-app-content,
	.fmf-app-content__inner,
	.fmf-dashboard-slot {
		width: 100%;
		max-width: 100%;
	}

	.fmf-app-page.fmf-nav-open .fmf-app-sidebar {
		transform: translateX(0);
	}

	.fmf-app-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.48);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.24s ease;
		z-index: 1150;
	}

	.fmf-app-page.fmf-nav-open .fmf-app-overlay {
		opacity: 1;
		pointer-events: auto;
	}
}

@media (max-width: 640px) {
	.fmf-app-page {
		--fmf-shell-padding: 12px;
		--fmf-shell-gap: 12px;
		--fmf-mobilebar-height: 54px;
	}

	.fmf-app-header {
		padding: 16px;
	}

	.fmf-app-header__title {
		font-size: 24px;
	}

	.fmf-app-header__subtitle {
		font-size: 13px;
	}

	.fmf-app-header__badge {
		font-size: 12px;
		padding: 8px 12px;
	}
}

/* Force shell controls to ignore global button styling */
.fmf-app-mobilebar button,
.fmf-app-sidebar button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
}