/**
 * Mafar Core Public Styles
 * Frontend styling with Bootstrap 5.3 and modern design
 */

/* Bootstrap 5.3 CSS Framework Import */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* Modern Public Variables - Figma Design System */
:root {
	/* Primary Brand Colors - Bright Blue (Main) */
	--mafar-primary: #009FF0;
	--mafar-primary-50: #E6F7FF;
	--mafar-primary-100: #B3E5FF;
	--mafar-primary-200: #80D3FF;
	--mafar-primary-500: #009FF0;
	--mafar-primary-600: #0088D4;
	--mafar-primary-700: #0070B8;
	--mafar-primary-900: #005A93;

	/* Bright Blue - Active states and buttons (alias to primary) */
	--mafar-bright-blue: #009FF0;
	--mafar-bright-blue-50: #E6F7FF;
	--mafar-bright-blue-100: #B3E5FF;
	--mafar-bright-blue-500: #009FF0;
	--mafar-bright-blue-600: #0088D4;
	--mafar-bright-blue-700: #0070B8;

	/* Secondary Colors - Navy Blue (Dark backgrounds) */
	--mafar-secondary: #1D2B71;
	--mafar-secondary-50: #EEF0F8;
	--mafar-secondary-100: #D5DBF0;
	--mafar-secondary-200: #ABB7E1;
	--mafar-secondary-300: #8193D2;
	--mafar-secondary-400: #1D2B71;
	--mafar-secondary-500: #2A3A8F;
	--mafar-secondary-600: #1D2B71;
	--mafar-secondary-700: #171F54;
	--mafar-secondary-800: #11183B;
	--mafar-secondary-900: #0D1232;

	/* Soft Teal - Accent Colors */
	--mafar-accent: #10D6C3;
	--mafar-accent-50: #E7FAF8;
	--mafar-accent-100: #C2F4EE;
	--mafar-accent-500: #10D6C3;
	--mafar-accent-600: #0DBAA9;
	--mafar-accent-700: #0A9D8F;

	/* Success Colors */
	--mafar-success: #059669;
	--mafar-success-50: #ECFDF5;
	--mafar-success-100: #D1FAE5;
	--mafar-success-500: #10B981;
	--mafar-success-600: #059669;

	/* Warning Colors */
	--mafar-warning: #D97706;
	--mafar-warning-50: #FFFBEB;
	--mafar-warning-100: #FEF3C7;
	--mafar-warning-500: #F59E0B;
	--mafar-warning-600: #D97706;

	/* Error Colors */
	--mafar-error: #DC2626;
	--mafar-error-50: #FEF2F2;
	--mafar-error-100: #FEE2E2;
	--mafar-error-500: #EF4444;
	--mafar-error-600: #DC2626;

	/* Neutral Colors */
	--mafar-gray-50: #F9FAFB;
	--mafar-gray-100: #F3F4F6;
	--mafar-gray-200: #E5E7EB;
	--mafar-gray-300: #D1D5DB;
	--mafar-gray-400: #9CA3AF;
	--mafar-gray-500: #6B7280;
	--mafar-gray-600: #4B5563;
	--mafar-gray-700: #374151;
	--mafar-gray-800: #1F2937;
	--mafar-gray-900: #111827;

	/* Background Colors */
	--mafar-background: #FAFBFC;
	--mafar-surface: #FFFFFF;
	--mafar-surface-elevated: #FFFFFF;

	/* Text Colors */
	--mafar-text-primary: var(--mafar-secondary-900);
	--mafar-text-secondary: var(--mafar-secondary-600);
	--mafar-text-muted: var(--mafar-secondary-400);
	--mafar-text-inverse: #FFFFFF;

	/* Layout */
	--mafar-nav-height: 72px;
	--mafar-border-radius-sm: 6px;
	--mafar-border-radius: 12px;
	--mafar-border-radius-lg: 16px;
	--mafar-border-radius-xl: 24px;

	/* Shadows */
	--mafar-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--mafar-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	--mafar-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	--mafar-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
	--mafar-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	--mafar-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

	/* Transitions */
	--mafar-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--mafar-transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--mafar-transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

	/* Legacy Bootstrap Variables for Backward Compatibility */
	--mafar-light: #f8f9fa;
	--mafar-dark: #343a40;
	--mafar-gradient: linear-gradient(135deg, #009FF0 0%, #10D6C3 100%);
}

/* Public Body Styles */
.public-body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--mafar-dark);
	line-height: 1.6;
	background-color: #ffffff;
}

