/* Enhanced Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
				 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	color: #333;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Enhanced Container */
.container {
	max-width: 1400px;
	margin: 0 auto;
	background: white;
	min-height: 100vh;
	box-shadow: 0 0 40px rgba(0,0,0,0.15);
	position: relative;
	overflow: hidden;
}

.online-event-indicator {
    margin-top: 10px;
}

.online-event-indicator div {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 4px;
    padding: 10px;
}

.validation-card .event-info p strong {
    color: #2196f3;
}

/* Modernized Header with #002d74 */
.header {
	background: linear-gradient(135deg, #002d74 0%, #004ba0 100%);
	color: white;
	padding: 24px 32px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 45, 116, 0.3);
	backdrop-filter: blur(10px);
}

.header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
}

.header h1 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.5px;
	position: relative;
	z-index: 1;
}

/* Enhanced User Info */
.user-info {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: 1;
}

.user-badge {
	background: #ffffff;
	color: #002d74;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #d1d5db;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-badge:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced Buttons */
.logout-btn, .dashboard-btn {
	background: rgba(255,255,255,0.15);
	color: white;
	border: none;
	padding: 10px 18px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	text-align: center;
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.1);
}

.logout-btn:hover, .dashboard-btn:hover {
	background: rgba(255,255,255,0.25);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.dashboard-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Enhanced Button Styles */
.btn {
    background: linear-gradient(135deg, #002d74, #004ba0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 45, 116, 0.25);
    backdrop-filter: blur(4px);
    min-width: 85px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 45, 116, 0.35);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 45, 116, 0.4);
}

.btn-primary {
	background: linear-gradient(135deg, #002d74, #004ba0);
}

.btn-outline {
	background: transparent;
	border: 2px solid #002d74;
	color: #002d74;
	box-shadow: none;
}

.btn-outline:hover {
	background: #002d74;
	color: white;
}

/* Enhanced Dashboard Grid */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
	padding: 0 4px;
}

/* Enhanced Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-enhanced);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.3) 20%,
        rgba(59, 130, 246, 0.3) 80%,
        transparent 100%);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    margin-bottom: 16px;
    color: #1e293b;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-number {
	font-size: 36px;
	font-weight: 800;
	color: #002d74;
	margin-bottom: 8px;
	background: linear-gradient(135deg, #002d74, #004ba0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Enhanced Course Cards */
.course-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-enhanced);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(59, 130, 246, 0.3) 20%,
        rgba(59, 130, 246, 0.3) 80%,
        transparent 100%);
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.course-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
}

.course-code {
	background: linear-gradient(135deg, #e3f2fd, #bbdefb);
	color: #002d74;
	padding: 6px 16px;
	border-radius: 24px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.course-stats {
	display: flex;
	gap: 24px;
	align-items: center;
}

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

.course-stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #002d74, #004ba0, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.course-stat-label {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* Enhanced Progress Bars */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #002d74, #3b82f6, #60a5fa);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 45, 116, 0.3);
}

.progress-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
	background-size: 20px 20px;
	animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
	0% { background-position: 0 0; }
	100% { background-position: 20px 0; }
}

/* Enhanced Navigation Tabs */
.nav-tabs {
	display: flex;
	border-bottom: 3px solid #f1f3f4;
	margin-bottom: 24px;
	flex-wrap: wrap;
	background: rgba(248, 249, 250, 0.8);
	border-radius: 16px 16px 0 0;
	padding: 8px 8px 0 8px;
	backdrop-filter: blur(10px);
}

.nav-tab {
	padding: 16px 28px;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	color: #6c757d;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	position: relative;
	border-radius: 12px 12px 0 0;
	margin-right: 4px;
}

.nav-tab::before {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 50%;
	width: 0;
	height: 3px;
	background: linear-gradient(135deg, #002d74, #004ba0);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.nav-tab:hover {
	color: #002d74;
	background: rgba(0, 45, 116, 0.05);
}

.nav-tab.active {
	color: #002d74;
	background: white;
	box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.nav-tab.active::before {
	width: 60%;
}

/* Enhanced Tables */
.table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0,0,0,0.08);
	margin-top: 24px;
}

