/* J3IT Core Styles - Enhanced Design System */

/* Import Poppins Font with optimized weights (400, 500, 600, 700, 800) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Typography & Base */
html, body {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-weight: 400;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	letter-spacing: 0.01em;
}

/* Enhanced Typography Scale */
h1, .h1 {
	font-weight: 700;
	font-size: 2.5rem;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2, .h2 {
	font-weight: 600;
	font-size: 2rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

h3, .h3 {
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 1.4;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

h4, .h4 {
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.4;
	color: #ffffff;
}

h5, .h5 {
	font-weight: 500;
	font-size: 1.125rem;
	line-height: 1.5;
	color: #ffffff;
}

h6, .h6 {
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.5;
	color: #ffffff;
}

p, .p {
	font-weight: 400;
	font-size: 1rem;
	line-height: 1.7;
	color: #e2e8f0;
}

small, .small {
	font-weight: 400;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #cbd5e1;
}

/* Enhanced Text Colors for Better Contrast */
.text-white {
	color: #ffffff !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.text-light {
	color: #f8f9fa !important;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.text-muted {
	color: #94a3b8 !important;
}

.text-primary {
	color: #ffd7e3 !important;
}

.text-success {
	color: #10b981 !important;
}

.text-warning {
	color: #f59e0b !important;
}

.text-danger {
	color: #ef4444 !important;
}

.text-info {
	color: #3b82f6 !important;
}

/* Enhanced Login Page Styles */
body.login-page {
	min-height: 100vh;
	background: 
		radial-gradient(ellipse at top, rgba(128,0,32,0.8) 0%, transparent 50%),
		radial-gradient(ellipse at bottom, rgba(160,0,42,0.6) 0%, transparent 50%),
		linear-gradient(135deg, #1a0010 0%, #2b000e 25%, #800020 50%, #4b0014 75%, #140008 100%);
	color: #f8f9fa;
	position: relative;
	overflow-x: hidden;
}

/* Animated background elements */
body.login-page::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(circle at 20% 80%, rgba(255,215,227,0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255,193,7,0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(59,130,246,0.1) 0%, transparent 50%);
	animation: float 20s ease-in-out infinite;
	pointer-events: none;
	z-index: 0;
}

@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	33% { transform: translateY(-20px) rotate(1deg); }
	66% { transform: translateY(10px) rotate(-1deg); }
}

/* Enhanced Admin Dashboard Styles */
body.admin-dashboard {
	min-height: 100vh;
	background: 
		radial-gradient(ellipse at top left, rgba(128,0,32,0.3) 0%, transparent 50%),
		radial-gradient(ellipse at bottom right, rgba(160,0,42,0.2) 0%, transparent 50%),
		linear-gradient(180deg, #0a0005 0%, #1a0010 25%, #2b000e 50%, #3a001a 75%, #140008 100%);
	color: #f8f9fa;
	position: relative;
}

body.admin-dashboard::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: 
		radial-gradient(circle at 20% 20%, rgba(255,215,227,0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255,193,7,0.03) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

/* Enhanced Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	width: 280px;
	height: 100vh;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(20px);
	border-right: 1px solid rgba(255,255,255,0.1);
	padding: 20px 16px;
	z-index: 1000;
	transition: transform 0.3s ease;
	box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

.sidebar-header { 
	display: flex; 
	align-items: center; 
	justify-content: space-between; 
	padding: 6px 8px; 
}

.site-logo { 
	height: 36px; 
}

.sidebar-brand {
	text-decoration: none;
	color: inherit;
}

.sidebar-toggle {
	background: none;
	border: none;
	color: #e9ecef;
	font-size: 18px;
	cursor: pointer;
	padding: 8px;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.sidebar-toggle:hover {
	background: rgba(255,255,255,0.1);
}

.sidebar-nav { 
	margin-top: 16px; 
}

.sidebar .nav-item { 
	margin-bottom: 6px; 
}

.sidebar .nav-link {
	display: flex; 
	align-items: center; 
	gap: 10px;
	border-radius: 10px;
	color: #e9ecef; 
	text-decoration: none;
	padding: 10px 12px;
	transition: background .2s ease, color .2s ease;
}

.sidebar .nav-link:hover, 
.sidebar .nav-link.active { 
	background: rgba(255,255,255,0.08); 
	color: #ffffff; 
}

.sidebar .nav-text { 
	font-weight: 500; 
}

/* Sidebar Test Mode Toggle */
.sidebar-test-mode {
	margin-top: auto;
	padding: 16px 8px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.toggle-container {
	margin-top: 10px;
}

.toggle-label {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #e9ecef;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.toggle-switch { 
	position: relative; 
	width: 44px; 
	height: 24px; 
}

.toggle-switch input { 
	display: none; 
}

.toggle-slider {
	position: absolute; 
	inset: 0; 
	background: #6c757d; 
	border-radius: 999px; 
	cursor: pointer;
	transition: background 0.2s ease;
}

.toggle-slider::after {
	content: ''; 
	position: absolute; 
	top: 3px; 
	left: 3px; 
	width: 18px; 
	height: 18px; 
	background: #fff; 
	border-radius: 50%; 
	transition: transform .2s ease;
}

.toggle-switch input:checked + .toggle-slider { 
	background: #f59e0b; 
}

.toggle-switch input:checked + .toggle-slider::after { 
	transform: translateX(20px); 
}

.toggle-container.active .toggle-label {
	color: #f59e0b;
}

/* Sidebar Account Section */
.sidebar-account {
	margin-top: auto;
	padding: 16px 8px;
	border-top: 1px solid rgba(255,255,255,0.08);
}

.account-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.account-avatar {
	width: 40px;
	height: 40px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #e9ecef;
	font-size: 16px;
}

.account-details h6 {
	margin: 0;
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
}

.account-details p {
	margin: 0;
	color: #94a3b8;
	font-size: 12px;
}

.account-actions {
	display: flex;
	gap: 8px;
}

.account-btn {
	background: none;
	border: 1px solid rgba(255,255,255,0.2);
	color: #e9ecef;
	padding: 6px 10px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 12px;
}

.account-btn:hover {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.3);
}

/* Main Content Wrapper */
.admin-dashboard .main-content { 
	margin-left: 260px; 
	padding: 24px; 
	transition: margin-left 0.3s ease;
	max-width: 100%;
}

/* Top Bar */
.admin-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 0;
	margin-bottom: 24px;
}

.admin-page-title {
	color: #ffffff;
	font-weight: 700;
	font-size: 28px;
	margin: 0;
}

.admin-top-bar-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.admin-badge {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.admin-badge-sandbox {
	background: rgba(255, 193, 7, 0.2);
	color: #ffc107;
	border: 1px solid rgba(255, 193, 7, 0.3);
}

.admin-badge-live {
	background: rgba(40, 167, 69, 0.2);
	color: #28a745;
	border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Mobile Overlay */
.mobile-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.mobile-overlay.show {
	opacity: 1;
	visibility: visible;
}

/* Test Mode Banner */
.test-mode-banner {
	background: #fff3cd;
	border: 1px solid #ffe69c;
	color: #664d03;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	margin-bottom: 24px;
}

/* Live Mode Warning Banner */
.live-mode-banner {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	border-radius: 12px;
	padding: 16px 20px;
	box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2);
	margin-bottom: 24px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% { box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2); }
	50% { box-shadow: 0 10px 40px rgba(220, 53, 69, 0.4); }
	100% { box-shadow: 0 10px 30px rgba(220, 53, 69, 0.2); }
}

/* Live Mode Indicator */
.live-mode-indicator {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #dc3545;
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: bold;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
	animation: pulse 2s infinite;
}

/* Enhanced Cards */
.card { 
	background: rgba(255,255,255,0.08); 
	border: 1px solid rgba(255,255,255,0.12); 
	color: #f8f9fa; 
	border-radius: 20px; 
	box-shadow: 
		0 8px 32px rgba(0,0,0,0.2),
		0 0 0 1px rgba(255,255,255,0.05),
		inset 0 1px 0 rgba(255,255,255,0.1);
	backdrop-filter: blur(20px);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 12px 40px rgba(0,0,0,0.25),
		0 0 0 1px rgba(255,255,255,0.08),
		inset 0 1px 0 rgba(255,255,255,0.15);
	border-color: rgba(255,255,255,0.15);
}

.card .card-title { 
	color: #ffffff; 
	font-weight: 600;
	font-size: 1.25rem;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	margin-bottom: 8px;
}

.card .card-text { 
	color: #e2e8f0; 
	font-weight: 400;
	line-height: 1.6;
}

.card-header {
	background: rgba(255,255,255,0.05);
	border-bottom: 1px solid rgba(255,255,255,0.08);
	padding: 20px 24px;
}

.card-body {
	padding: 24px;
}

/* Dashboard Header */
.dashboard-header {
	margin-bottom: 32px;
}

.dashboard-title {
	color: #ffffff;
	font-weight: 700;
	font-size: 32px;
	margin-bottom: 8px;
}

.dashboard-subtitle {
	color: #cbd5e1;
	font-size: 16px;
	margin: 0;
}

/* Statistics Grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.stat-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 16px;
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
}

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	border-color: rgba(255,255,255,0.2);
}

.stat-number {
	font-size: 36px;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 8px;
}

.stat-label {
	color: #cbd5e1;
	font-weight: 500;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Enhanced Tables */
.table { 
	color: #f8f9fa; 
	background: rgba(255,255,255,0.02);
	border-radius: 12px;
	overflow: hidden;
}

.table thead th { 
	color: #ffffff; 
	border-color: rgba(255,255,255,0.15); 
	background: rgba(255,255,255,0.08);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 20px 24px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	position: relative;
}

.table thead th::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.table tbody td { 
	border-color: rgba(255,255,255,0.08); 
	padding: 20px 24px;
	vertical-align: middle;
	font-weight: 500;
	color: #e2e8f0;
	position: relative;
}

.table tbody tr {
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(255,255,255,0.05);
}

.table tbody tr:hover {
	background: rgba(255,255,255,0.06);
	transform: translateX(4px);
	box-shadow: 4px 0 12px rgba(0,0,0,0.1);
}

.table tbody tr:hover td {
	color: #ffffff;
}

/* Table Code Elements */
.table code {
	background: rgba(255,255,255,0.1);
	color: #ffd7e3;
	padding: 4px 8px;
	border-radius: 6px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid rgba(255,255,255,0.1);
}

/* Local Transactions Table - Accessibility & Readability */
#localTxContainer .table {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: transparent;
}

#localTxContainer .table thead th {
	font-size: 14px;
	font-weight: 600; /* Labels */
	color: #fff; /* Light on dark */
	text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
	padding: 12px; /* consistent spacing */
}

#localTxContainer .table tbody td {
	font-size: 14px; /* 14–16px range */
	font-weight: 500; /* Values */
	color: #222; /* Dark text for light cells */
	text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
	padding: 12px; /* consistent spacing */
}

#localTxContainer .table tbody td code {
	background: rgba(255,255,255,0.92);
	color: #555; /* Faded text: darker gray for readability */
	border-color: rgba(0,0,0,0.08);
	text-shadow: none; /* code on light background doesn't need shadow */
	font-weight: 600;
}