/* Public Header */
.public-header {
	background: var(--mafar-gradient);
	color: white;
	padding: 2rem 0;
	position: relative;
	overflow: hidden;
}

.public-header::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
	opacity: 0.3;
}

.public-header h1,
.public-header h2 {
	color: white;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.public-header .lead {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.25rem;
	font-weight: 300;
}

/* Public Navigation */
.public-nav {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	box-shadow: var(--mafar-shadow);
	border-bottom: 1px solid rgba(0, 124, 186, 0.1);
}

.public-nav .navbar-brand {
	font-weight: 700;
	color: var(--mafar-primary) !important;
	font-size: 1.5rem;
}

.public-nav .nav-link {
	color: var(--mafar-dark) !important;
	font-weight: 500;
	transition: color 0.3s ease;
	position: relative;
}

.public-nav .nav-link:hover {
	color: var(--mafar-primary) !important;
}

.public-nav .nav-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 0;
	height: 2px;
	background: var(--mafar-primary);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.public-nav .nav-link:hover::after {
	width: 100%;
}

/* Public Hero Section */
.public-hero {
	background: var(--mafar-gradient);
	color: white;
	padding: 4rem 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.public-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
	background-size: 50px 50px;
	animation: float 20s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	33% { transform: translate(30px, -30px) rotate(120deg); }
	66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.public-hero h1 {
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.public-hero .lead {
	font-size: 1.5rem;
	font-weight: 300;
	opacity: 0.9;
	margin-bottom: 2rem;
}

/* Public Cards */
.public-card {
	background: white;
	border-radius: var(--mafar-border-radius);
	box-shadow: var(--mafar-shadow);
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 124, 186, 0.1);
	overflow: hidden;
}

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

.public-card-header {
	background: var(--mafar-gradient);
	color: white;
	padding: 1.5rem;
	border-bottom: none;
}

.public-card-header h3,
.public-card-header h4,
.public-card-header h5 {
	color: white;
	font-weight: 600;
	margin: 0;
}

.public-card-body {
	padding: 1.5rem;
}

.public-card-footer {
	background: var(--mafar-light);
	border-top: 1px solid rgba(0, 124, 186, 0.1);
	padding: 1rem 1.5rem;
}

/* Public Buttons */
.btn-public-primary {
	background: var(--mafar-primary);
	border-color: var(--mafar-primary);
	color: white;
	padding: 0.75rem 2rem;
	border-radius: var(--mafar-border-radius);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.btn-public-primary::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.5s ease;
}

.btn-public-primary:hover::before {
	left: 100%;
}

.btn-public-primary:hover {
	background: #005a87;
	border-color: #005a87;
	color: white;
	transform: translateY(-2px);
	box-shadow: var(--mafar-shadow-lg);
}

.btn-public-outline {
	background: transparent;
	border-color: var(--mafar-primary);
	color: var(--mafar-primary);
	padding: 0.75rem 2rem;
	border-radius: var(--mafar-border-radius);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.3s ease;
}

.btn-public-outline:hover {
	background: var(--mafar-primary);
	border-color: var(--mafar-primary);
	color: white;
	transform: translateY(-2px);
	box-shadow: var(--mafar-shadow-lg);
}

/* Public Forms */
.public-form {
	background: white;
	padding: 2rem;
	border-radius: var(--mafar-border-radius-lg);
	box-shadow: var(--mafar-shadow);
	border: 1px solid rgba(0, 124, 186, 0.1);
}

.public-form-group {
	margin-bottom: 1.5rem;
}

.public-form-label {
	font-weight: 600;
	color: var(--mafar-dark);
	margin-bottom: 0.5rem;
	display: block;
}

.public-form-control {
	border: 2px solid #e9ecef;
	border-radius: var(--mafar-border-radius);
	padding: 0.75rem 1rem;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: #ffffff;
}

.public-form-control:focus {
	border-color: var(--mafar-primary);
	box-shadow: 0 0 0 0.2rem rgba(0, 124, 186, 0.25);
	outline: none;
	background: #ffffff;
}

.public-form-control.is-invalid {
	border-color: var(--mafar-danger);
}

.public-form-control.is-invalid:focus {
	border-color: var(--mafar-danger);
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Public Alerts */
.public-alert {
	padding: 1rem 1.5rem;
	border-radius: var(--mafar-border-radius);
	border: 1px solid transparent;
	margin-bottom: 1rem;
	position: relative;
	overflow: hidden;
}

.public-alert::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
}

.public-alert-success {
	background-color: rgba(40, 167, 69, 0.1);
	border-color: var(--mafar-success);
	color: var(--mafar-success);
}

.public-alert-success::before {
	background: var(--mafar-success);
}

.public-alert-danger {
	background-color: rgba(220, 53, 69, 0.1);
	border-color: var(--mafar-danger);
	color: var(--mafar-danger);
}

.public-alert-danger::before {
	background: var(--mafar-danger);
}

.public-alert-warning {
	background-color: rgba(255, 193, 7, 0.1);
	border-color: var(--mafar-warning);
	color: #856404;
}

.public-alert-warning::before {
	background: var(--mafar-warning);
}

.public-alert-info {
	background-color: rgba(23, 162, 184, 0.1);
	border-color: var(--mafar-info);
	color: var(--mafar-info);
}

.public-alert-info::before {
	background: var(--mafar-info);
}

/* Public Badges */
.public-badge {
	padding: 0.5rem 1rem;
	border-radius: 50px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	display: inline-block;
}

.public-badge-primary {
	background: var(--mafar-primary);
	color: white;
}

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

.public-badge-warning {
	background: var(--mafar-warning);
	color: var(--mafar-dark);
}

.public-badge-danger {
	background: var(--mafar-danger);
	color: white;
}

.public-badge-info {
	background: var(--mafar-info);
	color: white;
}

/* Public Stats Section */
.public-stats {
	background: var(--mafar-light);
	padding: 3rem 0;
}

.public-stat-item {
	text-align: center;
	padding: 1.5rem;
}

.public-stat-item .stat-number {
	font-size: 3rem;
	font-weight: 700;
	color: var(--mafar-primary);
	display: block;
	margin-bottom: 0.5rem;
}

.public-stat-item .stat-label {
	font-size: 1rem;
	color: var(--mafar-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

/* Public Features Section */
.public-features {
	padding: 4rem 0;
}

.public-feature-card {
	text-align: center;
	padding: 2rem;
	border-radius: var(--mafar-border-radius);
	transition: all 0.3s ease;
	height: 100%;
}

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

.public-feature-card .feature-icon {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	background: var(--mafar-gradient);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	font-size: 1.5rem;
}

.public-feature-card h4 {
	color: var(--mafar-dark);
	font-weight: 600;
	margin-bottom: 1rem;
}

.public-feature-card p {
	color: var(--mafar-secondary);
	line-height: 1.6;
}

/* Public Footer */
.public-footer {
	background: var(--mafar-dark);
	color: white;
	padding: 3rem 0 1rem;
	margin-top: 4rem;
}

.public-footer a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	transition: color 0.3s ease;
}

.public-footer a:hover {
	color: white;
}

.public-footer .footer-brand {
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--mafar-primary) !important;
	margin-bottom: 1rem;
	display: block;
}

/* Public Loading States */
.public-loading {
	display: inline-block;
	width: 1.5rem;
	height: 1.5rem;
	border: 3px solid rgba(0, 124, 186, 0.3);
	border-radius: 50%;
	border-top-color: var(--mafar-primary);
	animation: public-spin 1s ease-in-out infinite;
}

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

/* Public Responsive Design */
@media (max-width: 768px) {
	.public-hero h1 {
	font-size: 2rem;
	}

	.public-hero .lead {
	font-size: 1.25rem;
	}

	.public-header {
	padding: 1rem 0;
	}

	.public-nav .navbar-brand {
	font-size: 1.25rem;
	}

	.public-form {
	padding: 1.5rem;
	}

	.public-stats {
	padding: 2rem 0;
	}

	.public-features {
	padding: 2rem 0;
	}

	.public-feature-card {
	padding: 1.5rem;
	margin-bottom: 2rem;
	}
}

/* Public Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.public-body {
	background-color: #1a1a1a;
	color: #e2e8f0;
	}

	.public-card {
	background: #2d3748;
	border-color: #4a5568;
	}

	.public-card-body {
	color: #e2e8f0;
	}

	.public-form {
	background: #2d3748;
	border-color: #4a5568;
	}

	.public-form-label {
	color: #e2e8f0;
	}

	.public-form-control {
	background: #1a1a1a;
	border-color: #4a5568;
	color: #e2e8f0;
	}

	.public-form-control:focus {
	background: #1a1a1a;
	color: #e2e8f0;
	}

	.public-feature-card h4 {
	color: #e2e8f0;
	}

	.public-feature-card p {
	color: #a0aec0;
	}
}

/* Public Print Styles */
@media print {
	.public-nav,
	.public-footer {
	display: none !important;
	}

	.public-card {
	box-shadow: none !important;
	border: 1px solid #ccc !important;
	}

	.btn-public-primary {
	border: 1px solid #000 !important;
	background: transparent !important;
	color: #000 !important;
	}
}

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

/* Public Focus Styles for Accessibility */
.public-form-control:focus,
.btn-public-primary:focus,
.btn-public-outline:focus,
.public-nav .nav-link:focus {
	outline: 2px solid var(--mafar-primary);
	outline-offset: 2px;
}

/* Public High Contrast Mode */
@media (prefers-contrast: high) {
	.public-card {
	border-width: 2px;
	}

	.btn-public-primary,
	.btn-public-outline {
	border-width: 2px;
	}
}

/* ============================================
	NEW REACT-STYLE AUTHENTICATION COMPONENTS
	============================================ */

/* Modern Auth Container */
.mafar-auth-container {
	min-height: 100vh;
	background: linear-gradient(135deg, var(--mafar-primary) 0%, var(--mafar-accent) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.mafar-auth-card {
	background: white;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 25px 70px rgba(37, 99, 235, 0.2);
	width: 100%;
	max-width: 420px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.mafar-auth-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
	pointer-events: none;
}

.mafar-auth-header {
	margin-bottom: 32px;
}

.mafar-auth-header h2 {
	margin: 0 0 8px 0;
	color: var(--mafar-primary);
	font-size: 28px;
	font-weight: bold;
	letter-spacing: -0.025em;
}

.mafar-auth-header p {
	margin: 0;
	color: var(--mafar-text-muted);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.5px;
}

/* Modern Form Styles */
.mafar-auth-form {
	text-align: left;
}

.mafar-form-group {
	margin-bottom: 24px;
}

.mafar-form-label {
	display: block;
	margin-bottom: 8px;
	color: var(--mafar-text-primary);
	font-weight: 500;
	font-size: 14px;
	text-align: left;
}

.mafar-form-control {
	width: 100%;
	padding: 16px;
	border: 2px solid var(--mafar-secondary-200);
	border-radius: 12px;
	font-size: 16px;
	transition: var(--mafar-transition-fast);
	background: var(--mafar-surface);
	color: var(--mafar-text-primary);
	font-weight: var(--mafar-font-weight-normal);
	font-family: inherit;
}

.mafar-form-control:focus {
	outline: none;
	border-color: var(--mafar-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mafar-form-control::placeholder {
	color: var(--mafar-text-muted);
}

/* Phone Input with Country Code */
.mafar-phone-input {
	display: flex;
	align-items: center;
	border: 2px solid var(--mafar-secondary-200);
	border-radius: 12px;
	padding: 16px;
	background: var(--mafar-surface);
	transition: var(--mafar-transition-fast);
}

.mafar-phone-input:focus-within {
	border-color: var(--mafar-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mafar-phone-input .country-code {
	font-size: 18px;
	margin-right: 8px;
	color: var(--mafar-text-primary);
	font-weight: 500;
}

.mafar-phone-input .flag {
	font-size: 18px;
	margin-right: 8px;
}

.mafar-phone-input input {
	border: none;
	outline: none;
	background: transparent;
	flex: 1;
	font-size: 16px;
	color: var(--mafar-text-primary);
}

.mafar-phone-input input::placeholder {
	color: var(--mafar-text-muted);
}

/* OTP Input Styles */
.mafar-otp-container {
	margin-bottom: 24px;
}

.mafar-otp-label {
	display: block;
	margin-bottom: 12px;
	color: var(--mafar-text-primary);
	font-weight: 500;
	text-align: center;
	font-size: 16px;
}

.mafar-otp-inputs {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 16px;
}

.mafar-otp-input {
	width: 60px;
	height: 60px;
	text-align: center;
	font-size: 24px;
	font-weight: bold;
	border: 2px solid var(--mafar-secondary-200);
	border-radius: 12px;
	background: var(--mafar-surface);
	color: var(--mafar-text-primary);
	outline: none;
	transition: var(--mafar-transition-fast);
}

.mafar-otp-input:focus {
	border-color: var(--mafar-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mafar-otp-info {
	text-align: center;
	margin-bottom: 16px;
}

.mafar-otp-info p {
	font-size: 14px;
	color: var(--mafar-text-muted);
	margin: 0 0 8px 0;
	font-weight: 500;
}

.mafar-resend-btn {
	background: transparent;
	border: none;
	color: var(--mafar-primary);
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	font-weight: 500;
	transition: var(--mafar-transition-fast);
	padding: 0;
}

.mafar-resend-btn:hover:not(:disabled) {
	color: var(--mafar-primary-700);
}

.mafar-resend-btn:disabled {
	color: var(--mafar-text-muted);
	cursor: not-allowed;
}

/* Modern Buttons */
.mafar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 24px;
	border: none;
	border-radius: 12px;
	font-weight: 600;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
	transition: var(--mafar-transition-fast);
	min-height: 48px;
	position: relative;
	overflow: hidden;
	box-shadow: var(--mafar-shadow-sm);
	font-family: inherit;
}

.mafar-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.5s;
}

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

.mafar-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: var(--mafar-shadow-md);
}

.mafar-btn:active {
	transform: translateY(0);
}

.mafar-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.mafar-btn-primary {
	background: var(--mafar-primary);
	color: var(--mafar-text-inverse);
}

.mafar-btn-primary:hover:not(:disabled) {
	background: var(--mafar-primary-700);
}

.mafar-btn-secondary {
	background: var(--mafar-surface);
	color: var(--mafar-text-primary);
	border: 1px solid var(--mafar-secondary-300);
}

.mafar-btn-secondary:hover:not(:disabled) {
	background: var(--mafar-gray-50);
	border-color: var(--mafar-secondary-400);
}

.mafar-btn-full {
	width: 100%;
	margin-bottom: 16px;
}

/* Auth Links */
.mafar-auth-links {
	padding-top: 24px;
	border-top: 1px solid var(--mafar-secondary-200);
	text-align: center;
}

.mafar-auth-link {
	color: var(--mafar-text-muted);
	text-decoration: underline;
	font-size: 14px;
	margin: 0 12px;
	transition: var(--mafar-transition-fast);
}

.mafar-auth-link:hover {
	color: var(--mafar-primary);
}

/* Auth Messages */
.mafar-auth-message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	margin-top: 16px;
	display: none;
}

.mafar-auth-message--success {
	background: var(--mafar-success-50);
	color: var(--mafar-success-700);
	border: 1px solid var(--mafar-success-200);
}

.mafar-auth-message--error {
	background: var(--mafar-error-50);
	color: var(--mafar-error-700);
	border: 1px solid var(--mafar-error-200);
}

/* Password Toggle */
.mafar-password-wrapper {
	position: relative;
}

.mafar-password-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	color: var(--mafar-text-muted);
	transition: var(--mafar-transition-fast);
}

.mafar-password-toggle:hover {
	color: var(--mafar-text-primary);
}

/* Terms Text */
.mafar-terms-text {
	font-size: 12px;
	color: var(--mafar-text-muted);
	line-height: 1.5;
	margin-bottom: 24px;
}

.mafar-terms-text button {
	background: none;
	border: none;
	color: var(--mafar-primary);
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
	font-size: 12px;
}

/* Role Selection Styles */
.mafar-role-selector {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
	max-width: 1000px;
	margin: 0 auto;
}

.mafar-role-card {
	padding: 32px;
	border: 2px solid var(--mafar-secondary-200);
	border-radius: 24px;
	text-align: center;
	cursor: pointer;
	transition: var(--mafar-transition-base);
	background: var(--mafar-surface);
	position: relative;
	box-shadow: var(--mafar-shadow-sm);
}

.mafar-role-card:hover {
	border-color: var(--mafar-primary-300);
	transform: translateY(-6px);
	box-shadow: var(--mafar-shadow-xl);
}

.mafar-role-card h3 {
	font-size: 20px;
	font-weight: bold;
	margin: 16px 0 8px 0;
	color: var(--mafar-text-primary);
}

.mafar-role-card p {
	font-size: 14px;
	color: var(--mafar-text-secondary);
	margin: 0;
}

/* Loading Spinner */
.mafar-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: mafar-spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
	.mafar-auth-container {
	padding: 16px;
	}

	.mafar-auth-card {
	padding: 24px;
	border-radius: 16px;
	}

	.mafar-auth-header h2 {
	font-size: 24px;
	}

	.mafar-otp-inputs {
	gap: 8px;
	}

	.mafar-otp-input {
	width: 50px;
	height: 50px;
	font-size: 20px;
	}

	.mafar-role-selector {
	grid-template-columns: 1fr;
	gap: 16px;
	}

	.mafar-role-card {
	padding: 24px;
	}
}

@media (max-width: 480px) {
	.mafar-auth-card {
	padding: 20px;
	}

	.mafar-btn {
	padding: 14px 20px;
	font-size: 15px;
	}
}

/* ============================================
	COMPREHENSIVE REACT-STYLE COMPONENT LIBRARY
	============================================ */

/* Dashboard Layout Components */
.dashboard-page {
	padding: var(--space-8) var(--space-6);
	max-width: 1400px;
	margin: 0 auto;
}

.dashboard-header {
	margin-bottom: var(--space-8);
}

.dashboard-header h1 {
	color: var(--mafar-text-primary);
	margin-bottom: var(--space-2);
	font-size: var(--font-size-4xl);
	font-weight: var(--font-weight-bold);
	letter-spacing: -0.025em;
}

.dashboard-header p {
	color: var(--mafar-text-secondary);
	font-size: var(--font-size-lg);
	font-weight: var(--font-weight-medium);
	margin: 0;
}

/* Enhanced Dashboard Grid */
.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-6);
	margin-bottom: var(--space-8);
}

/* Enhanced Stat Cards */
.stat-card {
	background: var(--mafar-surface);
	border-radius: var(--border-radius-lg);
	padding: var(--space-6);
	text-align: center;
	transition: var(--transition-base);
	border: 1px solid var(--mafar-secondary-100);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(90deg, var(--mafar-primary-500), var(--mafar-accent-500));
}

.stat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: var(--mafar-primary-200);
}

.stat-value {
	font-size: var(--font-size-4xl);
	font-weight: var(--font-weight-bold);
	color: var(--mafar-primary-600);
	margin: 0 0 var(--space-2) 0;
	line-height: var(--line-height-tight);
}

.stat-label {
	color: var(--mafar-text-secondary);
	margin: 0;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Chart Components */
.chart-container {
	background: var(--mafar-surface);
	border-radius: var(--border-radius-lg);
	padding: var(--space-6);
	margin-bottom: var(--space-6);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--mafar-secondary-100);
}

.chart-container h3 {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	color: var(--mafar-text-primary);
	margin-bottom: var(--space-6);
}

.bar-chart {
	display: flex;
	align-items: end;
	gap: var(--space-2);
	height: 240px;
	padding: var(--space-6) 0;
}

.bar {
	flex: 1;
	background: linear-gradient(to top, var(--mafar-primary-600), var(--mafar-accent-500));
	border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
	min-height: 20px;
	position: relative;
	display: flex;
	align-items: end;
	justify-content: center;
	color: var(--mafar-text-inverse);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
	padding: var(--space-1);
	transition: var(--transition-base);
}

.bar:hover {
	transform: scaleY(1.05);
	filter: brightness(1.1);
}

/* Points Display Component */
.points-display {
	background: linear-gradient(135deg, var(--mafar-primary-600), var(--mafar-accent-500));
	color: var(--mafar-text-inverse);
	text-align: center;
	padding: var(--space-8);
	border-radius: var(--border-radius-xl);
	margin-bottom: var(--space-6);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

.points-display::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
	animation: sparkle 4s linear infinite;
}

@keyframes sparkle {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.points-value {
	font-size: var(--font-size-4xl);
	font-weight: var(--font-weight-bold);
	margin: 0;
	position: relative;
	z-index: 1;
	line-height: var(--line-height-tight);
}

/* Navigation Components */
.navbar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--mafar-surface);
	border-top: 1px solid var(--mafar-secondary-200);
	display: flex;
	justify-content: space-around;
	align-items: center;
	height: var(--mafar-nav-height);
	z-index: 100;
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(20px);
}

.nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: var(--mafar-text-muted);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--border-radius);
	transition: var(--transition-fast);
	min-width: 60px;
	cursor: pointer;
	position: relative;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.nav-item.active {
	color: var(--mafar-primary-600);
	background: var(--mafar-primary-50);
}

.nav-item.active::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 50%;
	transform: translateX(-50%);
	width: 24px;
	height: 3px;
	background: var(--mafar-primary-600);
	border-radius: 0 0 3px 3px;
}

.nav-icon {
	width: 24px;
	height: 24px;
	margin-bottom: var(--space-1);
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

/* Enhanced Sidebar */
.sidebar {
	width: var(--sidebar-width);
	background: var(--mafar-surface);
	border-right: 1px solid var(--mafar-secondary-200);
	padding: 0;
	overflow-y: auto;
	position: relative;
	box-shadow: var(--shadow-sm);
}

.sidebar-header {
	padding: var(--space-6) var(--space-6) var(--space-5);
	border-bottom: 1px solid var(--mafar-secondary-100);
	background: linear-gradient(135deg, var(--mafar-primary-50), var(--mafar-accent-50));
}

.sidebar-header h2 {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	color: var(--mafar-primary-700);
	margin: 0;
	letter-spacing: -0.025em;
}

.sidebar-header p {
	font-size: var(--font-size-sm);
	color: var(--mafar-text-secondary);
	margin: var(--space-1) 0 0 0;
	font-weight: var(--font-weight-medium);
}

.sidebar-nav {
	padding: var(--space-4) 0;
}

.sidebar-item {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) var(--space-6);
	margin: 0 var(--space-4) var(--space-1) var(--space-4);
	border-radius: var(--border-radius);
	cursor: pointer;
	transition: var(--transition-fast);
	color: var(--mafar-text-secondary);
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-sm);
	position: relative;
}

