@import "./auth-theme.css";
@import "./header.css";
/* ============================================
   EDUTRACK PWA — STYLES (CSS Custom Properties)
   Color Theme: Deep Blue / Sky Blue / Orange
   ============================================ */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
	/* Brand Colors - Deep Royal Blue */
	--primary: #1e3a8a;
	--primary-dark: #1e3a5f;
	--primary-light: #dbeafe;
	--color-primary: #1e3a8a;
	--color-primary-light: #dbeafe;
	--color-primary-dark: #1e3a5f;
	--color-secondary: #0284c7;
	--color-secondary-light: #e0f2fe;
	--color-accent: #ea580c;
	--color-accent-light: #ffedd5;

	/* Semantic Colors */
	--color-success: #16a34a;
	--color-success-light: #dcfce7;
	--color-warning: #eab308;
	--color-warning-light: #fef9c3;
	--color-danger: #dc2626;
	--color-danger-light: #fee2e2;
	--color-info: #0891b2;
	--color-info-light: #cffafe;

	/* Neutrals */
	--color-white: #ffffff;
	--color-slate-50: #f8fafc;
	--color-slate-100: #f1f5f9;
	--color-slate-200: #e2e8f0;
	--color-slate-300: #cbd5e1;
	--color-slate-400: #94a3b8;
	--color-slate-500: #64748b;
	--color-slate-600: #475569;
	--color-slate-700: #334155;
	--color-slate-800: #1e293b;
	--color-slate-900: #0f172a;

	/* Typography */
	--font-family:
		"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--font-size-2xl: 1.5rem;
	--font-size-3xl: 1.875rem;

	/* Spacing */
	--spacing-1: 0.25rem;
	--spacing-2: 0.5rem;
	--spacing-3: 0.75rem;
	--spacing-4: 1rem;
	--spacing-5: 1.25rem;
	--spacing-6: 1.5rem;
	--spacing-8: 2rem;

	/* Borders & Radius */
	--radius-sm: 0.25rem;
	--radius: 0.5rem;
	--radius-lg: 0.75rem;
	--radius-xl: 1rem;
	--radius-full: 9999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg:
		0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

	/* Transitions */
	--transition-fast: 150ms ease;
	--transition: 200ms ease;
	--transition-slow: 300ms ease;

	/* Shell Dimensions */
	--header-height: 56px;
	--nav-height: 64px;
	--safe-top: env(safe-area-inset-top, 0px);
	--safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Dark Mode */
.dark {
	--color-white: #0f172a;
	--color-slate-50: #1e293b;
	--color-slate-100: #334155;
	--color-slate-200: #475569;
	--color-slate-300: #64748b;
	--color-slate-400: #94a3b8;
	--color-slate-500: #cbd5e1;
	--color-slate-600: #e2e8f0;
	--color-slate-700: #f1f5f9;
	--color-slate-800: #f8fafc;
	--color-slate-900: #ffffff;
	--color-primary-light: color-mix(
		in srgb,
		var(--color-primary) 20%,
		transparent
	);
	--color-secondary-light: color-mix(
		in srgb,
		var(--color-secondary) 20%,
		transparent
	);
	--color-accent-light: color-mix(
		in srgb,
		var(--color-accent) 20%,
		transparent
	);
	--color-success-light: color-mix(
		in srgb,
		var(--color-success) 20%,
		transparent
	);
	--color-warning-light: color-mix(
		in srgb,
		var(--color-warning) 20%,
		transparent
	);
	--color-danger-light: color-mix(
		in srgb,
		var(--color-danger) 20%,
		transparent
	);
	--color-info-light: color-mix(in srgb, var(--color-info) 20%, transparent);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: 1.6;
	color: var(--color-slate-800);
	background: var(--color-slate-100);
	-webkit-font-smoothing: antialiased;
}

