* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary-color: #8b5cf6;
	--primary-dark: #7c3aed;
	--primary-light: #a78bfa;
	--secondary-color: #64748b;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--error-color: #ef4444;
	--background-color: #f8fafc;
	--surface-color: #ffffff;
	--text-primary: #1e293b;
	--text-secondary: #64748b;
	--border-color: #e2e8f0;
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);

	/* Purple gradient colors matching Nesisoft */
	--gradient-start: #6b46c1;
	--gradient-middle: #8b5cf6;
	--gradient-end: #a855f7;
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		sans-serif;
	background-color: var(--background-color);
	color: #333;
	line-height: 1.6;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Layout */
.dashboard-layout {
	display: flex;
	min-height: 100vh;
	width: 100%;
	overflow-x: hidden;
}

/* Sidebar Overlay */
.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1500;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

.sidebar {
	width: 280px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 1.5rem;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 2000;
	transition: transform 0.3s ease;
}

.sidebar-close {
	display: none;
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(255, 255, 255, 0.2);
	color: white;
	border: none;
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	cursor: pointer;
	font-size: 1.125rem;
	transition: all 0.3s ease;
}

.sidebar-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

#menu-toggle {
	display: none;
}

.main-content {
	flex: 1;
	margin-left: 280px;
	padding: 2rem;
	background-color: #f8fafc;
	min-height: 100vh;
	transition: margin-left 0.3s ease;
	width: calc(100% - 280px);
	overflow-x: hidden;
}

/* Navigation */
.nav-brand {
	margin-bottom: 2rem;
	padding: 2rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.nav-menu {
	list-style: none;
	padding: 1rem 0;
}

.nav-item {
	margin-bottom: 0.25rem;
}

.nav-link {
	display: flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.nav-link.active {
	background-color: rgba(255, 255, 255, 0.15);
	color: white;
	border-left-color: white;
}

.nav-link i {
	margin-right: 0.75rem;
	width: 20px;
	text-align: center;
}

/* Cards */
.card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border: 1px solid #e2e8f0;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

.card-header {
	padding: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.card-body {
	padding: 1.5rem;
	width: 100%;
	overflow-x: auto;
}

.card-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	justify-content: center;
	min-height: 44px;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.btn-primary {
	transition: left 0.3s ease;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
	background: transparent;
	color: #667eea;
	border: 1px solid #667eea;
}

.btn-outline:hover {
	background: #667eea;
	color: white;
}

.btn-success {
	background-color: var(--success-color);
	color: white;
}

.btn-warning {
	background-color: var(--warning-color);
	color: white;
}

.btn-error {
	background-color: var(--error-color);
	color: white;
}

.btn-sm {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	min-height: 36px;
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none !important;
}

/* Forms */
.form-group {
	margin-bottom: 1.5rem;
	width: 100%;
}

.form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: #374151;
}

.form-control {
	width: 100%;
	max-width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 0.875rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	min-height: 44px;
	box-sizing: border-box;
}

.form-control:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control:readonly {
	background-color: #f9fafb;
	color: #6b7280;
}

.form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
}

/* Badges */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 12px;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.badge-primary {
	background-color: var(--primary-color);
	color: white;
}

.badge-secondary {
	background: #e2e8f0;
	color: #475569;
}

.badge-success {
	background-color: var(--success-color);
	color: white;
}

.badge-warning {
	background-color: var(--warning-color);
	color: white;
}

.badge-error {
	background-color: var(--error-color);
	color: white;
}

/* Progress */
.progress {
	width: 100%;
	height: 0.5rem;
	background-color: var(--border-color);
	border-radius: 0.25rem;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background-color: var(--primary-color);
	transition: width 0.3s ease;
}

/* Grid */
.grid {
	display: grid;
	gap: 1.5rem;
	width: 100%;
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* Flex utilities */
.flex {
	display: flex;
	flex-wrap: wrap;
}

.items-center {
	align-items: center;
}

.items-start {
	align-items: flex-start;
}

.justify-between {
	justify-content: space-between;
}

.justify-center {
	justify-content: center;
}

.gap-1 {
	gap: 0.25rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.flex-1 {
	flex: 1;
	min-width: 0;
}

.flex-wrap {
	flex-wrap: wrap;
}

/* Text utilities */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-sm {
	font-size: 0.875rem;
}

.text-xs {
	font-size: 0.75rem;
}

.text-lg {
	font-size: 1.125rem;
}

.text-xl {
	font-size: 1.25rem;
}

.text-2xl {
	font-size: 1.5rem;
}

.text-primary {
	color: #667eea;
}

.text-secondary {
	color: #6b7280;
}

.text-success {
	color: var(--success-color);
}

.text-error {
	color: var(--error-color);
}

.text-warning {
	color: var(--warning-color);
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

.font-medium {
	font-weight: 500;
}

/* Spacing */
.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-3 {
	margin-bottom: 0.75rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mt-2 {
	margin-top: 0.5rem;
}

.mt-4 {
	margin-top: 1rem;
}

.mt-6 {
	margin-top: 1.5rem;
}

.ml-2 {
	margin-left: 0.5rem;
}

.ml-auto {
	margin-left: auto;
}

.p-2 {
	padding: 0.5rem;
}

.p-3 {
	padding: 0.75rem;
}

.p-4 {
	padding: 1rem;
}

.pt-4 {
	padding-top: 1rem;
}

/* Auth pages */
.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(
		135deg,
		var(--gradient-start) 0%,
		var(--gradient-middle) 50%,
		var(--gradient-end) 100%
	);
	padding: 1rem;
}

.auth-card {
	width: 100%;
	max-width: 400px;
	background: var(--surface-color);
	border-radius: 0.75rem;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}

.auth-card .card-header {
	background: var(--surface-color);
	border-bottom: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 1.5rem 1.5rem;
}

.auth-card .card-body {
	padding: 1.5rem;
}

.auth-card .card-footer {
	background: var(--background-color);
	border-top: 1px solid var(--border-color);
	text-align: center;
	padding: 1rem 1.5rem;
}

/* Modal Styles - Enhanced for All Devices */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	opacity: 1;
	transition: opacity 0.3s ease;
	padding: 1rem;
	overflow-y: auto;
}

.modal.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.modal-content {
	background: white;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	max-width: 500px;
	width: 100%;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	transform: scale(1);
	transition: transform 0.3s ease;
	margin: auto;
	position: relative;
}

.modal.hidden .modal-content {
	transform: scale(0.95);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	background: white;
	z-index: 1;
	border-radius: 12px 12px 0 0;
}

.modal-header h3 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1e293b;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: calc(100% - 2rem);
}

.modal-body {
	padding: 1.5rem;
	width: 100%;
	overflow-x: hidden;
}

.modal-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	position: sticky;
	bottom: 0;
	background: white;
	border-radius: 0 0 12px 12px;
	flex-wrap: wrap;
}

/* Peer avatars */
.peer-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	border: 2px solid rgba(255, 255, 255, 0.3);
	flex-shrink: 0;
}