.sidebar-item:hover {
	background: var(--mafar-primary-50);
	color: var(--mafar-primary-700);
	transform: translateX(2px);
}

.sidebar-item.active {
	background: var(--mafar-primary-600);
	color: var(--mafar-text-inverse);
	box-shadow: var(--shadow-md);
	font-weight: var(--font-weight-semibold);
}

.sidebar-item.active::before {
	content: '';
	position: absolute;
	left: -16px;
	top: 50%;
	transform: translateY(-50%);
	width: 4px;
	height: 24px;
	background: var(--mafar-accent-500);
	border-radius: 0 2px 2px 0;
}

/* Table Components */
.table {
	width: 100%;
	border-collapse: collapse;
	background: var(--mafar-surface);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--mafar-secondary-100);
}

.table th,
.table td {
	padding: var(--space-4);
	text-align: left;
	border-bottom: 1px solid var(--mafar-secondary-100);
	font-size: var(--font-size-sm);
}

.table th {
	background: var(--mafar-gray-50);
	font-weight: var(--font-weight-semibold);
	color: var(--mafar-text-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: var(--font-size-xs);
}

.table tr:hover {
	background: var(--mafar-gray-50);
}

/* User Row Components */
.user-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--space-4);
	background: var(--mafar-surface);
	border-radius: var(--border-radius);
	margin-bottom: var(--space-3);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--mafar-secondary-100);
	transition: var(--transition-base);
}