.table th, .table td {
	padding: 16px;
	text-align: left;
	border-bottom: 1px solid #f1f3f4;
}

.table th {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	font-weight: 700;
	color: #002d74;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.table tbody tr {
	transition: all 0.2s ease;
}

.table tbody tr:hover {
	background: rgba(0, 45, 116, 0.02);
	transform: scale(1.01);
}

/* Enhanced Modals */
.modal,
.group-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    min-height: 100vh;
    background: rgba(0,0,0,0.6) !important;
    z-index: 99999 !important; /* Very high z-index */
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Reset any inherited transforms or positioning */
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
}

.modal.active,
.group-modal.active {
    display: flex !important;
}

.modal-content,
.group-modal-content {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    width: 90% !important;
    max-width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
    /* Remove transform and positioning - JavaScript will handle */
}

.group-modal-content {
    max-width: 800px !important;
    padding: 32px !important;
    border-radius: 16px !important;
}

@keyframes modalSlideIn {
	to {
		transform: scale(1);
	}
}

/* Section Display Rules */
.section {
	display: none !important;
	padding: 32px;
	animation: fadeIn 0.4s ease;
}

.section.active {
	display: block !important;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Login Section */
.login-section {
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 0;
	position: relative;
}

.login-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.login-section.active {
	display: flex !important;
}

.login-card {
	background: rgba(255,255,255,0.95);
	padding: 48px;
	border-radius: 24px;
	box-shadow: 0 32px 80px rgba(0,0,0,0.2);
	width: 100%;
	max-width: 420px;
	margin: 24px;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255,255,255,0.2);
	position: relative;
	z-index: 1;
}

.login-card h2 {
	text-align: center;
	margin-bottom: 32px;
	color: #1a1a1a;
	font-weight: 700;
	font-size: 24px;
}

/* Enhanced Password Modal */
.password-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.8);
	z-index: 2000;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(12px);
}

.password-modal.active {
	display: flex;
}

.password-modal-content {
	background: white;
	padding: 48px;
	border-radius: 20px;
	width: 90%;
	max-width: 520px;
	box-shadow: 0 32px 80px rgba(0,0,0,0.3);
	border: 2px solid #f44336;
	position: relative;
}

/* Enhanced Forms */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
}

.form-group input, .form-group select, .form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	font-size: 14px;
	transition: all 0.3s ease;
	background: white;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
	outline: none;
	border-color: #002d74;
	box-shadow: 0 0 0 3px rgba(0, 45, 116, 0.1);
	transform: translateY(-1px);
}