.peer-card {
	transition: transform 0.2s, box-shadow 0.2s;
	padding: 10px;
	width: 100%;
	overflow: hidden;
}

.peer-card:hover {
	border-radius: 0.75rem;
	box-shadow: var(--shadow);
	border: 1px solid var(--border-color);
	overflow: hidden;
}

/* Video cards */
.video-card {
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	overflow: hidden;
}

.video-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.video-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	width: 100%;
}

/* Concept cards */
.concept-card {
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	overflow: hidden;
}

.concept-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Question cards */
.question-card {
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	overflow: hidden;
}

.question-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Module status */
.module-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
	flex-wrap: wrap;
}

.status-dot {
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	flex-shrink: 0;
}

.status-pending {
	background-color: var(--warning-color);
}

.status-graded {
	background-color: var(--success-color);
}

/* Answers */
.answer {
	padding: 1rem;
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	width: 100%;
	overflow-x: auto;
}

.answer.accepted {
	border-color: var(--success-color);
	background-color: rgba(16, 185, 129, 0.05);
}

/* Toast Notification System - Enhanced for All Devices */
.toast-container {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	max-width: 400px;
	width: calc(100% - 2rem);
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	border-left: 4px solid #667eea;
	min-width: 280px;
	max-width: 100%;
	transform: translateX(100%);
	opacity: 0;
	transition: all 0.3s ease;
	pointer-events: auto;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.toast.show {
	transform: translateX(0);
	opacity: 1;
}

.toast.hide {
	transform: translateX(100%);
	opacity: 0;
}

.toast-success {
	border-left-color: var(--success-color);
}

.toast-success .toast-icon {
	color: var(--success-color);
}

.toast-error {
	border-left-color: var(--error-color);
}

.toast-error .toast-icon {
	color: var(--error-color);
}

.toast-warning {
	border-left-color: var(--warning-color);
}

.toast-warning .toast-icon {
	color: var(--warning-color);
}

.toast-info .toast-icon {
	color: #3b82f6;
}

.toast-icon {
	font-size: 1.25rem;
	flex-shrink: 0;
}

.toast-content {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.toast-title {
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.toast-message {
	color: #1f2937;
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.toast-close {
	background: none;
	border: none;
	font-size: 1.25rem;
	color: #6b7280;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 4px;
	transition: color 0.3s ease;
	flex-shrink: 0;
}

.toast-close:hover {
	color: #374151;
}

.toast-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: linear-gradient(
		90deg,
		var(--gradient-start),
		var(--gradient-middle),
		var(--gradient-end)
	);
	border-radius: 0 0 0.5rem 0.5rem;
	transition: width linear;
}

/* Category tags */
.category-tag {
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
	white-space: nowrap;
}

.category-tag.active {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

/* Onboarding specific styles */
.onboarding-container {
	min-height: 100vh;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem 1rem;
	width: 100%;
	overflow-x: hidden;
}

.onboarding-card {
	background: white;
	border-radius: 1rem;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	max-width: 800px;
	width: 100%;
	overflow: hidden;
}

.onboarding-header {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	padding: 2rem;
	text-align: center;
}

.logo-section h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.logo-section .text-secondary {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
}

.progress-steps {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	opacity: 0.6;
	transition: opacity 0.3s;
}

.step.active {
	opacity: 1;
}

.step-number {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 1.125rem;
}

.step.active .step-number {
	background: white;
	color: #667eea;
}

.step span {
	font-size: 0.875rem;
	font-weight: 500;
}

.step-content {
	padding: 2rem;
	display: none;
	width: 100%;
	overflow-x: hidden;
}

.step-content.active {
	display: block;
}

.welcome-section {
	text-align: center;
	margin-bottom: 2rem;
}

.welcome-section h2 {
	font-size: 1.875rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.75rem;
}

.info-section {
	margin-bottom: 2rem;
	padding: 1.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	background: #f8fafc;
	width: 100%;
	overflow-x: hidden;
}

.info-section h3 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1e293b;
	flex-wrap: wrap;
}

.info-section h3 i {
	color: #667eea;
}

.info-section p {
	color: #475569;
	line-height: 1.6;
	margin-bottom: 1rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.contact-info {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.contact-item i {
	width: 1.25rem;
	color: #667eea;
	text-align: center;
	flex-shrink: 0;
}

.contact-item a {
	color: #667eea;
	text-decoration: none;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.contact-item a:hover {
	text-decoration: underline;
}

.mentor-info {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
	flex-wrap: wrap;
}

.mentor-details h4 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #1e293b;
}

.mentor-title {
	color: #667eea;
	font-weight: 500;
	margin-bottom: 1rem;
	font-size: 1rem;
}

.mentor-contact {
	margin-top: 1rem;
}

.program-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.detail-item {
	padding: 1rem;
	background: white;
	border-radius: 0.5rem;
	border: 1px solid #e2e8f0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.detail-item strong {
	color: #1e293b;
	font-weight: 600;
}

.payment-info {
	background: linear-gradient(
		135deg,
		rgba(102, 126, 234, 0.05),
		rgba(118, 75, 162, 0.05)
	);
	border: 1px solid rgba(102, 126, 234, 0.2);
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-bottom: 2rem;
	width: 100%;
	overflow-x: hidden;
}

.payment-info h3 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1e293b;
	flex-wrap: wrap;
}

.payment-info h3 i {
	color: #667eea;
}

.payment-methods {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.payment-method {
	background: white;
	border-radius: 0.75rem;
	padding: 1.5rem;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	width: 100%;
	overflow-x: hidden;
}

.payment-method h4 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	color: #667eea;
	font-size: 1.125rem;
	font-weight: 600;
	flex-wrap: wrap;
}

.payment-details {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.detail-row:last-child {
	border-bottom: none;
}

.label {
	font-weight: 500;
	color: #64748b;
	font-size: 0.875rem;
}

.value {
	font-weight: 600;
	color: #1e293b;
	font-size: 0.875rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.payment-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: rgba(245, 158, 11, 0.1);
	border: 1px solid #f59e0b;
	border-radius: 0.5rem;
	padding: 1rem;
	margin-top: 1.5rem;
}

.payment-notice i {
	color: #f59e0b;
	margin-top: 0.125rem;
	font-size: 1.125rem;
	flex-shrink: 0;
}

.payment-notice p {
	margin: 0;
	color: #92400e;
	font-size: 0.875rem;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 1rem;
}

.radio-group {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

.radio-option {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	padding: 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 0.75rem;
	transition: all 0.2s;
	background: white;
	width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.radio-option:hover {
	border-color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"] {
	display: none;
}

.radio-custom {
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #d1d5db;
	border-radius: 50%;
	position: relative;
	transition: all 0.2s;
	flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
	border-color: #667eea;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0.5rem;
	height: 0.5rem;
	background: #667eea;
	border-radius: 50%;
}

.file-upload-section {
	margin: 2rem 0;
	width: 100%;
}

.file-upload-area {
	border: 2px dashed #d1d5db;
	border-radius: 0.75rem;
	padding: 3rem 2rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s;
	background: #f9fafb;
	width: 100%;
}

.file-upload-area:hover {
	border-color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.dragover {
	border-color: #667eea;
	background: rgba(102, 126, 234, 0.1);
}

.upload-icon {
	font-size: 3rem;
	color: #667eea;
	margin-bottom: 1rem;
}

.upload-text h4 {
	margin-bottom: 0.5rem;
	color: #1e293b;
	font-size: 1.125rem;
	font-weight: 600;
}

.upload-text p {
	color: #64748b;
	margin-bottom: 0.5rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.upload-link {
	color: #667eea;
	font-weight: 500;
	cursor: pointer;
}

.upload-link:hover {
	text-decoration: underline;
}

.uploaded-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	margin-top: 1rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	flex-wrap: wrap;
	gap: 0.5rem;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1;
	min-width: 0;
}

.file-info i {
	font-size: 1.5rem;
	color: #667eea;
	flex-shrink: 0;
}

.file-details {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.file-name {
	font-weight: 500;
	color: #1e293b;
	font-size: 0.875rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.file-size {
	font-size: 0.75rem;
	color: #64748b;
}

.btn-remove {
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	padding: 0.5rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s;
	font-size: 1.125rem;
	flex-shrink: 0;
}

.btn-remove:hover {
	background: rgba(239, 68, 68, 0.1);
}

/* Profile page specific styles */
.profile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.profile-avatar-section {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.profile-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	font-weight: bold;
	border: 3px solid rgba(255, 255, 255, 0.3);
	flex-shrink: 0;
}

.profile-info h1 {
	margin-bottom: 0.25rem;
	font-size: 1.75rem;
	color: #1e293b;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.profile-badges {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.75rem;
	flex-wrap: wrap;
}

.payment-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
}

.payment-status-badge.pending {
	background: rgba(245, 158, 11, 0.1);
	color: var(--warning-color);
	border: 1px solid var(--warning-color);
}

.payment-status-badge.paid {
	background: rgba(34, 197, 94, 0.2);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.payment-status-badge.unpaid {
	background: rgba(251, 191, 36, 0.2);
	color: #d97706;
	border: 1px solid rgba(251, 191, 36, 0.3);
}

.profile-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.github-link-section {
	background: linear-gradient(
		135deg,
		rgba(139, 92, 246, 0.05),
		rgba(168, 139, 250, 0.05)
	);
	border: 1px solid var(--primary-light);
	border-radius: 0.5rem;
	padding: 1rem;
	margin-bottom: 1rem;
	width: 100%;
	overflow-x: hidden;
}

.github-input-group {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.github-input-group .form-control {
	flex: 1;
	min-width: 200px;
}

.github-preview {
	margin-top: 0.5rem;
}

.github-preview a {
	color: #667eea;
	text-decoration: none;
	font-size: 0.875rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.github-preview a:hover {
	text-decoration: underline;
}

.progress-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.stat-item {
	text-align: center;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 8px;
}

.stat-value {
	font-size: 2rem;
	font-weight: bold;
	color: #667eea;
	margin-bottom: 0.5rem;
}

.stat-label {
	font-size: 0.875rem;
	color: #6b7280;
}

.course-info {
	padding: 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border-left: 4px solid #667eea;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.course-info h4 {
	margin-bottom: 0.5rem;
	color: #1e293b;
}

.setting-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid #e2e8f0;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.setting-item:last-child {
	border-bottom: none;
}

.setting-info h4 {
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

.amount-display {
	text-align: center;
	padding: 1.5rem;
	background: #f8fafc;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.amount {
	font-size: 2rem;
	font-weight: bold;
	color: #667eea;
}

.momo-providers {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.momo-provider {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
}

.momo-provider:hover {
	border-color: #667eea;
	background: #f8fafc;
}

.momo-provider.selected {
	border-color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

.momo-provider input[type="radio"] {
	margin: 0;
	flex-shrink: 0;
}

.momo-logo {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 0.75rem;
	color: white;
	flex-shrink: 0;
}

.momo-logo.mtn {
	background: #ffcc00;
	color: #000;
}

.momo-logo.telecel {
	background: #0066cc;
}

.mb1 {
	margin-bottom: 1rem;
}

.mb2 {
	margin-bottom: 2rem;
}

.mb3 {
	margin-bottom: 3rem;
}

/* ========== NEW PROGRAM INFORMATION SECTION STYLES ========== */

/* Program Information Container */
.program-information {
	margin-bottom: 2rem;
}

.program-information .card-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1e293b;
}

.program-information .card-title i {
	color: #667eea;
	font-size: 1.125rem;
}

/* Program Overview Section */
.program-overview {
	background: linear-gradient(
		135deg,
		rgba(102, 126, 234, 0.05),
		rgba(118, 75, 162, 0.05)
	);
	border: 1px solid rgba(102, 126, 234, 0.15);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.program-overview h4 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
}

.program-overview h4 i {
	color: #667eea;
}

.program-overview-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1rem;
}

.overview-item {
	background: white;
	padding: 1rem;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.overview-item-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.overview-item-header i {
	color: #667eea;
	font-size: 1rem;
}

.overview-item-header h5 {
	font-size: 0.875rem;
	font-weight: 600;
	color: #64748b;
	margin: 0;
}

.overview-item-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.25rem;
}

.overview-item-description {
	font-size: 0.75rem;
	color: #64748b;
	line-height: 1.4;
}

/* Average Score Section */
.average-score-section {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.average-score-section h4 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
}

.average-score-section h4 i {
	color: #667eea;
}

.score-display {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
	margin-bottom: 1.5rem;
}

.score-circle {
	position: relative;
	width: 120px;
	height: 120px;
	margin-bottom: 1rem;
}

.score-circle svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.score-circle-bg {
	fill: none;
	stroke: #e2e8f0;
	stroke-width: 8;
}

.score-circle-progress {
	fill: none;
	stroke: #667eea;
	stroke-width: 8;
	stroke-linecap: round;
	transition: stroke-dasharray 0.5s ease;
}

.score-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.score-percentage {
	font-size: 1.75rem;
	font-weight: 700;
	color: #667eea;
	line-height: 1;
}

.score-label {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
}

.score-breakdown {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
}

.score-item {
	text-align: center;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.score-item-value {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.score-item-value.excellent {
	color: #10b981;
}

.score-item-value.good {
	color: #667eea;
}

.score-item-value.average {
	color: #f59e0b;
}

.score-item-value.poor {
	color: #ef4444;
}

.score-item-label {
	font-size: 0.75rem;
	color: #64748b;
	font-weight: 500;
}

/* Active Curriculums Section */
.active-curriculums-section {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.active-curriculums-section h4 {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
}

.active-curriculums-section h4 i {
	color: #667eea;
}

.curriculums-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1rem;
}

.curriculum-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 1.25rem;
	transition: all 0.2s ease;
	cursor: pointer;
}

.curriculum-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-color: #667eea;
}

.curriculum-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.curriculum-title {
	font-size: 1rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.25rem;
	line-height: 1.3;
}

.curriculum-status {
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.curriculum-status.active {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.curriculum-status.completed {
	background: rgba(102, 126, 234, 0.1);
	color: #667eea;
	border: 1px solid rgba(102, 126, 234, 0.2);
}

.curriculum-status.paused {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border: 1px solid rgba(245, 158, 11, 0.2);
}

.curriculum-description {
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.4;
	margin-bottom: 1rem;
}

.curriculum-progress {
	margin-bottom: 1rem;
}

.curriculum-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.5rem;
}

.curriculum-progress-label {
	font-size: 0.75rem;
	font-weight: 500;
	color: #64748b;
}

.curriculum-progress-percentage {
	font-size: 0.75rem;
	font-weight: 600;
	color: #667eea;
}

.curriculum-progress-bar {
	width: 100%;
	height: 6px;
	background: #e2e8f0;
	border-radius: 3px;
	overflow: hidden;
}

.curriculum-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea, #764ba2);
	border-radius: 3px;
	transition: width 0.3s ease;
}

.curriculum-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.75rem;
	color: #64748b;
}

.curriculum-modules {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.curriculum-modules i {
	color: #667eea;
}

.curriculum-due-date {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.curriculum-due-date i {
	color: #f59e0b;
}

.curriculum-due-date.overdue i {
	color: #ef4444;
}

.curriculum-due-date.overdue {
	color: #ef4444;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: #64748b;
}

.empty-state i {
	font-size: 3rem;
	color: #d1d5db;
	margin-bottom: 1rem;
}

.empty-state h5 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
}

.empty-state p {
	font-size: 0.875rem;
	line-height: 1.5;
}

/* Loading States */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

.spinner {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* Focus States */
.form-control:focus,
.btn:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

/* Hover Effects */
.card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-1px);
	transition: all 0.3s ease;
}

/* Utility classes */
.hidden {
	display: none !important;
}

.border {
	border: 1px solid var(--border-color);
}

.border-b {
	border-bottom: 1px solid var(--border-color);
}

.border-t {
	border-top: 1px solid var(--border-color);
}

.rounded {
	border-radius: 0.5rem;
}

.bg-gray-50 {
	background-color: #f9fafb;
}

.prose {
	max-width: none;
}

.prose p {
	margin-bottom: 1rem;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.list-disc {
	list-style-type: disc;
}

.list-inside {
	list-style-position: inside;
}

/* Module cards */
.module-card {
	transition: transform 0.2s, box-shadow 0.2s;
	width: 100%;
	overflow: hidden;
}

.module-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Content tabs */
.content-tab {
	margin-right: 0.5rem;
	margin-bottom: 0.5rem;
	white-space: nowrap;
}

.content-section {
	margin-top: 1.5rem;
	width: 100%;
	overflow-x: hidden;
}

/* Fix for select elements */
select.form-control {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

/* Table responsive wrapper */
.table-wrapper {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.table th,
.table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid var(--border-color);
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.table th {
	font-weight: 600;
	color: var(--text-primary);
	background-color: var(--background-color);
}

/* Filter forms */
.filter-form {
	width: 100%;
	overflow-x: hidden;
}

.filter-row {
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.filter-col {
	flex: 1;
	min-width: 200px;
}

/* ========== ENHANCED MOBILE RESPONSIVE STYLES ========== */

/* Mobile-first responsive breakpoints */
@media (max-width: 480px) {
	/* Extra small devices */
	body {
		font-size: 14px;
	}

	.main-content {
		padding: 1rem 0.5rem;
	}

	.onboarding-container {
		padding: 0.5rem;
	}

	.onboarding-header {
		padding: 1rem;
	}

	.logo-section h1 {
		font-size: 1.75rem;
	}

	.step-content {
		padding: 1rem;
	}

	.info-section {
		padding: 1rem;
	}

	.payment-method {
		padding: 1rem;
	}

	.file-upload-area {
		padding: 2rem 1rem;
	}

	.upload-icon {
		font-size: 2rem;
	}

	.progress-steps {
		gap: 0.5rem;
		justify-content: flex-start;
		overflow-x: auto;
		padding-bottom: 0.5rem;
	}

	.step {
		min-width: 80px;
	}

	.step span {
		font-size: 0.625rem;
	}

	.step-number {
		width: 2rem;
		height: 2rem;
		font-size: 0.875rem;
	}

	.modal {
		padding: 0.5rem;
		align-items: flex-start;
		padding-top: 2rem;
	}

	.modal-content {
		margin: 0;
		width: 100%;
		max-width: none;
		border-radius: 8px;
		max-height: calc(100vh - 4rem);
	}

	.modal-header,
	.modal-body,
	.modal-footer {
		padding: 1rem;
	}

	.modal-footer {
		flex-direction: column;
		gap: 0.75rem;
	}

	.modal-footer .btn {
		width: 100%;
	}

	.toast {
		min-width: 250px;
		padding: 0.75rem;
	}

	.toast-container {
		top: 0.5rem;
		right: 0.5rem;
		left: 0.5rem;
		width: auto;
		max-width: none;
	}

	.btn {
		padding: 0.875rem 1rem;
		font-size: 0.875rem;
		width: 100%;
		justify-content: center;
	}

	.btn-sm {
		padding: 0.625rem 0.875rem;
		width: auto;
		min-width: auto;
	}

	.form-control {
		padding: 0.875rem 0.75rem;
		font-size: 1rem; /* Prevent zoom on iOS */
	}

	.profile-header {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
		padding: 1.5rem 1rem;
	}

	.profile-avatar-section {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.profile-actions {
		flex-direction: column;
		width: 100%;
		align-items: center;
	}

	.profile-actions .btn {
		width: 100%;
		max-width: 300px;
	}

	.progress-stats {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.momo-providers {
		grid-template-columns: 1fr;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.video-grid {
		grid-template-columns: 1fr !important;
	}

	.payment-methods {
		grid-template-columns: 1fr;
	}

	.program-details {
		grid-template-columns: 1fr;
	}

	.detail-row {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.github-input-group {
		flex-direction: column;
		gap: 0.75rem;
	}

	.github-input-group .btn {
		width: 100%;
	}

	.filter-row {
		flex-direction: column;
		gap: 1rem;
	}

	.filter-col {
		min-width: auto;
	}

	.step-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.step-actions .btn {
		width: 100%;
	}

	.card-header,
	.card-body {
		padding: 1rem;
	}

	.table-wrapper {
		margin: 0 -0.5rem;
	}

	.uploaded-file {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.file-info {
		width: 100%;
	}

	.auth-card {
		margin: 0.5rem;
		width: calc(100% - 1rem);
	}

	/* Program Information Mobile Styles */
	.program-overview-content {
		grid-template-columns: 1fr;
	}

	.score-breakdown {
		grid-template-columns: repeat(2, 1fr);
	}

	.curriculums-grid {
		grid-template-columns: 1fr;
	}

	.score-circle {
		width: 100px;
		height: 100px;
	}

	.score-percentage {
		font-size: 1.5rem;
	}
}

@media (min-width: 768px) {
	.sidebar-close {
		display: none !important;
		margin: 0 !important;
	}
}

@media (max-width: 768px) {
	/* Tablet and mobile devices */
	.dashboard-layout {
		position: relative;
	}

	.sidebar {
		width: 280px;
		height: 100vh;
		position: fixed;
		left: -280px;
		top: 0;
		z-index: 2000;
		transition: left 0.3s ease;
	}

	.sidebar.open {
		left: 0;
	}

	.sidebar-close {
		display: block;
	}

	.main-content {
		margin-left: 0;
		padding: 1rem;
		width: 100%;
		max-width: 100%;
	}

	#menu-toggle {
		display: block;
		position: fixed;
		top: 1rem;
		left: 1rem;
		z-index: 1000;
		background: var(--primary-color);
		color: white;
		border: none;
		border-radius: 8px;
		padding: 0.75rem;
		cursor: pointer;
		box-shadow: var(--shadow);
		width: auto;
		min-width: unset;
		max-width: fit-content;
	}

	.grid-2 {
		grid-template-columns: 1fr;
	}

	.grid-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.grid-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.video-grid {
		grid-template-columns: 1fr !important;
	}

	.video-thumbnail {
		height: 180px;
	}

	.modal {
		padding: 1rem;
		align-items: flex-start;
		padding-top: 2rem;
	}

	.modal-content {
		width: 100%;
		max-width: none;
		margin: 0;
		max-height: calc(100vh - 4rem);
	}

	.modal-footer {
		flex-direction: column-reverse;
		gap: 0.75rem;
	}

	.modal-footer .btn {
		width: 100%;
		justify-content: center;
	}

	.toast {
		min-width: 280px;
	}

	.toast-container {
		left: 1rem;
		right: 1rem;
		width: auto;
		max-width: none;
	}

	.auth-card {
		margin: 1rem;
		width: calc(100% - 2rem);
	}

	.onboarding-container {
		padding: 1rem;
	}

	.onboarding-card {
		margin: 0;
		width: 100%;
	}

	.onboarding-header {
		padding: 1.5rem;
	}

	.logo-section h1 {
		font-size: 2rem;
	}

	.progress-steps {
		gap: 1rem;
		flex-wrap: wrap;
	}

	.step span {
		font-size: 0.75rem;
	}

	.step-content {
		padding: 1.5rem;
	}

	.payment-methods {
		grid-template-columns: 1fr;
	}

	.program-details {
		grid-template-columns: 1fr;
	}

	.step-actions {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.step-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.mentor-info {
		flex-direction: column;
		gap: 1rem;
	}

	.contact-info {
		gap: 0.5rem;
	}

	.profile-header {
		flex-direction: column;
		gap: 1.5rem;
		text-align: center;
	}

	.profile-avatar-section {
		justify-content: center;
	}

	.profile-actions {
		justify-content: center;
		flex-wrap: wrap;
		width: 100%;
	}

	.progress-stats {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.github-input-group {
		flex-direction: column;
		gap: 0.75rem;
	}

	.github-input-group .btn {
		width: 100%;
	}

	.setting-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
	}

	.momo-providers {
		grid-template-columns: 1fr;
	}

	.momo-provider {
		padding: 0.75rem;
	}

	/* Program Information Tablet Styles */
	.program-overview-content {
		grid-template-columns: repeat(2, 1fr);
	}

	.score-breakdown {
		grid-template-columns: repeat(3, 1fr);
	}

	.curriculums-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Form improvements for mobile */
	.form-group {
		margin-bottom: 1.25rem;
	}

	.form-control {
		font-size: 1rem; /* Prevent zoom on iOS */
		padding: 0.875rem;
	}

	.form-select {
		padding-right: 2.5rem;
	}

	/* Button improvements for mobile */
	.btn {
		min-height: 48px; /* Better touch targets */
		padding: 0.875rem 1.25rem;
	}

	.btn-sm {
		min-height: 40px;
		padding: 0.625rem 1rem;
	}

	/* Card improvements for mobile */
	.card {
		margin-bottom: 1rem;
	}

	.card-header,
	.card-body {
		padding: 1.25rem;
	}

	/* Badge improvements for mobile */
	.badge {
		padding: 0.375rem 0.75rem;
		font-size: 0.75rem;
	}

	/* Table improvements for mobile */
	.table-wrapper {
		margin: 0 -1.25rem;
	}

	.table th,
	.table td {
		padding: 0.625rem 0.5rem;
		font-size: 0.875rem;
	}

	/* Navigation improvements for mobile */
	.nav-brand {
		padding: 1.5rem;
		margin-bottom: 1.5rem;
	}

	.nav-brand h2 {
		font-size: 1.25rem;
	}

	.nav-link {
		padding: 1rem 1.5rem;
		font-size: 0.875rem;
	}

	/* File upload improvements for mobile */
	.file-upload-area {
		padding: 2rem 1rem;
	}

	.uploaded-file {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.file-info {
		width: 100%;
	}

	/* Video card improvements for mobile */
	.video-card {
		margin-bottom: 1rem;
	}

	.video-thumbnail {
		height: 200px;
	}

	/* Concept and question card improvements */
	.concept-card,
	.question-card {
		margin-bottom: 1rem;
	}

	/* Answer improvements for mobile */
	.answer {
		padding: 0.875rem;
		margin-bottom: 0.75rem;
	}

	/* Progress bar improvements */
	.progress {
		height: 0.625rem;
	}
}

@media (max-width: 992px) {
	/* Large tablets and small laptops */
	.grid-4 {
		grid-template-columns: repeat(3, 1fr);
	}

	.video-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.payment-methods {
		grid-template-columns: repeat(2, 1fr);
	}

	.program-details {
		grid-template-columns: repeat(2, 1fr);
	}

	.progress-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.main-content {
		padding: 1.5rem;
	}

	/* Program Information Large Tablet Styles */
	.curriculums-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 1200px) {
	/* Medium laptops and tablets in landscape */
	.grid-4 {
		grid-template-columns: repeat(4, 1fr);
	}

	.video-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Large screens optimization */
@media (min-width: 1400px) {
	.main-content {
		max-width: 1200px;
		margin-left: auto;
		margin-right: auto;
		padding-left: 280px;
	}

	.container {
		max-width: 1200px;
		margin: 0 auto;
	}
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
	.btn,
	.form-control,
	.card {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
}

/* Print styles */
@media print {
	.sidebar,
	.nav-brand,
	#menu-toggle,
	.modal,
	.toast-container,
	.btn {
		display: none !important;
	}

	.main-content {
		margin-left: 0 !important;
		width: 100% !important;
		padding: 0 !important;
	}

	.card {
		box-shadow: none !important;
		border: 1px solid #ccc !important;
	}

	body {
		background: white !important;
		color: black !important;
	}
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
	:root {
		--background-color: #0f172a;
		--surface-color: #1e293b;
		--text-primary: #f1f5f9;
		--text-secondary: #94a3b8;
		--border-color: #334155;
		--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
	}

	body {
		background-color: var(--background-color);
		color: var(--text-primary);
	}

	.card,
	.modal-content,
	.auth-card {
		background-color: var(--surface-color);
		border-color: var(--border-color);
	}

	.form-control {
		background-color: var(--surface-color);
		border-color: var(--border-color);
		color: var(--text-primary);
	}

	.form-control:focus {
		border-color: var(--primary-color);
		box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
	}
}

/* Touch device optimizations */
@media (pointer: coarse) {
	.btn,
	.nav-link,
	.form-control,
	.radio-option,
	.momo-provider {
		min-height: 44px;
	}

	.btn-sm {
		min-height: 40px;
	}

	.toast-close {
		min-width: 44px;
		min-height: 44px;
	}

	/* Larger touch targets for important elements */
	.modal-header .btn-close,
	.sidebar-close {
		min-width: 44px;
		min-height: 44px;
		padding: 0.75rem;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.spinner {
		animation: none;
	}
}

/* Focus visible support for better accessibility */
@supports selector(:focus-visible) {
	.btn:focus,
	.form-control:focus,
	.nav-link:focus {
		outline: none;
	}

	.btn:focus-visible,
	.form-control:focus-visible,
	.nav-link:focus-visible {
		outline: 2px solid var(--primary-color);
		outline-offset: 2px;
	}
}

/* Container queries support for component-based responsiveness */
@supports (container-type: inline-size) {
	.card {
		container-type: inline-size;
	}

	@container (max-width: 300px) {
		.card-header,
		.card-body {
			padding: 0.75rem;
		}

		.btn {
			width: 100%;
			margin-bottom: 0.5rem;
		}
	}
}

/* Additional utility classes for responsive behavior */
.d-none {
	display: none !important;
}

.d-block {
	display: block !important;
}

.d-flex {
	display: flex !important;
}

.d-grid {
	display: grid !important;
}

.w-100 {
	width: 100% !important;
}

.h-100 {
	height: 100% !important;
}

.overflow-hidden {
	overflow: hidden !important;
}

.overflow-auto {
	overflow: auto !important;
}

.text-truncate {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

/* Responsive display utilities */
@media (max-width: 576px) {
	.d-sm-none {
		display: none !important;
	}
	.d-sm-block {
		display: block !important;
	}
	.d-sm-flex {
		display: flex !important;
	}
}

@media (max-width: 768px) {
	.d-md-none {
		display: none !important;
	}
	.d-md-block {
		display: block !important;
	}
	.d-md-flex {
		display: flex !important;
	}
}

@media (max-width: 992px) {
	.d-lg-none {
		display: none !important;
	}
	.d-lg-block {
		display: block !important;
	}
	.d-lg-flex {
		display: flex !important;
	}
}

/* Improved scroll behavior */
html {
	scroll-behavior: smooth;
}

/* Better text rendering */
body {
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Ensure proper box-sizing for all elements */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Improved focus management */
.sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Enhanced form validation styles */
.form-control:invalid {
	border-color: var(--error-color);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control:valid {
	border-color: var(--success-color);
}

.form-error {
	color: var(--error-color);
	font-size: 0.75rem;
	margin-top: 0.25rem;
	display: block;
}

.form-success {
	color: var(--success-color);
	font-size: 0.75rem;
	margin-top: 0.25rem;
	display: block;
}

/* Loading skeleton styles */
.skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.skeleton-text {
	height: 1rem;
	margin-bottom: 0.5rem;
	border-radius: 4px;
}

.skeleton-avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
}

.skeleton-card {
	height: 200px;
	border-radius: 8px;
}

/* Improved accessibility for interactive elements */
.interactive:focus,
.interactive:hover {
	transform: translateY(-1px);
	transition: transform 0.2s ease;
}

/* Better spacing for nested elements */
.nested-content > * + * {
	margin-top: 1rem;
}

/* Enhanced visual hierarchy */
.text-hierarchy-1 {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.text-hierarchy-2 {
	font-size: 1.875rem;
	font-weight: 600;
	line-height: 1.3;
}

.text-hierarchy-3 {
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
}

.text-hierarchy-4 {
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.5;
}

/* Final responsive adjustments */
@media (max-width: 360px) {
	/* Very small devices */
	.container,
	.main-content {
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}

	.card-header,
	.card-body {
		padding: 0.75rem;
	}

	.btn {
		padding: 0.75rem 1rem;
		font-size: 0.875rem;
	}

	.form-control {
		padding: 0.75rem;
	}

	.modal {
		padding: 0.25rem;
	}

	.modal-content {
		border-radius: 4px;
	}

	.toast-container {
		top: 0.25rem;
		right: 0.25rem;
		left: 0.25rem;
	}
}