.user-row:hover {
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
	border-color: var(--mafar-primary-200);
}

.user-info h4 {
	margin: 0 0 var(--space-1) 0;
	color: var(--mafar-text-primary);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
}

.user-info p {
	margin: 0;
	font-size: var(--font-size-sm);
	color: var(--mafar-text-secondary);
}

.user-stats {
	display: flex;
	gap: var(--space-4);
	text-align: center;
}

.user-stat {
	font-size: var(--font-size-xs);
	color: var(--mafar-text-muted);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.user-stat-value {
	font-weight: var(--font-weight-bold);
	color: var(--mafar-text-primary);
	display: block;
	font-size: var(--font-size-base);
	margin-bottom: var(--space-1);
}

/* Modal Components */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	backdrop-filter: blur(8px);
	animation: fadeIn 0.3s ease;
	padding: var(--space-4);
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.modal-content {
	background: var(--mafar-surface);
	border-radius: var(--border-radius-xl);
	padding: var(--space-8);
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	animation: slideUp 0.3s ease;
	box-shadow: var(--shadow-2xl);
	border: 1px solid var(--mafar-secondary-200);
}

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

/* Notification/Toast Components */
.notification {
	position: fixed;
	top: var(--space-6);
	right: var(--space-6);
	background: var(--mafar-success-600);
	color: var(--mafar-text-inverse);
	padding: var(--space-4) var(--space-6);
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-xl);
	z-index: 1001;
	animation: slideInRight 0.3s ease;
	font-weight: var(--font-weight-medium);
	font-size: var(--font-size-sm);
	max-width: 400px;
}