/* Make key value text and labels readable */
#localTxContainer .table tbody td .fw-bold { 
	color: #222; /* Label text */
	font-weight: 600; 
	text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}

#localTxContainer .table tbody td strong { 
	color: #222; /* Amount and other strong text */
	font-weight: 600;
}

/* Override muted/light text within table to higher contrast */
#localTxContainer .table tbody td .text-muted,
#localTxContainer .table tbody td small,
#localTxContainer .table tbody td span.text-muted { 
	color: #555 !important; 
	text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Description and generic paragraphs in cells */
#localTxContainer .table tbody td p { 
	color: #333; 
	font-weight: 500; 
	text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

/* Ensure date/time cells are readable */
#localTxContainer .table tbody td time,
#localTxContainer .table tbody td .datetime,
#localTxContainer .table tbody td:nth-child(8) { 
	color: #333; 
	font-weight: 500; 
}

#localTxContainer .badge {
	color: #fff !important; /* White text for badges */
	font-weight: 700; /* Keep bold */
	text-shadow: 1px 1px 2px rgba(0,0,0,0.15);
}

/* Make sure table uses comfortable density within container */
#localTxContainer .table.table-striped.align-middle > :not(caption) > * > * {
	padding: 12px;
}

/* Enhanced Login Container */
.login-container { 
	max-width: 480px; 
	margin: 0 auto; 
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	position: relative;
	z-index: 1;
}