/* Enhanced Event Types */
.event-type {
	display: inline-block;
	padding: 6px 16px;
	border-radius: 24px;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.event-lecture { 
	background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
	color: #002d74; 
}

.event-tutorial { 
	background: linear-gradient(135deg, #f3e5f5, #e1bee7); 
	color: #7b1fa2; 
}

.event-consulting { 
	background: linear-gradient(135deg, #e8f5e8, #c8e6c9); 
	color: #2e7d32; 
}

.event-staff { 
	background: linear-gradient(135deg, #fff3e0, #ffe0b2); 
	color: #f57c00; 
}

.mdi-spin {
    animation: mdi-spin 1s linear infinite;
}

@keyframes mdi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-other { 
	background: linear-gradient(135deg, #fce4ec, #f8bbd9); 
	color: #c2185b; 
}

/* Enhanced Utility Classes */
.flex {
	display: flex;
	gap: 12px;
	align-items: center;
}

.flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.flex-between h3 {
	font-size: 20px;
}

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

.mt-20 {
	margin-top: 24px;
}

.mb-20 {
	margin-bottom: 24px;
}

/* Enhanced Messages */
.error-message {
	background: linear-gradient(135deg, #ffebee, #ffcdd2);
	color: #c62828;
	padding: 16px 20px;
	border-radius: 12px;
	margin: 16px 0;
	border-left: 4px solid #f44336;
	box-shadow: 0 4px 12px rgba(244, 67, 54, 0.1);
}

.success-message {
	background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
	color: #2e7d32;
	padding: 16px 20px;
	border-radius: 12px;
	margin: 16px 0;
	border-left: 4px solid #4caf50;
	box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
	.header {
		flex-direction: column;
		gap: 16px;
		text-align: center;
		padding: 20px;
	}
	
	.nav-tabs {
		flex-direction: column;
		border-radius: 16px;
		padding: 8px;
	}
	
	.nav-tab {
		text-align: center;
		margin-right: 0;
		margin-bottom: 4px;
		border-radius: 12px;
	}
	
	.dashboard-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.course-card {
		padding: 20px;
	}
	
	.course-header {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}
	
	.course-stats {
		width: 100%;
		justify-content: space-around;
	}
	
	.modal-content {
		padding: 24px;
		margin: 16px;
		border-radius: 16px;
	}
	
	.login-card {
		padding: 32px 24px;
		margin: 16px;
	}
}

@media (max-width: 480px) {
	.stat-number {
		font-size: 28px;
	}
	
	.course-stat-number {
		font-size: 22px;
	}
	
	.table th, .table td {
		padding: 12px 8px;
		font-size: 13px;
	}
	
	.btn {
		padding: 10px 20px;
		font-size: 13px;
	}
}

/* Performance Optimizations */
* {
	will-change: transform;
}

.card, .course-card, .btn, .nav-tab {
	transform: translateZ(0);
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus indicators for accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid #002d74;
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.card, .course-card {
		border: 2px solid #000;
	}
	
	.btn {
		border: 2px solid #000;
	}
}



.group-session {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    border-left: 4px solid #002d74 !important;
    border: 1px solid #e9ecef !important;
}

.group-session h4 {
    margin: 0 0 16px 0 !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.session-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: end !important;
}

.readonly-field {
	background: #f8f9fa !important;
	border: 2px solid #e9ecef !important;
	cursor: not-allowed;
	opacity: 0.8;
}

/* =================================================================
   FIX 2: Event Card Title and Badges Inline Layout
   ================================================================= */

/* Main title container - puts title and badges on same line */
.event-title-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.event-card h4 {
	font-size: 20px !important; /* Bigger title */
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 !important; /* Remove default margins */
	line-height: 1.3;
	flex: 1;
	min-width: 0; /* Allows text to wrap if needed */
}

/* Container for all badges next to title */
.event-badges {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	flex-shrink: 0; /* Prevent badges from shrinking */
}

/* Style all badges consistently */
.event-type, .group-badge, .marked-badge {
	display: inline-block;
	vertical-align: middle;
	margin: 0;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 12px;
}

/* Specific badge colors */
.event-type.event-lecture { 
	background: linear-gradient(135deg, #e3f2fd, #bbdefb); 
	color: #002d74; 
}

.event-type.event-tutorial { 
	background: linear-gradient(135deg, #f3e5f5, #e1bee7); 
	color: #7b1fa2; 
}

.event-type.event-consulting { 
	background: linear-gradient(135deg, #e8f5e8, #c8e6c9); 
	color: #2e7d32; 
}

.event-type.event-staff { 
	background: linear-gradient(135deg, #fff3e0, #ffe0b2); 
	color: #f57c00; 
}

.event-type.event-other { 
	background: linear-gradient(135deg, #fce4ec, #f8bbd9); 
	color: #c2185b; 
}

.marked-badge {
	background: linear-gradient(135deg, #fff3cd, #ffeaa7);
	color: #856404;
	border: 1px solid #ffeaa7;
}

.group-badge {
	background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
	color: #2e7d32;
	border: 1px solid rgba(46, 125, 50, 0.2);
}

/* =================================================================
   FIX 3: Checkbox Inline with Text for Marked Event
   ================================================================= */

.checkbox-label {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	font-weight: normal;
	cursor: pointer;
	line-height: 1.4;
	margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
	margin: 0;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px; /* Slight alignment adjustment */
	accent-color: #002d74;
}

.checkbox-label span {
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
}

/* Ensure the marked event group has proper spacing */
#markedEventGroup {
	margin-bottom: 20px;
}

#markedEventGroup .form-text {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

/* =================================================================
   FIX 4: Conditional Field Visibility Fix
   ================================================================= */

.conditional-field {
	transition: all 0.3s ease;
	overflow: hidden;
}

.conditional-field.hidden {
	display: none !important;
	opacity: 0;
	max-height: 0;
	margin: 0;
	padding: 0;
}

.conditional-field:not(.hidden) {
	display: block;
	opacity: 1;
	max-height: 1000px; /* Large enough to accommodate content */
}

/* Ensure Description field only shows when it should */
#descriptionGroup.hidden {
	display: none !important;
}

#descriptionGroup:not(.hidden) {
	display: block !important;
}

/* Make required asterisk more visible */
.required {
	color: #dc3545;
	font-weight: bold;
	margin-left: 2px;
}

/* =================================================================
   FIX 5: Restore Original Validation Code CSS
   ================================================================= */

/* Original simple validation styling */
.validation-card {
	background: white;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	border: 2px solid #e0e0e0;
	transition: all 0.3s ease;
}

.validation-card.checking {
	border-color: #2196F3;
	background: #f8fbff;
}

.validation-card.valid {
	border-color: #4CAF50;
	background: #f8fff8;
}

.validation-card.invalid {
	border-color: #f44336;
	background: #fff8f8;
}

.validation-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.validation-icon {
	font-size: 36px;
}

.validation-icon.checking { color: #2196F3; }
.validation-icon.valid { color: #4CAF50; }
.validation-icon.invalid { color: #f44336; }

.validation-details {
	margin: 16px 0;
}

.validation-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

.validation-item:last-child {
	border-bottom: none;
}

.validation-status {
	font-size: 16px;
	min-width: 20px;
}

.validation-status.valid { color: #4CAF50; }
.validation-status.invalid { color: #f44336; }
.validation-status.checking { color: #2196F3; }

.validation-message {
	flex: 1;
	font-size: 14px;
	line-height: 1.4;
}

.event-info {
	background: rgba(248, 249, 250, 0.8);
	border-radius: 8px;
	padding: 12px;
	margin: 12px 0;
	border: 1px solid #e9ecef;
}

.event-info h4 {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 16px;
}

.event-info p {
	margin: 4px 0;
	font-size: 13px;
	color: #666;
}

/* Simple QR Scanner Styles */
.qr-scanner-wrapper {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    position: relative;
}

.qr-scanner {
    position: relative;
    width: 100%;
    max-width: 400px; /* Reduced from 300px */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #000;
    transition: all 0.3s ease;
}

#qr-video, #staff-qr-video {
    width: 100%;
    height: auto;
    max-height: 300px; /* Reduced from 300px for mobile */
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* Reduced from 200px */
    height: 150px;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    pointer-events: none;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* BIGGER overlay for fullscreen mode */
.fullscreen-container .scanner-overlay {
    width: 300px !important;
    height: 300px !important;
    border-width: 4px !important;
    border-radius: 20px !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5) !important;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}


/* ========================================
   IMPROVED MOBILE DROPDOWN NAVIGATION
   ======================================== */

/* Mobile Dropdown Navigation - matches your HTML structure exactly */
.mobile-nav {
    display: none;
    margin-bottom: 5px; /* More spacing */
    position: relative;
    z-index: 999;
    isolation: isolate;
}

.nav-dropdown {
    position: relative;
    width: 100%;
    z-index: 999;
}

/* Enhanced Dropdown Button - targets your exact IDs */
#mobileNavBtn, #staffMobileNavBtn {
    width: 100%;
    
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e1e5e9;
    border-radius: 16px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #002d74;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1000;
    min-height: 32px; /* Ensure good touch target */
}

#mobileNavBtn:hover, #staffMobileNavBtn:hover {
    border-color: #002d74;
    box-shadow: 0 6px 24px rgba(0,45,116,0.15);
    transform: translateY(-1px);
}

#mobileNavBtn.open, #staffMobileNavBtn.open {
    border-color: #002d74;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 1001;
    background: linear-gradient(135deg, #002d74 0%, #004ba0 100%);
    color: white;
    box-shadow: 0 8px 32px rgba(0,45,116,0.2);
}

/* Enhanced Dropdown Arrow */
.dropdown-arrow {
    font-size: 16px; /* Larger arrow */
    transition: transform 0.3s ease;
    font-weight: bold;
}

.nav-dropdown-btn {
  display: none; /* Hidden on desktop */
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e1e5e9;
  border-radius: 16px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #002d74;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
  min-height: 32px;
}

.nav-dropdown-btn:hover {
  border-color: #002d74;
  box-shadow: 0 4px 12px rgba(0,45,116,0.15);
}

.nav-dropdown-btn.open {
  border-color: #002d74;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  z-index: 1001;
}

.nav-dropdown-btn.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Enhanced Dropdown Menu - targets your exact IDs */
#mobileNavMenu, #staffMobileNavMenu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border: 2px solid #002d74 !important;
    border-top: none !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: 0 12px 40px rgba(0,45,116,0.15) !important;
    z-index: 1002 !important;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    transform: translateZ(0);
    backdrop-filter: blur(10px);
}

#mobileNavMenu.open, #staffMobileNavMenu.open {
    max-height: 450px; /* Increased max height for 6 items */
    z-index: 1002 !important;
}

/* Enhanced Dropdown Items - targets items in your specific menus */
#mobileNavMenu .nav-dropdown-item, 
#staffMobileNavMenu .nav-dropdown-item {
    padding: 24px 20px; /* Large padding for touch */
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    position: relative;
    z-index: 1003;
    background: white;
    font-size: 16px;
    max-height: 60px; /* Large touch target */
    display: flex;
    align-items: center;
}

#mobileNavMenu .nav-dropdown-item:hover,
#staffMobileNavMenu .nav-dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #002d74;
    transform: translateX(4px);
    border-left: 4px solid #002d74;
}

#mobileNavMenu .nav-dropdown-item.active,
#staffMobileNavMenu .nav-dropdown-item.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #002d74;
    font-weight: 600;
    border-left: 4px solid #002d74;
}

#mobileNavMenu .nav-dropdown-item:last-child,
#staffMobileNavMenu .nav-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 14px 14px;
}

#mobileNavMenu .nav-dropdown-item:first-child,
#staffMobileNavMenu .nav-dropdown-item:first-child {
    border-top: 1px solid #f1f3f4;
}

.dashboard-grid,
.course-card,
.event-card,
.card {
    position: relative;
    z-index: 1;
}

/* Specific fixes for overview tab elements */
#courseAttendanceCards,
#upcomingEvents,
#courseOverview,
#staffOverview {
    position: relative;
    z-index: 1;
}

/* Touch-Friendly Zoom Controls */
.zoom-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(4px);
}

.qr-scanner-wrapper:hover .zoom-controls{
    opacity: 1;
}

.zoom-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    min-width: 40px;
    backdrop-filter: blur(2px);
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.zoom-btn.active {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Scanner Controls Styling */
.scanner-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.scanner-controls .btn {
    margin: 4px;
}

/* Fullscreen Styles */
.fullscreen-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fullscreen-container .qr-scanner {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important; /* Remove border radius in fullscreen */
}

.fullscreen-container #qr-video,
.fullscreen-container #staff-qr-video {
    max-height: 95vh !important;
    max-width: 95vw !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Better fit for fullscreen */
}

.fullscreen-exit-btn {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #333 !important;
    border: none !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    backdrop-filter: blur(4px) !important;
}

/* Enhanced zoom controls for fullscreen */
.fullscreen-container .zoom-controls {
    right: 20px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 12px !important;
    border-radius: 12px !important;
}

.fullscreen-container .zoom-btn {
    padding: 12px 16px !important;
    font-size: 14px !important;
    min-width: 50px !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

.fullscreen-container .zoom-btn.active {
    background: rgba(76, 175, 80, 0.9) !important;
}

/* =================================================================
   Simple Line Separator Between Events
   ================================================================= */

.event-card {
	margin-bottom: 16px !important;
	padding-bottom: 16px !important;
}

/* Simple line between events */
.event-card:not(:last-child) {
	border-bottom: 1px solid #e9ecef;
}

/* =================================================================
   Additional Responsive Fixes
   ================================================================= */
@media (min-width: 1200px) {
    .fullscreen-container .scanner-overlay {
        width: 400px !important;
        height: 400px !important;
        border-width: 5px !important;
    }
}

@media (max-width: 768px) {
	.event-title-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	.fullscreen-container .scanner-overlay {
        width: 250px !important;
        height: 250px !important;
        border-width: 3px !important;
    }
	
	.nav-tabs {
        display: none;
    }
    
    .nav-dropdown-btn {
		display: flex !important; /* Show on mobile */
		width: 100% !important;
		margin: 0 !important;
	  }
    
    .nav-dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: 20px !important;
        right: 20px !important;
        z-index: 9999 !important;
        margin-top: 0 !important;
    }
    
    /* Alternative positioning if fixed doesn't work */
    .nav-dropdown.positioning-fix .nav-dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .mobile-nav {
        display: block !important;
        isolation: isolate !important;
        z-index: 999 !important;
        margin-bottom: 32px;
    }
    
    /* Force dropdown to be above other content */
    #mobileNavMenu, #staffMobileNavMenu {
        position: fixed !important;
        max-width: calc(100vw - 40px) !important;
        box-shadow: 0 12px 40px rgba(0,45,116,0.25) !important;
    }
    
    /* Ensure dropdown button spans full width */
    #mobileNavBtn, #staffMobileNavBtn {
        width: 100% !important;
        margin: 0 !important;
    }
	
	.event-badges {
		order: 2; /* Badges come after title on mobile */
		justify-content: flex-start;
	}
	
	.event-card h4 {
		order: 1;
		width: 100%;
		font-size: 18px !important;
	}
	
	.session-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
	
	.group-modal-content {
        width: 98% !important;
        padding: 16px !important;
        margin: 5px !important;
        border-radius: 12px !important;
    }
	
	.group-session {
        padding: 16px !important;
        margin-bottom: 16px !important;
    }
    
    .button-group {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .button-group .btn {
        width: 100% !important;
        margin: 0 !important;
    }
	
	.validation-header {
		flex-direction: column;
		text-align: center;
		gap: 8px;
	}
	
	.validation-icon {
		font-size: 28px;
	}
	
	.qr-scanner {
        max-width: 95%;
        margin: 0 auto;
    }
    
    #qr-video, #staff-qr-video {
        max-height: 180px; /* Even smaller for mobile */
    }
    
    .scanner-overlay {
        width: 120px;
        height: 120px;
        border-width: 2px;
    }
      
    .scanner-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .zoom-controls {
        right: 5px;
        padding: 6px;
    }
    
    .zoom-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 35px;
    }
    
    /* Better spacing */
    .main-content {
        padding: 16px;
        position: relative;
        z-index: auto;
    }
    
    .card,
    .course-card,
    .template-card,
    .stat-card {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 20px;
    }
    
    .template-main {
        padding: 20px 16px;
        background: 
            radial-gradient(circle at 25% 75%, rgba(120, 119, 198, 0.01) 0%, transparent 50%),
            #ffffff;
    }
    
    .template-main::before {
        background-size: 24px 24px;
        opacity: 0.2;
    }
    
    .section.active,
    .tab-content.active,
    .content-section {
        padding: 20px !important;
        border-radius: 12px;
    }
    
}