@keyframes slideInRight {
	from { transform: translateX(100%); opacity: 0; }
	to { transform: translateX(0); opacity: 1; }
}

/* Badge Components */
.badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) var(--space-3);
	border-radius: var(--border-radius-sm);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	background: var(--mafar-primary-100);
	color: var(--mafar-primary-700);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Status Indicators */
.status-indicator {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--border-radius);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.status-indicator.active {
	background: var(--mafar-success-100);
	color: var(--mafar-success-700);
}

.status-indicator.pending {
	background: var(--mafar-warning-100);
	color: var(--mafar-warning-700);
}

.status-indicator.inactive {
	background: var(--mafar-error-100);
	color: var(--mafar-error-700);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
	.dashboard-page {
	padding: var(--space-4) var(--space-3);
	}

	.dashboard-header h1 {
	font-size: var(--font-size-3xl);
	}

	.dashboard-grid {
	grid-template-columns: 1fr;
	gap: var(--space-4);
	}

	.sidebar {
	width: 100%;
	height: auto;
	position: relative;
	}

	.navbar {
	height: 64px;
	}

	.nav-item {
	font-size: var(--font-size-xs);
	padding: var(--space-1) var(--space-2);
	}

	.modal-content {
	padding: var(--space-6);
	margin: var(--space-4);
	max-height: calc(100vh - 32px);
	}

	.chart-container {
	padding: var(--space-4);
	}

	.bar-chart {
	height: 200px;
	}

	.user-row {
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-3);
	}

	.user-stats {
	justify-content: space-around;
	}
}