button,
a,
.btn,
.nav-item,
.menu-item {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

button:active,
a:active,
.btn:active,
.nav-item:active,
.menu-item:active {
	opacity: 0.92;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5em;
	font-weight: 600;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.hidden {
	display: none !important;
}

.flex {
	display: flex;
}

.flex-1 {
	flex: 1;
}

.flex-wrap {
	flex-wrap: wrap;
}

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

.items-end {
	align-items: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-end {
	justify-content: flex-end;
}

.gap-1 {
	gap: var(--spacing-1);
}

.gap-2 {
	gap: var(--spacing-2);
}

.gap-3 {
	gap: var(--spacing-3);
}

.gap-4 {
	gap: var(--spacing-4);
}

.space-y-2 > * + * {
	margin-top: var(--spacing-2);
}

.space-y-3 > * + * {
	margin-top: var(--spacing-3);
}

.space-y-4 > * + * {
	margin-top: var(--spacing-4);
}

.space-y-5 > * + * {
	margin-top: var(--spacing-5);
}

.space-y-6 > * + * {
	margin-top: var(--spacing-6);
}

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

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

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

.text-xs {
	font-size: var(--font-size-xs);
}

.text-sm {
	font-size: var(--font-size-sm);
}

.text-lg {
	font-size: var(--font-size-lg);
}

.text-xl {
	font-size: var(--font-size-xl);
}

.text-2xl {
	font-size: var(--font-size-2xl);
}

.font-medium {
	font-weight: 500;
}

.font-bold {
	font-weight: 700;
}

.text-primary {
	color: var(--color-primary);
}

.text-secondary {
	color: var(--color-secondary);
}

.text-accent {
	color: var(--color-accent);
}

.text-success {
	color: var(--color-success);
}

.text-danger {
	color: var(--color-danger);
}

.text-muted {
	color: var(--color-slate-500);
}

.text-slate-400 {
	color: var(--color-slate-400);
}

.text-slate-500 {
	color: var(--color-slate-500);
}

.text-slate-600 {
	color: var(--color-slate-600);
}

.text-slate-700 {
	color: var(--color-slate-700);
}

.text-slate-800 {
	color: var(--color-slate-800);
}

.text-white {
	color: var(--color-white);
}

.text-green-600 {
	color: #16a34a;
}

.text-blue-600 {
	color: #2563eb;
}

.text-indigo-600 {
	color: #4f46e5;
}

.text-pink-500 {
	color: #ec4899;
}

.text-orange-500 {
	color: #f97316;
}

.text-orange-400 {
	color: #fb923c;
}

.text-orange-300 {
	color: #fdba74;
}

.text-red-600 {
	color: #dc2626;
}

.text-yellow-600 {
	color: #ca8a04;
}

.text-yellow-500 {
	color: #eab308;
}

.text-blue-500 {
	color: #3b82f6;
}

.bg-primary {
	background-color: var(--color-primary);
}

.bg-primary-light {
	background-color: var(--color-primary-light);
}

.bg-secondary {
	background-color: var(--color-secondary);
}

.bg-secondary-light {
	background-color: var(--color-secondary-light);
}

.bg-accent {
	background-color: var(--color-accent);
}

.bg-accent-light {
	background-color: var(--color-accent-light);
}

.bg-white {
	background-color: var(--color-white);
}

.bg-slate-50 {
	background-color: var(--color-slate-50);
}

.bg-slate-100 {
	background-color: var(--color-slate-100);
}

.bg-green-50 {
	background-color: #f0fdf4;
}

.bg-green-100 {
	background-color: #dcfce7;
}

.bg-orange-50 {
	background-color: #fff7ed;
}

.bg-blue-50 {
	background-color: #eff6ff;
}

.w-8 {
	width: 2rem;
}

.w-16 {
	width: 4rem;
}

.w-20 {
	width: 5rem;
}

.w-24 {
	width: 6rem;
}

.w-28 {
	width: 7rem;
}

.w-32 {
	width: 8rem;
}

.w-full {
	width: 100%;
}

.h-8 {
	height: 2rem;
}

.h-16 {
	height: 4rem;
}

.h-full {
	height: 100%;
}

.min-h-screen {
	min-height: 100vh;
}

.max-h-64 {
	max-height: 16rem;
}

.max-h-96 {
	max-height: 24rem;
}

.max-w-3xl {
	max-width: 48rem;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.mr-2 {
	margin-right: var(--spacing-2);
}

.mb-1 {
	margin-bottom: var(--spacing-1);
}

.mb-2 {
	margin-bottom: var(--spacing-2);
}

.mb-4 {
	margin-bottom: var(--spacing-4);
}

.mb-6 {
	margin-bottom: var(--spacing-6);
}

.my-4 {
	margin-top: var(--spacing-4);
	margin-bottom: var(--spacing-4);
}

.mt-4 {
	margin-top: var(--spacing-4);
}

.pl-6 {
	padding-left: var(--spacing-6);
}

.p-2 {
	padding: var(--spacing-2);
}

.p-4 {
	padding: var(--spacing-4);
}

.p-8 {
	padding: var(--spacing-8);
}

.px-3 {
	padding-left: var(--spacing-3);
	padding-right: var(--spacing-3);
}

.px-4 {
	padding-left: var(--spacing-4);
	padding-right: var(--spacing-4);
}

.py-1\.5 {
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
}

.py-3 {
	padding-top: var(--spacing-3);
	padding-bottom: var(--spacing-3);
}

.py-4 {
	padding-top: var(--spacing-4);
	padding-bottom: var(--spacing-4);
}

.py-8 {
	padding-top: var(--spacing-8);
	padding-bottom: var(--spacing-8);
}

.rounded {
	border-radius: var(--radius);
}

.rounded-lg {
	border-radius: var(--radius-lg);
}

.rounded-xl {
	border-radius: var(--radius-xl);
}

.rounded-full {
	border-radius: var(--radius-full);
}

.border {
	border: 1px solid var(--color-slate-200);
}

.border-b {
	border-bottom: 1px solid var(--color-slate-200);
}

.border-r {
	border-right: 1px solid var(--color-slate-200);
}

.border-orange-200 {
	border-color: #fed7aa;
}

.border-blue-200 {
	border-color: #bfdbfe;
}

.shadow {
	box-shadow: var(--shadow);
}

.shadow-sm {
	box-shadow: var(--shadow-sm);
}

.shadow-md {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

.overflow-hidden {
	overflow: hidden;
}

.overflow-y-auto {
	overflow-y: auto;
}

.transition-colors {
	transition:
		color var(--transition),
		background-color var(--transition);
}

.transition-opacity {
	transition: opacity var(--transition);
}

.opacity-0 {
	opacity: 0;
}

.opacity-50 {
	opacity: 0.5;
}

.opacity-100 {
	opacity: 1;
}

.cursor-pointer {
	cursor: pointer;
}

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.z-10 {
	z-index: 10;
}

/* Grid */
.grid {
	display: grid;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.col-span-2 {
	grid-column: span 2 / span 2;
}

@media (min-width: 768px) {
	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.md\:col-span-1 {
		grid-column: span 1 / span 1;
	}

	.md\:col-span-2 {
		grid-column: span 2 / span 2;
	}

	.md\:flex {
		display: flex;
	}

	.md\:hidden {
		display: none;
	}

	.md\:block {
		display: block;
	}
}

@media (min-width: 1024px) {
	.lg\:grid-cols-3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.lg\:col-span-1 {
		grid-column: span 1 / span 1;
	}

	.lg\:col-span-2 {
		grid-column: span 2 / span 2;
	}
}

/* ==========================================
   ICONS
   ========================================== */
.icon {
	width: 1.25rem;
	height: 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.icon svg {
	width: 100%;
	height: 100%;
}

.icon-sm {
	width: 1rem;
	height: 1rem;
}

.icon-lg {
	width: 1.5rem;
	height: 1.5rem;
}

.icon-xl {
	width: 2rem;
	height: 2rem;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

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

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
	position: fixed;
	inset: 0;
	background: linear-gradient(
		135deg,
		var(--color-primary) 0%,
		var(--color-primary-dark) 100%
	);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
	opacity: 0;
	pointer-events: none;
}

.splash-content {
	text-align: center;
	color: white;
}

.splash-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	animation: bounce 1s infinite;
}

.splash-title {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 0.25rem;
}

.splash-subtitle {
	opacity: 0.8;
	font-size: 0.875rem;
}

.splash-loader {
	width: 40px;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 2px;
	margin: 1.5rem auto 0;
	overflow: hidden;
}

.splash-loader::after {
	content: "";
	display: block;
	width: 50%;
	height: 100%;
	background: white;
	border-radius: 2px;
	animation: loading 1s ease-in-out infinite;
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

@keyframes loading {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(200%);
	}
}

/* ==========================================
   APP LAYOUT
   ========================================== */
#app-container {
	min-height: 100dvh;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Main App Shell */
.main-app {
	height: 100vh;
	height: 100dvh;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Header */
.header {
	position: sticky;
	top: 0;
	min-height: calc(var(--header-height) + var(--safe-top) + 8px);
	background: var(--color-white);
	border-bottom: 1px solid var(--color-slate-200);
	display: flex;
	align-items: flex-end;
	padding: calc(var(--safe-top) + 8px) 1rem 8px;
	gap: 0.5rem;
	z-index: 100;
}

.header-title {
	flex: 1;
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--color-slate-800);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin: 0;
}

.header-btn {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	color: var(--color-slate-800);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	cursor: pointer;
	transition: background 0.2s;
}

.header-btn:hover {
	background: var(--color-slate-100);
}

.header-actions {
	display: flex;
	gap: 0.25rem;
}

/* Content */
.content {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-y: contain;
	padding-bottom: calc(var(--nav-height) + max(var(--safe-bottom), 8px) + 16px);
}

/* Bottom Nav */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: calc(var(--nav-height) + max(var(--safe-bottom), 8px));
	padding-bottom: max(var(--safe-bottom), 8px);
	background: var(--color-white);
	border-top: 1px solid var(--color-slate-200);
	display: flex;
	z-index: 100;
}

.nav-item {
	flex: 1;
	border: none;
	background: transparent;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	color: var(--color-slate-400);
	font-size: 0.65rem;
	font-weight: 600;
	cursor: pointer;
	transition: color 0.2s;
}

.nav-item i {
	font-size: 1.25rem;
}

.nav-item.active {
	color: var(--color-primary);
}

/* Side Menu */
.side-menu {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(0, 0, 0, 0.5);
}

.side-menu-content {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 280px;
	max-width: 80vw;
	background: var(--color-white);
	animation: slideIn 0.2s ease;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
	}
	to {
		transform: translateX(0);
	}
}

.side-menu-header {
	padding: 2rem 1.5rem;
	background: linear-gradient(
		135deg,
		var(--color-primary) 0%,
		var(--color-primary-dark) 100%
	);
}

.menu-user {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: white;
}

.menu-avatar {
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 700;
}

.menu-user-details h3 {
	font-weight: 700;
	font-size: 1rem;
	margin: 0;
}

.menu-user-details p {
	opacity: 0.7;
	font-size: 0.75rem;
	margin: 0;
}

.side-menu-nav {
	padding: 1rem 0;
}

.side-menu-nav button {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 0.875rem 1.5rem;
	border: none;
	background: transparent;
	color: var(--color-slate-800);
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
}

.side-menu-nav button:hover {
	background: var(--color-slate-100);
}

.side-menu-nav button i {
	font-size: 1.25rem;
	color: var(--color-slate-500);
}

/* Divider */
.divider {
	height: 1px;
	background: var(--color-slate-200);
	margin: 0.5rem 1.5rem;
}

/* ==========================================
   CARDS
   ========================================== */
.card {
	background: var(--color-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
}

.card-header {
	padding: var(--spacing-4);
	border-bottom: 1px solid var(--color-slate-100);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing-3);
}

.card-title {
	font-size: var(--font-size-base);
	font-weight: 600;
	margin: 0;
}

.card-body {
	padding: var(--spacing-4);
}

.card-footer {
	padding: var(--spacing-4);
	border-top: 1px solid var(--color-slate-100);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-2);
	padding: var(--spacing-2) var(--spacing-4);
	font-size: var(--font-size-sm);
	font-weight: 500;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	line-height: 1.5;
	white-space: nowrap;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--color-primary);
	color: var(--color-white);
}

.btn-primary:hover {
	background: var(--color-primary-dark);
}

.btn-secondary {
	background: var(--color-secondary);
	color: var(--color-white);
}

.btn-secondary:hover {
	opacity: 0.9;
}

.btn-accent {
	background: var(--color-accent);
	color: var(--color-white);
}

.btn-accent:hover {
	opacity: 0.9;
}

.btn-outline {
	background: transparent;
	border-color: var(--color-slate-300);
	color: var(--color-slate-700);
}

.btn-outline:hover {
	background: var(--color-slate-100);
}

.btn-danger {
	background: var(--color-danger);
	color: var(--color-white);
}

.btn-danger:hover {
	opacity: 0.9;
}

.btn-sm {
	padding: var(--spacing-1) var(--spacing-3);
	font-size: var(--font-size-xs);
}

.btn-lg {
	padding: var(--spacing-3) var(--spacing-6);
	font-size: var(--font-size-base);
}

.btn-full {
	width: 100%;
}

.btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius);
	border: none;
	background: transparent;
	color: var(--color-slate-600);
	cursor: pointer;
	transition: all var(--transition);
}