@media (max-width: 480px) {
	.event-card h4 {
		font-size: 18px !important;
	}
	
	.fullscreen-container .scanner-overlay {
        width: 200px !important;
        height: 200px !important;
    }
	
	.checkbox-label {
		align-items: flex-start;
	}
	
	.validation-card {
		padding: 16px;
		margin: 16px 0;
	}
	
	.zoom-controls {
        gap: 8px;
        padding: 6px 10px;
    }
    
    .zoom-btn {
        padding: 12px 14px;
        font-size: 16px;
        min-width: 50px;
        min-height: 44px;
    }
	
	.qr-scanner {
        max-width: 98%;
    }
    
    #qr-video, #staff-qr-video {
        max-height: 160px; /* Smallest for very small screens */
    }
    
    .scanner-overlay {
        width: 100px;
        height: 100px;
    }
       
    .group-modal-content {
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 12px !important;
    }
    
    .group-session h4 {
        font-size: 14px !important;
    }
    
    .info-box {
        padding: 12px !important;
    }
    
    /* Even larger touch targets for small screens */
    #mobileNavBtn, #staffMobileNavBtn {
        padding: 20px 18px !important;
        font-size: 17px !important;
        min-height: 68px !important;
    }
    
    #mobileNavMenu .nav-dropdown-item,
    #staffMobileNavMenu .nav-dropdown-item {
        padding: 20px 18px !important;
        font-size: 16px !important;
        min-height: 50px !important;
    }
    
    .dropdown-arrow {
        font-size: 18px !important;
    }
    
    /* Add more spacing around mobile nav */
    .mobile-nav {
        margin-bottom: 36px !important;
        
    }
    
    .card,
    .course-card,
    .template-card,
    .stat-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .section.active,
    .tab-content.active,
    .content-section {
        padding: 16px !important;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .course-stat-number {
        font-size: 22px;
    }
}
    
}