.login-card { 
	background: rgba(255,255,255,0.08); 
	border: 1px solid rgba(255,255,255,0.15); 
	border-radius: 24px; 
	box-shadow: 
		0 25px 50px -12px rgba(0,0,0,0.4),
		0 0 0 1px rgba(255,255,255,0.05),
		inset 0 1px 0 rgba(255,255,255,0.1);
	overflow: hidden; 
	width: 100%;
	backdrop-filter: blur(20px);
	position: relative;
	animation: slideUp 0.6s ease-out;
}

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

.login-header { 
	padding: 32px 24px; 
	border-bottom: 1px solid rgba(255,255,255,0.1); 
	text-align: center;
	background: linear-gradient(135deg, #800020 0%, #a0002a 50%, #c0003a 100%);
	position: relative;
	overflow: hidden;
}

.login-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
		radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
	pointer-events: none;
}

.login-header h1 {
	margin: 0 0 8px 0;
	font-weight: 800;
	font-size: 2rem;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	position: relative;
	z-index: 1;
}

.login-header h2 {
	margin: 0 0 8px 0;
	font-weight: 700;
	font-size: 1.75rem;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	position: relative;
	z-index: 1;
}

.login-header p {
	margin: 0;
	color: rgba(255,255,255,0.9);
	font-weight: 400;
	font-size: 1rem;
	position: relative;
	z-index: 1;
}