.btn-icon:hover {
	background: var(--color-slate-100);
	color: var(--color-slate-800);
}

.btn-icon.btn-danger:hover {
	background: var(--color-danger-light);
	color: var(--color-danger);
}

/* Page Header */
.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.page-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--color-slate-900);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--color-slate-500);
}

.empty-state i {
	font-size: 3rem;
	opacity: 0.5;
	margin-bottom: 1rem;
}

.empty-state p {
	margin-bottom: 1rem;
}

/* Menu Item */
.menu-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem;
	border: none;
	background: white;
	border-radius: var(--radius-md);
	color: var(--color-slate-900);
	font-size: 0.875rem;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	transition: background 0.2s;
}

.menu-item:hover {
	background: var(--color-slate-50);
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
	margin-bottom: var(--spacing-4);
}

.form-label {
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 500;
	color: var(--color-slate-700);
	margin-bottom: var(--spacing-1);
}

.form-input {
	width: 100%;
	padding: var(--spacing-2) var(--spacing-3);
	font-size: var(--font-size-sm);
	border: 1px solid var(--color-slate-300);
	border-radius: var(--radius);
	background: var(--color-white);
	transition:
		border-color var(--transition),
		box-shadow var(--transition);
	font-family: inherit;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder {
	color: var(--color-slate-400);
}

.form-input-file {
	padding: var(--spacing-2);
	font-size: var(--font-size-xs);
}

textarea.form-input {
	resize: vertical;
	min-height: 80px;
}

.form-checkbox,
.form-radio {
	width: 1rem;
	height: 1rem;
	accent-color: var(--color-primary);
}

.form-section {
	padding: var(--spacing-4);
	border: 1px solid var(--color-slate-200);
	border-radius: var(--radius-lg);
	margin-bottom: var(--spacing-4);
	background: var(--color-slate-50);
}

.form-section-title {
	font-size: var(--font-size-sm);
	font-weight: 600;
	margin-bottom: var(--spacing-3);
	display: flex;
	align-items: center;
	gap: var(--spacing-2);
}

/* ==========================================
   LIST ITEMS
   ========================================== */

.list-item {
	padding: var(--spacing-3) var(--spacing-4);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--color-slate-100);
	cursor: pointer;
	transition: background var(--transition);
}

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