/* =================================================================
   Form Text Helper Styling
   ================================================================= */

.form-text {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #6c757d;
	line-height: 1.3;
}

/* =================================================================
   Info Box Styling (for group modal)
   ================================================================= */

.info-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb) !important;
    border: 1px solid #2196F3 !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
}

.info-box h5 {
    margin: 0 0 8px 0 !important;
    color: #1976d2 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.info-box p {
    margin: 0 !important;
    font-size: 13px !important;
    color: #1565c0 !important;
    line-height: 1.4 !important;
}

.button-group {
    display: flex !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    margin-top: 24px !important;
}

/* ========================================
   ADDITIONAL IMPROVEMENTS
   ======================================== */

/* Add subtle pulse animation when dropdown opens */
#mobileNavMenu.open .nav-dropdown-item,
#staffMobileNavMenu.open .nav-dropdown-item {
    animation: slideDown 0.3s ease forwards;
}

/* Better visual feedback on touch */
#mobileNavBtn:active, #staffMobileNavBtn:active {
    transform: scale(0.98);
}

/* Ensure dropdown stays above all other content */
#mobileNavMenu, #staffMobileNavMenu {
    z-index: 9999 !important;
}

/* Prevent text selection on dropdown items */
#mobileNavMenu .nav-dropdown-item,
#staffMobileNavMenu .nav-dropdown-item {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   ANIMATION ENHANCEMENTS
   ======================================== */