.login-body { 
	padding: 32px 24px; 
	background: rgba(255,255,255,0.02);
}

.tech-indicator { 
	display: flex; 
	align-items: center; 
	gap: 10px; 
	color: #cbd5e1; 
	font-size: 12px; 
	letter-spacing: 1px; 
	margin-bottom: 16px;
}

.pulse-dot { 
	width: 8px; 
	height: 8px; 
	border-radius: 50%; 
	background: #22c55e; 
	box-shadow: 0 0 0 0 rgba(34,197,94,.7); 
	animation: pulse 2s infinite; 
}

@keyframes pulse { 
	70% { 
		box-shadow: 0 0 0 10px rgba(34,197,94,0); 
	} 
	100% { 
		box-shadow: 0 0 0 0 rgba(34,197,94,0); 
	} 
}

/* Enhanced Forms */
.form-label { 
	color: #ffffff; 
	font-weight: 600; 
	margin-bottom: 12px;
	font-size: 15px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	gap: 8px;
}

.form-control, 
.form-select, 
textarea { 
	background: rgba(255,255,255,0.95); 
	color: #1a1a1a; 
	border: 2px solid rgba(255,255,255,0.2); 
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 
		0 4px 6px -1px rgba(0,0,0,0.1),
		inset 0 1px 2px rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
}

.form-control::placeholder, 
textarea::placeholder { 
	color: #6b7280; 
	opacity: 1; 
	font-weight: 400;
}