.list-item:hover {
	background: var(--color-slate-50);
}

.list-item-content {
	display: flex;
	align-items: center;
	gap: var(--spacing-3);
}

.list-item-avatar {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--radius-full);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: var(--font-size-sm);
}

.list-item-title {
	font-weight: 500;
	font-size: var(--font-size-sm);
	margin: 0;
}

.list-item-subtitle {
	font-size: var(--font-size-xs);
	color: var(--color-slate-500);
	margin: 0;
}

.list-item-actions {
	display: flex;
	align-items: center;
	gap: var(--spacing-2);
}

/* ==========================================
   BADGES
   ========================================== */
.badge {
	display: inline-flex;
	align-items: center;
	padding: var(--spacing-1) var(--spacing-2);
	font-size: var(--font-size-xs);
	font-weight: 500;
	border-radius: var(--radius-full);
}

.badge-primary {
	background: var(--color-primary-light);
	color: var(--color-primary);
}

.badge-secondary {
	background: var(--color-secondary-light);
	color: var(--color-secondary);
}

.badge-accent {
	background: var(--color-accent-light);
	color: var(--color-accent);
}

.badge-info {
	background: var(--color-info-light);
	color: var(--color-info);
}

.badge-success {
	background: var(--color-success-light);
	color: var(--color-success);
}