/* Smooth slide-down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu.open .nav-dropdown-item {
    animation: slideDown 0.3s ease forwards;
}

/* Stagger animation for items */
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(3) { animation-delay: 0.15s; }
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(4) { animation-delay: 0.2s; }
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(5) { animation-delay: 0.25s; }
.nav-dropdown-menu.open .nav-dropdown-item:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states for keyboard navigation */
.nav-dropdown-btn:focus {
    outline: 3px solid rgba(0, 45, 116, 0.3);
    outline-offset: 2px;
}

.nav-dropdown-item:focus {
    outline: 3px solid rgba(0, 45, 116, 0.3);
    outline-offset: -2px;
    background: #e3f2fd;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-dropdown-btn {
        border: 3px solid #000;
    }
    
    .nav-dropdown-menu {
        border: 3px solid #000 !important;
    }
    
    .nav-dropdown-item {
        border-bottom: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nav-dropdown-btn,
    .nav-dropdown-menu,
    .nav-dropdown-item,
    .dropdown-arrow {
        transition: none;
        animation: none;
    }
}
/* Enhanced Password Modal Button */
.btn-password-change.btn-password-submit {
    background: linear-gradient(135deg, #002d74, #004ba0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 45, 116, 0.3);
    width: 100%; /* Full-width button for better touch target */
}

.btn-password-change.btn-password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 45, 116, 0.4);
}