.form-control:focus, 
.form-select:focus, 
textarea:focus { 
	border-color: #800020; 
	box-shadow: 
		0 0 0 4px rgba(128,0,32,0.15),
		0 4px 6px -1px rgba(0,0,0,0.1),
		inset 0 1px 2px rgba(255,255,255,0.1);
	outline: none;
	background: rgba(255,255,255,0.98);
	transform: translateY(-1px);
}

.form-control:hover,
.form-select:hover,
textarea:hover {
	border-color: rgba(255,255,255,0.3);
	background: rgba(255,255,255,0.97);
}

/* Form Groups */
.form-group {
	margin-bottom: 24px;
	position: relative;
}

.form-group.focused .form-label {
	color: #ffd7e3;
	transform: translateY(-2px);
}

/* Input Icons */
.input-group {
	position: relative;
}

.input-group .form-control {
	padding-left: 48px;
}

.input-group-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #6b7280;
	font-size: 16px;
	z-index: 2;
	pointer-events: none;
}

.input-group .form-control:focus + .input-group-icon {
	color: #800020;
}

/* Enhanced Buttons */
.btn {
	border-radius: 16px;
	padding: 14px 28px;
	font-weight: 600;
	border: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 15px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	text-transform: none;
	letter-spacing: 0.01em;
	box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.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;
}

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