@media (max-width: 480px) {
	.dashboard-page {
	padding: var(--space-3) var(--space-2);
	}

	.dashboard-header h1 {
	font-size: var(--font-size-2xl);
	}

	.stat-card {
	padding: var(--space-4);
	}

	.stat-value {
	font-size: var(--font-size-3xl);
	}

	.points-display {
	padding: var(--space-6);
	}

	.points-value {
	font-size: var(--font-size-3xl);
	}

	.modal-content {
		padding: var(--space-5);
		border-radius: var(--border-radius-lg);
	}
}

/* ============================================
	SKIP LINK ACCESSIBILITY
	============================================ */

/* Hide skip link visually but keep accessible to screen readers */
/* Using multiple techniques to ensure it's hidden */
/* CRITICAL: This must be in the plugin CSS to work on all themes */
/* Note: We don't use display:none or visibility:hidden as they remove from accessibility tree */
a.skip-link,
.skip-link,
body > a.skip-link,
body > .skip-link,
a[href="#main-content"].skip-link,
a.skip-link[href="#main-content"],
body > a[href="#main-content"].skip-link {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -1 !important;
}

/* Show skip link when focused (keyboard navigation) */
a.skip-link:focus,
.skip-link:focus,
body > a.skip-link:focus,
body > .skip-link:focus {
	position: fixed !important;
	left: 6px !important;
	top: 7px !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	padding: 8px 16px !important;
	background: var(--mafar-secondary, #1D2B71) !important;
	color: #fff !important;
	border-radius: 4px !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	white-space: normal !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	z-index: 999999 !important;
}