#menu_panel{
	width:0px;
	z-index:5000;
	background:#00002A;
	color:#FFF;
}

#menu_panel>div{
	position:fixed; 
	top:0px; 
	left:0px; 
	width:200px;
	height:100%;
	background:#00002A;
	z-index:5000;	
}
#menubtnpanel{
	width:100px;
	
}

#content_panel{
	width:100px;
	
}

#menu_click{
	background:#999;
	border:0px none;
	color:#FFF;
	width:25px;
	height:25px;
}

#fixedHeader{
	 height:50px;
	 top:0px;
	 left:0px;
	 position:fixed;
	 background: #00002A;
	 z-index: 99;
}
.menu_table {
	display:table;
	height:100%;
}
.menu_table>div {
	display:table-row-group;
	height:100%;
}


@media (min-width: 768px) {
	#menu_panel{
		width:200px;
		z-index:5000;
	}
	#content_panel{
		width:600px;
		padding-left:200px;
	}

}

:root {
	--primary: #2c3e50;
	--secondary: #3498db;
	--accent: #2980b9;
	--light: #ecf0f1;
	--dark: #34495e;
	--success: #27ae60;
	--warning: #f39c12;
	--danger: #e74c3c;
	--gray: #95a5a6;
	--border: #dfe6e9;
	--shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: #f5f7fa;
	color: #333;
	min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
	width: 250px;
	background: var(--primary);
	color: white;
	transition: all 0.3s ease;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 1000;
	transform: translateX(-100%);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.show {
	transform: translateX(0);
}

.logo {
	padding: 20px 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo i {
	font-size: 24px;
	color: var(--secondary);
}

.logo h1 {
	color: white;
	font-size: 20px;
	font-weight: 600;
}

.nav-links {
	padding: 15px 0;
}

.nav-links li {
	list-style: none;
	cursor: pointer;
	transition: all 0.2s;
	position: relative;
}

.menu-item-content {
	padding: 12px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.nav-links li:hover .menu-item-content,
.nav-links li.active .menu-item-content {
	background: rgba(255, 255, 255, 0.1);
	border-left: 4px solid var(--secondary);
}

.nav-links li i {
	width: 20px;
	text-align: center;
}

/* Submenu Styles */
.has-submenu {
	position: relative;
}

.submenu-arrow {
	margin-left: auto;
	transition: transform 0.3s ease;
	font-size: 12px;
}

.has-submenu.active .submenu-arrow {
	transform: rotate(180deg);
}

.submenu-container {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	background: rgba(0, 0, 0, 0.2);
}

.has-submenu.active .submenu-container {
	max-height: 500px;
}

.submenu-container li {
	padding: 10px 20px 10px 45px !important;
	font-size: 14px;
	border-left: none !important;
	display: flex;
	align-items: center;
	gap: 12px;
}

.submenu-container li:hover {
	background: rgba(255, 255, 255, 0.05) !important;
}

.submenu-container li.active {
	background: rgba(52, 152, 219, 0.2) !important;
	color: var(--secondary);
}

.submenu-container li i {
	font-size: 12px;
	width: 20px;
	text-align: center;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
	.sidebar {
		width: 280px;
	}
	
	.submenu-container li {
		padding: 10px 20px 10px 50px !important;
	}
	
	.nav-text {
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Overlay for mobile */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.overlay.show {
	display: block;
}

/* Main Content Styles */
.main-content {
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
	transition: all 0.3s ease;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--border);
}

.header h2 {
	color: var(--dark);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 15px;
}

.menu-toggle {
	background: var(--secondary);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
}

.menu-toggle:hover {
	background: var(--accent);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

/* User avatar in table */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive */
@media (min-width: 992px) {
	.sidebar {
		transform: translateX(-100%);
	}
	.sidebar.show {
		transform: translateX(0);
	}
	.overlay {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}
}

/* Mobile responsive layout */
@media (max-width: 768px) {
	body {
		padding-top: 70px; /* Space for fixed header */
	}

	.sidebar {
		width: 100%;
		height: auto;
		position: fixed;
		top: 70px;
		left: 0;
		transform: translateY(-100%);
		z-index: 1000;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}

	.sidebar.show {
		transform: translateY(0);
	}

	.nav-links {
		max-height: 60vh;
		overflow-y: auto;
	}

	/* Fixed header for mobile */
	.header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background: white;
		z-index: 1001;
		margin-bottom: 0;
		padding: 10px 15px;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}

	.main-content {
		padding: 20px 15px;
		margin-top: 70px; /* Offset for fixed header */
	}

	.submenu-container li {
		padding: 10px 20px 10px 50px !important;
	}

	/* Hide logo text in sidebar on mobile to save space */
	.logo h1 {
		font-size: 18px;
	}

	/* Adjust menu toggle button */
	.menu-toggle {
		width: 35px;
		height: 35px;
	}
}

/* Extra small mobile devices */
@media (max-width: 480px) {
	.header {
		padding: 8px 10px;
	}

	.main-content {
		padding: 15px 10px;
		margin-top: 60px;
	}

	body {
		padding-top: 60px;
	}

	.sidebar {
		top: 60px;
	}

	.user-avatar {
		width: 35px;
		height: 35px;
		font-size: 14px;
	}

	.header h2 {
		font-size: 16px;
		gap: 10px;
	}
}

/* Ensure overlay covers properly on mobile */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
	display: none;
}

.overlay.show {
	display: block;
}

/* Mobile menu improvements */
@media (max-width: 768px) {
	.nav-links li {
		padding: 10px 15px;
	}

	.menu-item-content {
		padding: 10px 15px;
	}

	.submenu-container li {
		padding: 8px 15px 8px 40px !important;
	}

	/* Improve touch targets */
	.nav-links li,
	.submenu-container li {
		min-height: 44px; /* Minimum touch target size */
	}
}

/* Mobile Header */
.mobile-header {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: var(--primary);
	color: white;
	z-index: 1002;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	height: 60px;
}

.mobile-menu-toggle {
	background: var(--secondary);
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.mobile-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 18px;
}

.mobile-logo i {
	color: var(--secondary);
}

.mobile-avatar {
	width: 35px;
	height: 35px;
	font-size: 14px;
}

/* Hide desktop header on mobile, show mobile header */
@media (max-width: 768px) {
	.header {
		display: none;
	}

	.mobile-header {
		display: block;
	}

	.sidebar {
		top: 60px; /* Below mobile header */
	}

	body {
		padding-top: 50px; /* 60px; */
	}

	.main-content {
		margin-top: 0px; /* 60px; */
	}
}

/* Show desktop header on larger screens */
@media (min-width: 769px) {
	.mobile-header {
		display: none;
	}

	.header {
		display: flex;
	}
}