.btn-primary { 
	background: linear-gradient(135deg, #800020 0%, #a0002a 50%, #c0003a 100%); 
	border: 2px solid rgba(255,255,255,0.1);
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-primary:hover { 
	background: linear-gradient(135deg, #a0002a 0%, #c0003a 50%, #e0004a 100%); 
	transform: translateY(-3px);
	box-shadow: 
		0 10px 25px rgba(128,0,32,0.4),
		0 0 0 1px rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.2);
}

.btn-primary:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(128,0,32,0.3);
}

.btn-outline-primary { 
	color: #ffd7e3; 
	border: 2px solid #ffd7e3; 
	background: transparent;
}

.btn-outline-primary:hover { 
	background: #ffd7e3; 
	color: #800020; 
}

.btn-success {
	background: linear-gradient(135deg, #28a745, #20c997);
	border-color: #28a745;
	color: #ffffff;
}

.btn-success:hover {
	background: linear-gradient(135deg, #20c997, #28a745);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(40,167,69,0.3);
}

.btn-warning {
	background: linear-gradient(135deg, #ffc107, #fd7e14);
	border-color: #ffc107;
	color: #212529;
}

.btn-warning:hover {
	background: linear-gradient(135deg, #fd7e14, #ffc107);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255,193,7,0.3);
}

.btn-info {
	background: linear-gradient(135deg, #17a2b8, #6f42c1);
	border-color: #17a2b8;
	color: #ffffff;
}

.btn-info:hover {
	background: linear-gradient(135deg, #6f42c1, #17a2b8);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(23,162,184,0.3);
}

.btn-danger {
	background: linear-gradient(135deg, #dc3545, #e83e8c);
	border-color: #dc3545;
	color: #ffffff;
}

.btn-danger:hover {
	background: linear-gradient(135deg, #e83e8c, #dc3545);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(220,53,69,0.3);
}

.btn-secondary {
	background: linear-gradient(135deg, #6c757d, #495057);
	border-color: #6c757d;
	color: #ffffff;
}

.btn-secondary:hover {
	background: linear-gradient(135deg, #495057, #6c757d);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(108,117,125,0.3);
}

.btn-outline-secondary {
	color: #6c757d;
	border: 2px solid #6c757d;
	background: transparent;
}

.btn-outline-secondary:hover {
	background: #6c757d;
	color: #ffffff;
}

.btn-sm {
	padding: 8px 16px;
	font-size: 12px;
}

.btn-lg {
	padding: 16px 32px;
	font-size: 16px;
}

/* Alerts */
.alert {
	border: none;
	border-radius: 12px;
	padding: 16px 20px;
	font-weight: 500;
	margin-bottom: 20px;
}

.alert-success {
	background: linear-gradient(135deg, #d1fae5, #a7f3d0);
	color: #065f46;
	border-left: 4px solid #10b981;
}

.alert-danger {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	color: #991b1b;
	border-left: 4px solid #ef4444;
}

.alert-warning {
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	color: #92400e;
	border-left: 4px solid #f59e0b;
}

.alert-info {
	background: linear-gradient(135deg, #dbeafe, #bfdbfe);
	color: #1e40af;
	border-left: 4px solid #3b82f6;
}

/* Badges */
.badge {
	font-size: 11px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bg-success {
	background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.bg-warning {
	background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
	color: #212529 !important;
}

.bg-danger {
	background: linear-gradient(135deg, #dc3545, #e83e8c) !important;
}

.bg-info {
	background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

.bg-primary {
	background: linear-gradient(135deg, #800020, #a0002a) !important;
}

.bg-secondary {
	background: linear-gradient(135deg, #6c757d, #495057) !important;
}

/* Utilities */
.admin-close-btn { 
	filter: none; 
}

.site-badge { 
	background: rgba(255,255,255,0.1); 
	border-color: rgba(255,255,255,0.15); 
	color: #e9ecef;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Modal Styles */
.modal-content { 
	background: rgba(255,255,255,0.98); 
	color: #111111; 
	border-radius: 16px;
	border: none;
	box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header { 
	border-bottom: 1px solid #e9ecef; 
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	border-radius: 16px 16px 0 0;
}

.modal-title {
	font-weight: 600;
	color: #212529;
	margin: 0;
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	border-top: 1px solid #e9ecef;
	padding: 20px 24px;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	border-radius: 0 0 16px 16px;
}

/* Admin Modal Styles */
.admin-modal-content {
	background: rgba(255,255,255,0.98);
	color: #111111;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.admin-modal-header {
	background: linear-gradient(135deg, #800020, #a0002a);
	color: #ffffff;
	border-bottom: none;
}

.admin-modal-header .modal-title {
	color: #ffffff;
}

.admin-close-btn {
	filter: brightness(0) invert(1);
}

/* Tables inside light modals */
.admin-modal-content .table { 
	color: #212529; 
}

.admin-modal-content .table thead th,
.admin-modal-content .table tbody td { 
	border-color: #e9ecef; 
}

/* Analytics Modal Specific Styles */
.admin-modal-content h1,
.admin-modal-content h2,
.admin-modal-content h3,
.admin-modal-content h4,
.admin-modal-content h5,
.admin-modal-content h6 {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #212529;
	font-weight: 600;
}

.admin-modal-content p,
.admin-modal-content .card-text,
.admin-modal-content .text-center {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #495057;
}

.admin-modal-content .text-primary { color: #800020 !important; }
.admin-modal-content .text-success { color: #28a745 !important; }
.admin-modal-content .text-warning { color: #ffc107 !important; }
.admin-modal-content .text-info { color: #17a2b8 !important; }

/* Ensure analytics modal text is visible */
#analyticsModal .modal-content {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

#analyticsModal .card-text,
#analyticsModal .text-center,
#analyticsModal .text-muted {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #495057 !important;
}

#analyticsModal h3 {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-weight: 700;
}

/* Analytics table styling */
#analyticsModal .table thead th {
	color: #212529 !important;
	font-weight: 600 !important;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
	background-color: #f8f9fa !important;
	border-bottom: 2px solid #dee2e6 !important;
}

#analyticsModal .table tbody td {
	color: #495057 !important;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#analyticsModal .table tbody td code {
	background-color: #f8f9fa !important;
	color: #495057 !important;
	border: 1px solid #dee2e6 !important;
	font-family: 'Courier New', monospace !important;
}

#analyticsModal .badge {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
	font-weight: 600 !important;
}

/* Analytics charts styling */
#analyticsModal canvas {
	max-height: 300px !important;
	height: 300px !important;
}

#analyticsModal .card-body {
	min-height: 350px !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
}

/* Admin Dashboard Specific Styles */
.admin-dashboard {
	background: linear-gradient(180deg, #1a0010 0%, #3a001a 40%, #140008 100%);
	min-height: 100vh;
	color: #f8f9fa;
}

/* Admin Stats Cards */
.admin-stat-card {
	background: rgba(255,255,255,0.08);
	border: 1px solid rgba(255,255,255,0.12);
	border-radius: 16px;
	transition: all 0.3s ease;
	overflow: hidden;
}

.admin-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
	border-color: rgba(255,255,255,0.2);
}

.admin-stat-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: white;
}

.admin-stat-card .card-title {
	color: #cbd5e1;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.admin-stat-card h4 {
	color: #ffffff;
	font-weight: 700;
	font-size: 28px;
}

/* Admin Table Card */
.admin-table-card {
	background: rgba(255,255,255,0.95);
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.admin-table-card .card-header {
	background: rgba(0,0,0,0.8);
	border-bottom: 1px solid rgba(0,0,0,0.1);
	padding: 20px 24px;
}

.admin-table-card .card-title {
	color: #ffffff;
	font-weight: 600;
	font-size: 18px;
}

/* Admin Table Styles */
.admin-table {
	margin-bottom: 0;
}

.admin-table thead th {
	background: rgba(0,0,0,0.8);
	color: #ffffff;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 16px 20px;
	border: none;
}

.admin-table tbody td {
	padding: 16px 20px;
	border: none;
	border-bottom: 1px solid rgba(0,0,0,0.1);
	vertical-align: middle;
	color: #000000 !important;
	font-weight: 500;
	background: rgba(255,255,255,0.9);
}

.admin-table-row {
	transition: all 0.2s ease;
}

.admin-table-row:hover {
	background: rgba(255,255,255,0.95);
}

.admin-table-row:hover td {
	color: #000000 !important;
	background: rgba(255,255,255,0.95);
}

/* Admin Table Content Styling */
.admin-merchant-id {
	font-family: 'Courier New', monospace;
	font-size: 12px;
	color: #000000;
	background: rgba(255,255,255,0.8);
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid rgba(0,0,0,0.1);
}

.admin-merchant-name {
	font-weight: 600;
	color: #000000;
	font-size: 15px;
}

.admin-contact-name {
	color: #333333;
	font-weight: 500;
}

.admin-email-info {
	color: #555555;
	font-size: 14px;
}

.admin-date-info {
	color: #666666;
	font-size: 13px;
}

/* Admin Badges */
.admin-status-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.admin-verified-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
}

/* Admin Action Buttons */
.admin-action-btn {
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	transition: all 0.2s ease;
}

.admin-action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Admin Empty State */
.admin-empty-state {
	padding: 40px 20px;
}

.admin-empty-state h5 {
	color: #e2e8f0;
	font-weight: 600;
	margin-bottom: 8px;
}

.admin-empty-state p {
	color: #94a3b8;
	font-size: 14px;
}

/* Admin Action Cards */
.admin-action-cards-row {
	margin-top: 16px;
}

.admin-action-card {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 20px;
	transition: all 0.3s ease;
}

.admin-action-card:hover {
	background: rgba(255,255,255,0.08);
	border-color: rgba(255,255,255,0.12);
}

.admin-card-header {
	color: #ffffff;
	font-weight: 600;
	margin-bottom: 12px;
	font-size: 14px;
}

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

.admin-url-container {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.admin-url-input {
	flex: 1;
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: #ffffff;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 12px;
	font-family: 'Courier New', monospace;
}

.admin-copy-btn {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.2);
	color: #ffffff;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.admin-copy-btn:hover {
	background: rgba(255,255,255,0.2);
}

.admin-register-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #800020, #a0002a);
	color: #ffffff;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.admin-register-btn:hover {
	background: linear-gradient(135deg, #a0002a, #800020);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(128,0,32,0.3);
	color: #ffffff;
	text-decoration: none;
}

.admin-card-description {
	color: #94a3b8;
	font-size: 12px;
	margin: 0;
}

/* Filters Section */
.filters-section {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.filters-section h5 {
	color: #ffffff;
	font-weight: 600;
	margin-bottom: 16px;
}

.action-buttons {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

/* Test Mode Indicator */
.test-mode-indicator {
	position: fixed;
	top: 20px;
	right: 20px;
	background: linear-gradient(135deg, #ffc107, #fd7e14);
	color: #212529;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 9999;
	box-shadow: 0 4px 12px rgba(255,193,7,0.3);
	animation: pulse 2s infinite;
}

/* Pagination */
.pagination {
	margin: 0;
}

.page-link {
	background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.08);
	color: #e9ecef;
	padding: 8px 16px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.page-link:hover {
	background: rgba(255,255,255,0.1);
	color: #ffffff;
	border-color: rgba(255,255,255,0.2);
}

.page-item.disabled .page-link {
	background: rgba(255,255,255,0.02);
	border-color: rgba(255,255,255,0.05);
	color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sidebar {
		transform: translateX(-100%);
		transition: transform 0.3s ease;
	}
	
	.sidebar.mobile-open {
		transform: translateX(0);
	}
	
	.admin-dashboard .main-content {
		margin-left: 0;
		padding: 16px;
	}
	
	.admin-stat-card {
		margin-bottom: 16px;
	}
	
	.admin-table-card .card-body {
		padding: 0;
	}
	
	.admin-table thead th,
	.admin-table tbody td {
		padding: 12px 16px;
		font-size: 13px;
	}
	
	.admin-action-btn {
		padding: 4px 8px;
		font-size: 11px;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.dashboard-title {
		font-size: 24px;
	}
	
	.admin-page-title {
		font-size: 20px;
	}
}

@media (max-width: 576px) {
	.admin-table thead th:nth-child(n+4),
	.admin-table tbody td:nth-child(n+4) {
		display: none;
	}
	
	.admin-table thead th:nth-child(1),
	.admin-table tbody td:nth-child(1) {
		width: 30%;
	}
	
	.admin-table thead th:nth-child(2),
	.admin-table tbody td:nth-child(2) {
		width: 40%;
	}
	
	.admin-table thead th:nth-child(3),
	.admin-table tbody td:nth-child(3) {
		width: 30%;
	}
	
	.login-container {
		padding: 1rem;
	}
	
	.login-card {
		margin: 0;
	}
	
	.login-header,
	.login-body {
		padding: 20px;
	}
	
	.btn {
		padding: 10px 20px;
		font-size: 14px;
	}
	
	.btn-lg {
		padding: 14px 28px;
		font-size: 16px;
	}
}

/* Enhanced Animation Classes */
.fade-in {
	animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in {
	animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.bounce-in {
	animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: scale(0.3);
	}
	50% {
		opacity: 1;
		transform: scale(1.05);
	}
	70% {
		transform: scale(0.9);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

.pulse-glow {
	animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
	0%, 100% {
		box-shadow: 0 0 5px rgba(128,0,32,0.3);
	}
	50% {
		box-shadow: 0 0 20px rgba(128,0,32,0.6), 0 0 30px rgba(128,0,32,0.4);
	}
}

/* Glassmorphism Effect */
.glass {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255,255,255,0.2);
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Gradient Text */
.gradient-text {
	background: linear-gradient(135deg, #ffd7e3, #ffffff, #ffd7e3);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	background-size: 200% 200%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0%, 100% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
}

/* Loading States */
.loading {
	position: relative;
	pointer-events: none;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.3);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255,255,255,0.5);
}

/* Print Styles */
@media print {
	.sidebar,
	.admin-top-bar,
	.btn,
	.modal {
		display: none !important;
	}
	
	.admin-dashboard .main-content {
		margin-left: 0 !important;
		padding: 0 !important;
	}
	
	.card {
		background: white !important;
		color: black !important;
		border: 1px solid #ddd !important;
	}
	
	.table {
		color: black !important;
	}
}
