/* ============================================
   Full-Width Dashboard Layout
   Collapsible Sidebar + Full-Width Content
   ============================================ */

/* ---- Layout Structure ---- */
.dashboard-layout {
	display: flex;
	min-height: calc(100vh - 200px);
	position: relative;
}

/* ---- Gradient Background for Dashboard ---- */
.full-width-dashboard {
	min-height: calc(100vh - 160px);
}

.full-width-dashboard .page-wrapper {
	width: 100%;
}

.full-width-dashboard .page-content {
	background: transparent;
}

/* ---- Sidebar Panel ---- */
.dashboard-sidebar {
	width: 280px;
	min-width: 280px;
	max-width: 280px;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	position: relative;
	z-index: 100;
	flex-shrink: 0;
}

.dashboard-sidebar.collapsed {
	width: 0;
	min-width: 0;
	max-width: 0;
	opacity: 0;
	margin-left: -1px;
}

.dashboard-sidebar .sidebar-inner {
	width: 280px;
	min-width: 280px;
}

/* ---- Main Content Area ---- */
.dashboard-main-content {
	flex: 1;
	min-width: 0;
	padding-left: 24px;
	transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-sidebar.collapsed + .dashboard-main-content {
	padding-left: 0;
}

/* ---- Toggle Button (hidden) ---- */
.sidebar-toggle-btn {
	display: none;
}

/* ---- Page Heading Adjustments ---- */
.page-heading.clearfix {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.page-heading .heading-title {
	flex: 1;
	min-width: 0;
}

/* Override the container class for full width */
.content.container.full-width-dashboard {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 20px;
	padding-right: 20px;
}

/* ---- Override page-row for full width ---- */
.dashboard-main-content .page-row {
	width: 100%;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
	.dashboard-sidebar {
		width: 260px;
		min-width: 260px;
		max-width: 260px;
	}

	.dashboard-sidebar .sidebar-inner {
		width: 260px;
		min-width: 260px;
		position: static;
	}

	.dashboard-main-content {
		padding-left: 15px;
	}
}

@media (max-width: 768px) {
	.dashboard-layout {
		flex-direction: column;
	}

	.dashboard-sidebar {
		width: 100% !important;
		min-width: 100% !important;
		max-width: 100% !important;
		overflow: hidden;
		transition: all 0.35s ease;
	}

	.dashboard-sidebar.collapsed {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: 0;
		margin-left: 0;
	}

	.dashboard-sidebar .sidebar-inner {
		width: 100%;
		min-width: 100%;
		position: static;
		padding-right: 0;
	}

	.dashboard-main-content {
		padding-left: 0;
	}

	.dashboard-sidebar.collapsed + .dashboard-main-content {
		padding-left: 0;
	}

	.content.container.full-width-dashboard {
		padding-left: 15px;
		padding-right: 15px;
	}
}

@media (max-width: 480px) {
	.sidebar-toggle-btn {
		width: 36px;
		height: 36px;
		font-size: 14px;
		border-radius: 10px;
	}

	.content.container.full-width-dashboard {
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* ---- Smooth transition for admin dashboard grid on resize ---- */
.dashboard-main-content .admin-dashboard-grid {
	transition: all 0.35s ease;
}

/* ---- Sidebar widget merged look ---- */
.dashboard-sidebar .widget {
	margin-bottom: 0;
	border-radius: 16px 16px 16px 16px;
	box-shadow: none;
	background: rgba(255, 255, 255, 0.85) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ---- Content boxes in main area - matching glassmorphism ---- */
.dashboard-main-content .box,
.dashboard-main-content .dashboard-section {
	background: rgba(255, 255, 255, 0.85) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

.dashboard-main-content .page-row .box {
	background: rgba(255, 255, 255, 0.85) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 16px;
}

/* ---- Public pages with page-sidebar (staticPages, admissions) ---- */
.full-width-dashboard .page-row .page-sidebar {
	transition: all 0.3s ease;
}

