* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	color: #333;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.header {
	text-align: center;
	margin-bottom: 40px;
	color: white;
}

.header h1 {
	font-size: 3rem;
	margin-bottom: 10px;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
	font-size: 1.2rem;
	opacity: 0.9;
	margin-bottom: 30px;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 15px;
	padding: 25px;
	text-align: center;
	color: white;
	transition: transform 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-5px);
}

.stat-number {
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 10px;
	color: #ffd700;
}

.stat-label {
	font-size: 1.1rem;
	opacity: 0.9;
}

.search-filter-section {
	background: white;
	border-radius: 20px;
	padding: 30px;
	margin-bottom: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-row {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	gap: 20px;
	align-items: center;
	margin-bottom: 20px;
}

.search-input {
	position: relative;
}

.search-input input {
	width: 100%;
	padding: 15px 20px 15px 50px;
	border: 2px solid #e0e0e0;
	border-radius: 50px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.search-input input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input i {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 18px;
}

.filter-select {
	padding: 15px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 50px;
	font-size: 16px;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

.filter-select:focus {
	outline: none;
	border-color: #667eea;
}

.search-btn {
	padding: 15px 30px;
	background: linear-gradient(45deg, #667eea, #764ba2);
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.clear-btn {
	padding: 15px 30px;
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.clear-btn:hover {
	background: #5a6268;
	transform: translateY(-2px);
}

.active-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.filter-tag {
	background: #667eea;
	color: white;
	padding: 8px 15px;
	border-radius: 20px;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-tag .remove {
	cursor: pointer;
	font-weight: bold;
}

.category-section {
	margin-bottom: 50px;
}

.category-header {
	display: flex;
	align-items: center;
	margin-bottom: 25px;
	padding: 20px;
	background: white;
	border-radius: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: white;
	margin-right: 20px;
}

.category-title {
	font-size: 1.8rem;
	font-weight: bold;
	color: #333;
}

.category-count {
	background: #f8f9fa;
	color: #6c757d;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 14px;
	margin-left: auto;
}

.quiz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 25px;
}

.quiz-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	position: relative;
}

.quiz-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quiz-card-header {
	background: linear-gradient(45deg, var(--category-color, #667eea), var(--category-color-light, #764ba2));
	color: white;
	padding: 25px;
	position: relative;
	overflow: hidden;
}

.quiz-card-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transform: rotate(45deg);
}

.quiz-type-badge {
	position: absolute;
	top: 5px;
	right: 5px;
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
}

.quiz-title {
	font-size: 1.4rem;
	font-weight: bold;
	margin-bottom: 10px;
	position: relative;
	z-index: 1;
}

.quiz-category {
	font-size: 14px;
	opacity: 0.9;
	position: relative;
	z-index: 1;
}

.quiz-card-body {
	padding: 25px;
}

.quiz-description {
	color: #666;
	line-height: 1.6;
	margin-bottom: 20px;
	font-size: 14px;
}

.quiz-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 25px;
}

.meta-item {
	text-align: center;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 10px;
}

.meta-value {
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	margin-bottom: 5px;
}

.meta-label {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.quiz-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 10px;
}

.stat-item {
	text-align: center;
}

.stat-item .number {
	font-weight: bold;
	color: #667eea;
	font-size: 1.1rem;
}

.stat-item .label {
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}

.start-quiz-btn {
	width: 100%;
	padding: 15px;
	background: linear-gradient(45deg, #667eea, #764ba2);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	text-align: center;
	transition: all 0.3s ease;
	display: block;
	border: none;
	font-size: 16px;
	cursor: pointer;
}

.start-quiz-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.no-results {
	text-align: center;
	padding: 80px 20px;
	color: white;
}

.no-results i {
	font-size: 4rem;
	margin-bottom: 20px;
	opacity: 0.5;
}

.no-results h3 {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.no-results p {
	font-size: 1.1rem;
	opacity: 0.8;
}

/* Replace the existing @media (max-width: 768px) section with this updated version */

@media (max-width: 768px) {
	.header h1 {
		font-size: 2rem;
	}

	.search-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	/* Fix for search form elements on mobile */
	.search-input {
		width: 100%;
	}

	.search-input input {
		width: 100%;
		min-width: 0; /* Prevent input from expanding beyond container */
	}

	.filter-select {
		width: 100%;
		min-width: 0; /* Prevent select from expanding beyond container */
	}

	.search-btn {
		width: 100%;
		min-width: 0; /* Prevent button from expanding beyond container */
	}

	/* Fix for active filters on mobile */
	.active-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-tag {
		justify-content: space-between;
		width: 100%;
	}

	.clear-btn {
		width: 100%;
		text-align: center;
		margin-top: 10px;
	}

	/* Quiz grid mobile fixes */
	.quiz-grid {
		grid-template-columns: 1fr;
	}

	.quiz-meta {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Category header mobile fixes */
	.category-header {
		flex-direction: column;
		text-align: center;
	}

	.category-icon {
		margin-right: 0;
		margin-bottom: 15px;
	}

	.category-count {
		margin-left: 0;
		margin-top: 10px;
	}

	/* Container padding adjustment for mobile */
	.container {
		padding: 15px;
	}

	/* Search filter section mobile adjustments */
	.search-filter-section {
		padding: 20px 15px;
		margin-bottom: 30px;
	}

	/* Stats row mobile fixes */
	.stats-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
		margin-bottom: 30px;
	}

	.stat-card {
		padding: 20px 15px;
	}

	.stat-number {
		font-size: 2rem;
	}

	/* Quiz card mobile adjustments */
	.quiz-card-header {
		padding: 20px 15px;
	}

	.quiz-card-body {
		padding: 20px 15px;
	}

	.quiz-title {
		font-size: 1.2rem;
	}

	/* Make sure buttons don't overflow */
	.start-quiz-btn {
		width: 100%;
		box-sizing: border-box;
	}
}
								
/* Floating User Menu Styles */
.floating-user-menu {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 1000;
}

.user-menu-button {
width: 60px;
height: 60px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border: none;
border-radius: 50%;
color: white;
font-size: 24px;
cursor: pointer;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}

.user-menu-button:hover {
transform: scale(1.1);
box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.user-menu-button:active {
transform: scale(0.95);
}

.user-menu-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
border-radius: 50%;
opacity: 0;
transition: opacity 0.3s ease;
}

.user-menu-button:hover::before {
opacity: 1;
}

.user-menu-dropdown {
position: absolute;
bottom: 70px;
right: 0;
background: white;
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
min-width: 200px;
opacity: 0;
transform: translateY(10px) scale(0.9);
transition: all 0.3s ease;
pointer-events: none;
overflow: hidden;
}

.user-menu-dropdown.show {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: all;
}

.user-menu-dropdown::before {
content: '';
position: absolute;
bottom: -8px;
right: 20px;
width: 16px;
height: 16px;
background: white;
transform: rotate(45deg);
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.user-info {
padding: 20px;
border-bottom: 1px solid #eee;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.user-name {
font-weight: bold;
color: #333;
margin-bottom: 5px;
font-size: 16px;
}

.user-email {
color: #666;
font-size: 14px;
}

.user-menu-item {
display: block;
padding: 15px 20px;
color: #333;
text-decoration: none;
transition: all 0.3s ease;
border: none;
background: none;
width: 100%;
text-align: left;
cursor: pointer;
font-size: 14px;
}

.user-menu-item:hover {
background: #f8f9fa;
color: #667eea;
}

.user-menu-item i {
margin-right: 12px;
width: 16px;
text-align: center;
}

.user-menu-item.logout {
color: #dc3545;
border-top: 1px solid #eee;
}

.user-menu-item.logout:hover {
background: #dc3545;
color: white;
}

/* Update mobile responsive styles */
@media (max-width: 768px) {
.floating-user-menu {
	right: 25px;
}

.user-menu-button {
	width: 50px;
	height: 50px;
	font-size: 20px;
}

.user-menu-dropdown {
	bottom: 60px;
	right: 0;
	min-width: 180px;
}
}

/* Animation for menu items */
.user-menu-item {
transform: translateX(20px);
opacity: 0;
animation: slideIn 0.3s ease forwards;
}

.user-menu-item:nth-child(1) { animation-delay: 0.1s; }
.user-menu-item:nth-child(2) { animation-delay: 0.2s; }
.user-menu-item:nth-child(3) { animation-delay: 0.3s; }
.user-menu-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideIn {
to {
	transform: translateX(0);
	opacity: 1;
}
}

/* Notification badge for profile (optional) */
.notification-badge {
position: absolute;
top: 5px;
right: 5px;
background: #dc3545;
color: white;
font-size: 10px;
border-radius: 50%;
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
}                                        
								