.badge-danger {
	background: var(--color-danger-light);
	color: var(--color-danger);
}

/* ==========================================
   STATS GRID
   ========================================== */
.grid-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-3);
}

@media (min-width: 768px) {
	.grid-stats {
		grid-template-columns: repeat(4, 1fr);
	}
}

.grid-stat {
	padding: var(--spacing-4);
	border-radius: var(--radius-lg);
	text-align: center;
	cursor: pointer;
	transition:
		transform var(--transition),
		box-shadow var(--transition);
}

.grid-stat:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.grid-stat-icon {
	font-size: 1.5rem;
	margin-bottom: var(--spacing-2);
}

.grid-stat-value {
	font-size: var(--font-size-2xl);
	font-weight: 700;
}

.grid-stat-label {
	font-size: var(--font-size-xs);
	color: var(--color-slate-600);
}

/* ==========================================
   MODAL
   ========================================== */
.modal-container {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.modal-content {
	position: relative;
	background: var(--color-white);
	border-radius: var(--radius-xl) var(--radius-xl) 0 0;
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	overflow-y: auto;
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
	}
	to {
		transform: translateY(0);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	border-bottom: 1px solid var(--color-slate-200);
}

.modal-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
}

.modal-close {
	width: 32px;
	height: 32px;
	border: none;
	background: var(--color-slate-100);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.modal-body {
	padding: var(--spacing-4);
	overflow-y: auto;
	flex: 1;
}

.modal-footer {
	padding: var(--spacing-4);
	border-top: 1px solid var(--color-slate-200);
	display: flex;
	justify-content: flex-end;
	gap: var(--spacing-3);
}

/* ==========================================
   TOAST
   ========================================== */
.toast-container {
	position: fixed;
	top: calc(var(--header-height) + 1rem);
	left: 1rem;
	right: 1rem;
	z-index: 400;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.toast {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--color-slate-800);
	color: white;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	animation: fadeIn 0.3s ease;
	transition:
		opacity 0.3s,
		transform 0.3s;
}

.toast.success {
	background: var(--color-success);
}

.toast.warning {
	background: var(--color-warning);
	color: var(--color-slate-900);
}

.toast.error {
	background: var(--color-danger);
}

.toast.info {
	background: var(--color-primary);
}

/* Install Prompt */
.install-prompt {
	position: fixed;
	bottom: calc(var(--nav-height) + var(--safe-bottom) + 1rem);
	left: 1rem;
	right: 1rem;
	z-index: 150;
}

.install-prompt-content {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: var(--color-white);
	border: 1px solid var(--color-slate-200);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.install-icon {
	width: 48px;
	height: 48px;
	background: var(--color-primary-light);
	color: var(--color-primary);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.install-text {
	flex: 1;
}

.install-text h3 {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0;
}

.install-text p {
	font-size: 0.75rem;
	color: var(--color-slate-500);
	margin: 0;
}

.install-actions {
	display: flex;
	gap: 0.5rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
.anim-fade {
	animation: fadeIn var(--transition-slow) ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.anim-fade-out {
	opacity: 0;
	transition: opacity 100ms ease;
}

/* ==========================================
   INFO BLOCKS
   ========================================== */
.info-block {
	padding: var(--spacing-3);
	background: var(--color-slate-50);
	border-radius: var(--radius);
}

.info-label {
	font-size: var(--font-size-xs);
	color: var(--color-slate-500);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--spacing-1);
	display: block;
}

.info-value {
	font-weight: 500;
	display: block;
}

/* Auth Screen — handled by shared auth-theme.css */

/* ==========================================
   REPORT CARD STYLES
   ========================================== */
.report-card {
	background: var(--color-white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	max-width: 800px;
	margin: 0 auto;
	position: relative;
}

.report-accent {
	height: 6px;
	background: linear-gradient(
		90deg,
		var(--color-primary),
		var(--color-secondary),
		var(--color-accent)
	);
}

.report-header {
	padding: var(--spacing-6);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 2px solid var(--color-slate-200);
}

.report-school {
	display: flex;
	align-items: center;
	gap: var(--spacing-4);
}

.report-logo {
	width: 4rem;
	height: 4rem;
	object-fit: contain;
}

.report-logo-placeholder {
	width: 4rem;
	height: 4rem;
	background: var(--color-primary-light);
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.report-school-name {
	font-size: var(--font-size-xl);
	font-weight: 700;
	color: var(--color-primary);
	margin: 0;
}

.report-school-slogan {
	font-size: var(--font-size-sm);
	color: var(--color-slate-500);
	font-style: italic;
	margin: 0;
}

.report-title {
	text-align: right;
}

.report-title h2 {
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--color-primary);
	margin: 0;
}

.report-title p {
	font-size: var(--font-size-sm);
	color: var(--color-slate-500);
	margin: 0;
}

.report-student-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-4);
	padding: var(--spacing-4) var(--spacing-6);
	background: var(--color-slate-50);
}

@media (min-width: 640px) {
	.report-student-info {
		grid-template-columns: repeat(4, 1fr);
	}
}

.report-table {
	width: 100%;
	border-collapse: collapse;
}

.report-table th,
.report-table td {
	padding: var(--spacing-3) var(--spacing-4);
	text-align: left;
	border-bottom: 1px solid var(--color-slate-200);
}

.report-table th {
	background: var(--color-primary);
	color: var(--color-white);
	font-size: var(--font-size-sm);
	font-weight: 600;
}

.report-table tfoot td {
	background: var(--color-slate-100);
	font-weight: 600;
}

.report-signatures {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-8);
	padding: var(--spacing-8) var(--spacing-6);
}

.signature-label {
	font-size: var(--font-size-sm);
	font-weight: 600;
	color: var(--color-slate-700);
	margin-bottom: var(--spacing-8);
}

.signature-line {
	border-bottom: 1px solid var(--color-slate-400);
	margin-bottom: var(--spacing-2);
}

.signature-caption {
	font-size: var(--font-size-xs);
	color: var(--color-slate-500);
}

.report-actions {
	padding: var(--spacing-4) var(--spacing-6);
	text-align: center;
	background: var(--color-slate-50);
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
	body {
		background: white;
	}

	.no-print {
		display: none !important;
	}

	.app-header,
	.app-nav,
	.header,
	.bottom-nav,
	.side-menu {
		display: none !important;
	}

	.report-card {
		box-shadow: none;
		max-width: 100%;
	}
}

.text-red-500 {
	color: #ef4444;
}

.ml-auto {
	margin-left: auto;
}

.border-t {
	border-top: 1px solid var(--color-slate-200);
}

.pt-4 {
	padding-top: var(--spacing-4);
}

/* Offline badge */
.offline-badge {
	position: fixed;
	bottom: calc(var(--nav-height) + var(--safe-bottom) + 0.5rem);
	right: 0.5rem;
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	z-index: 150;
	transition:
		opacity 0.3s,
		transform 0.3s;
}

.badge--offline {
	background: var(--color-warning);
	color: var(--color-slate-900);
}

.badge--ready {
	background: var(--color-success);
	color: white;
}

.badge--hidden {
	opacity: 0;
	pointer-events: none;
}

/* Syncing animation */
.syncing {
	animation: spin 1s linear infinite;
}

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--color-slate-100);
}

::-webkit-scrollbar-thumb {
	background: var(--color-slate-300);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-slate-400);
}

/* Hide scrollbar utility */
.scrollbar-hide::-webkit-scrollbar {
	display: none;
}

.scrollbar-hide {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