.btn-password-change.btn-password-submit:disabled {
    background: linear-gradient(135deg, #6688aa, #7799bb); /* Lighter grey-blue gradient */
    color: rgba(255, 255, 255, 0.7);
    cursor: not-allowed;
    box-shadow: 0 2px 10px rgba(0, 45, 116, 0.2);
    opacity: 0.8;
}

.btn-password-change.btn-password-submit:disabled:hover {
    transform: none; /* No lift effect when disabled */
    box-shadow: 0 2px 10px rgba(0, 45, 116, 0.2);
}

/* Focus state for accessibility */
.btn-password-change.btn-password-submit:focus {
    outline: 3px solid rgba(0, 45, 116, 0.3);
    outline-offset: 2px;
}

/* Enhanced Password Requirements List */
.password-requirements {
    margin: 20px 0;
}

.password-requirements h5 {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements ul {
    padding-left: 20px; /* Consistent indentation */
    list-style: none; /* Remove default bullets */
}

.password-requirements li {
    position: relative;
    padding-left: 24px; /* Space for custom bullet */
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.password-requirements li::before {
    content: '•'; /* Custom bullet */
    position: absolute;
    left: 0;
    color: #002d74; /* Match app color scheme */
    font-size: 18px;
    line-height: 1;
}

/* Ensure password modal content aligns with other modals */
.password-modal-content {
    background: white;
    padding: 32px; /* Match .modal-content padding */
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
    border: 2px solid #002d74; /* Change from red to match app theme */
    position: relative;
    transform: scale(0.9);
    animation: modalSlideIn 0.3s ease forwards;
}

.password-modal-content h3 {
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap Mitte: 8px;
}

/* Password warning styling */
.password-warning {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    border-left: 4px solid #f57c00;
}

.password-warning h5 {
    color: #1a1a1a;
    font-size: 16px;
    margin-bottom: 12px;
}

.password-warning p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.university-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#loginBtn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make logo smaller on mobile devices */
@media (max-width: 768px) {
    .university-logo {
        max-width: 350px;
    }
}

/* Password strength indicator */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.password-strength-weak {
    background: #f44336;
    width: 33% !important;
}

.password-strength-medium {
    background: #ff9800;
    width: 66% !important;
}

.password-strength-strong {
    background: #4caf50;
    width: 100% !important;
}

/* Password match indicator */
.password-match-indicator {
    margin-top: 8px;
    font-size: 14px;
}

.password-match-success {
    color: #4caf50;
}

.password-match-error {
    color: #f44336;
}

/* Styles for the marking type buttons */
.marking-type-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.marking-type-btn {
    flex: 1;
    padding: 12px 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    background: transparent;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.marking-type-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.marking-type-btn.active {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.marking-type-btn.active:hover {
    background: #0056b3 !important;
    border-color: #0056b3;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .marking-type-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .marking-type-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Animation for form transitions */
.marking-form {
    transition: all 0.3s ease;
}

.marking-form[style*="display: none"] {
    opacity: 0;
}

.marking-form[style*="display: block"] {
    opacity: 1;
}

/* Enhanced button styling to match your existing theme */
.btn-outline-primary.marking-type-btn {
    border-width: 2px;
    font-weight: 600;
}

.btn-primary.marking-type-btn {
    border-width: 2px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Focus states for accessibility */
.marking-type-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* =====================================================
   FALLBACK SUPPORT - For browsers without backdrop-filter
   ===================================================== */

@supports not (backdrop-filter: blur()) {
    .card,
    .course-card,
    .template-card,
    .stat-card,
    .section.active,
    .tab-content.active,
    .content-section {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 
            0 2px 8px rgba(15, 23, 42, 0.08),
            0 8px 32px rgba(15, 23, 42, 0.06);
    }
}

/* =====================================================
   PERFORMANCE OPTIMIZATIONS
   ===================================================== */

.card,
.course-card,
.template-card,
.stat-card {
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .card,
    .course-card,
    .template-card,
    .stat-card,
    .btn {
        transition: none !important;
        animation: none !important;
    }
    
    .card:hover,
    .course-card:hover,
    .template-card:hover,
    .stat-card:hover {
        transform: none !important;
    }
}
