/* Basic Layout */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: #f5f7fa;
}

header {
	background: #f8f9fa;
	padding: 15px;
	text-align: center;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	color: #333;
}

header img {
	height: 50px;
	margin-right: 15px;
	filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

/* Enhanced Navigation */
nav {
	background: #007bff;
	padding: 12px 0;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

nav > ul > li {
	margin: 0 15px;
	position: relative;
}

/* Home Button in Middle */
.home-symbol {
	margin: 0 30px;
	transform: scale(1.3);
	transition: all 0.3s ease;
}

.home-symbol a {
	font-size: 24px;
	color: white;
	text-decoration: none;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.2);
	transition: all 0.3s ease;
}

.home-symbol a:hover {
	background: rgba(255,255,255,0.3);
	transform: scale(1.1);
}

/* Dropdown Styling */
nav ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: linear-gradient(135deg, #2980b9, #3498db);
	min-width: 180px;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 100;
	color: #333;
}

nav ul li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

nav ul ul li {
	width: 100%;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav ul ul li:last-child {
	border-bottom: none;
}

nav ul ul a {
	padding: 12px 20px;
	color: white;
	display: block;
	transition: all 0.3s ease;
}

nav ul ul a:hover {
	background: rgba(255,255,255,0.2);
	padding-left: 25px;
}

/* Main Content */
.container {
	display: flex;
	flex: 1;
	padding: 20px;
}

.sidebar {
	width: 250px;
	padding: 15px;
}

.main-content {
	flex: 1;
	padding: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Filter Elements */
.filter-container {
	margin-bottom: 25px;
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
}

.filter-item {
	margin-bottom: 15px;
}

.filter-item label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #2c3e50;
}

.filter-item select {
	width: 100%;
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: white;
	font-size: 14px;
	transition: all 0.3s ease;
}

.filter-item select:focus {
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
	outline: none;
}

/* Sort Buttons */
.sort-buttons {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
}

.sort-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sort-buttons button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Table Styles */
.table-wrapper {
	overflow-x: auto;
	margin-bottom: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
	width: 100%;
	border-collapse: collapse;
	background: white;
}

th, td {
	padding: 15px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

th {
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	font-weight: 600;
}

tr:hover {
	background-color: #f8f9fa;
}

/* Footer */
footer {
	background: linear-gradient(135deg, #2c3e50, #34495e);
	color: white;
	text-align: center;
	padding: 20px 0;
	margin-top: auto;
}
@media (max-width: 768px) {
.sidebar {
	display: none;
}

.sidebar.active {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	background: #f4f4f4;
	height: 100%;
	z-index: 1000;
	padding: 15px;
}

.container {
	flex-direction: column;
	padding: 10px;
}

.filter-container {
	padding: 15px;
}

.sort-buttons button {
	width: 100%;
	margin-bottom: 10px;
}

footer {
	display: none; /* Hide footer on mobile */
}

.table-wrapper {
	overflow-x: scroll; /* Enable horizontal scrolling */
	-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

table {
	font-size: 14px; /* Smaller font size for mobile */
}

th, td {
	padding: 8px; /* Smaller padding for mobile */
}
}

/* Ensure smooth transitions for all elements */
* {
    transition: all 0.3s ease;
}

/* Hide content until the page is fully loaded */
body:not(.page-loaded) {
    opacity: 0;
    visibility: hidden;
}

/* Show content after the page is fully loaded */
body.page-loaded {
    opacity: 1;
    visibility: visible;
}