/* ======================================== */
/* MOBILE CSS - ESSENTIAL STYLES ONLY */
/* ======================================== */

/* Mobile Individual Refresh Button Styles */
.mobile-individual-refresh-btn {
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	font-size: 20px !important;
	border-radius: 8px !important;
	background: rgba(0, 0, 0, 0.2) !important;
	border: 1px solid rgba(0, 0, 0, 0.3) !important;
	padding: 8px !important;
	margin-left: 8px !important;
	vertical-align: middle !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
}

.mobile-individual-refresh-btn:hover {
	background: rgba(0, 0, 0, 0.3) !important;
	box-shadow: none !important;
}

/* Dark mode mobile refresh button */
body.dark-mode .mobile-individual-refresh-btn {
	background: rgba(255, 255, 255, 0.1) !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .mobile-individual-refresh-btn:hover {
	background: rgba(255, 255, 255, 0.2) !important;
}

	/* Mobile-specific variables */
	@media (max-width: 1023px) {
		:root {
			--mobile-primary: #0d6efd;
			--mobile-secondary: #6c757d;
			--mobile-text: #333;
			--mobile-border: rgba(0, 0, 0, 0.1);
			--title-color: #ffffff;
			--shadow: rgba(0, 0, 0, 0.5);
		}

		body.dark-mode {
			--mobile-text: #ffffff;
			--mobile-border: rgba(255, 255, 255, 0.1);
			--title-color: #ffffff;
			--shadow: rgba(0, 0, 0, 0.8);
		}

	/* Hide all desktop elements on mobile */
	.table-selector,
	.dark-mode-toggle,
	.modal-button,
	.modal-button2,
	.container,
	.desktop-header,
	.desktop-header-icon,
	.desktop-header h1,
	.modal,
	h1:not(.mobile-header h1),
	h1 {
		display: none !important;
	}

	/* Show mobile elements on mobile */
	.mobile-modal {
		display: none; /* Will be shown via JavaScript when needed */
	}

	/* Ensure mobile header h1 is visible */
	.mobile-header h1 {
		display: block !important;
		color: var(--title-color);
		font-size: 28px;
		margin: 0;
		text-shadow: 2px 2px 4px var(--shadow);
	}

	/* Ensure mobile elements are shown on mobile */
	.mobile-header,
	.mobile-main,
	.mobile-nav {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	/* Mobile base styles */
	body {
		margin: 0;
		padding: 0;
		font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		overflow-x: hidden;
		-webkit-text-size-adjust: 100%;
		-ms-text-size-adjust: 100%;
	}

	/* Mobile Header */
	.mobile-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		background: rgba(0, 0, 0, 0.3);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--mobile-border);
		z-index: 1000;
		padding: 8px 20px;
		display: flex !important;
		align-items: center;
		justify-content: center;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.mobile-header-content {
		display: flex;
		align-items: center;
		gap: 15px;
		width: 100%;
		justify-content: center;
	}

	.mobile-header-icon {
		width: 40px;
		height: 40px;
		object-fit: contain;
	}





	/* Mobile Navigation */
	.mobile-nav {
		position: fixed !important;
		bottom: -2px !important;
		left: 0 !important;
		right: 0 !important;
		z-index: 1000 !important;
		background: rgba(0, 0, 0, 0.1) !important;
		backdrop-filter: blur(20px) !important;
		border-top: 1px solid var(--mobile-border) !important;
		padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) !important;
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-around !important;
		align-items: center !important;
		box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
		width: 100% !important;
		max-width: 100vw !important;
		visibility: visible !important;
		opacity: 1 !important;
		box-sizing: border-box !important;
	}

	.mobile-nav-item {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 2px !important;
		padding: 4px 6px !important;
		border-radius: 6px !important;
		cursor: pointer !important;
		transition: all 0.2s ease !important;
		color: white !important;
		text-decoration: none !important;
		min-width: 40px !important;
		justify-content: center !important;
		-webkit-tap-highlight-color: transparent !important;
		font-size: 16px !important;
		font-weight: 600 !important;
		flex: 1 !important;
		max-width: 80px !important;
	}

	.mobile-nav-item.active {
		background: #28a745;
		color: white !important;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
	}

	.mobile-nav-item:hover {
		background: rgba(13, 110, 253, 0.1);
		transform: translateY(-1px);
	}

	.mobile-nav-item.active:hover {
		background: #28a745;
		color: white !important;
		transform: translateY(-2px);
	}

	.mobile-nav-item svg {
		display: none;
	}

	.mobile-nav-item span {
		font-size: 18px;
		font-weight: 600;
	}

	/* Mobile Main Content */
	.mobile-main {
		margin-top: 60px;
		margin-bottom: 80px;
		padding: 5px;
		min-height: 932px;
		overflow-x: hidden;
		overflow-y: auto;
		width: 100%;
		box-sizing: border-box;
	}

	/* Ensure mobile table containers can scroll horizontally if needed, but content fits properly */
	.mobile-table-wrapper,
	.mobile-multiple-tables-container {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	/* Mobile Form Elements */
	.mobile-form-input {
		width: 100%;
		padding: 12px 16px;
		border: 2px solid var(--mobile-border);
		border-radius: 12px;
		background: transparent !important;
		color: var(--mobile-text);
		font-size: 16px;
		transition: all 0.2s ease;
		box-sizing: border-box;
	}

	.mobile-form-input:focus {
		outline: none;
		border-color: var(--mobile-primary);
		box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
		background: transparent !important;
	}



	/* Mobile Button */
	.mobile-btn {
		background: var(--mobile-primary);
		color: white;
		border: none;
		border-radius: 12px;
		padding: 12px 24px;
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 48px;
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-btn:hover {
		background: #0b5ed7;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
	}

	/* Mobile Icon-Only Settings Buttons */
	.mobile-button-group {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		justify-content: center;
		margin-top: 12px;
	}

	.mobile-table-option-btn {
		background: rgba(255, 255, 255, 0.1);
		color: var(--mobile-text);
		border: 2px solid var(--mobile-border);
		border-radius: 12px;
		padding: 8px;
		margin: 2px;
		font-size: 12px;
		cursor: pointer;
		transition: all 0.3s ease;
		width: 55px;
		height: 55px;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.1);
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-table-option-btn img {
		max-width: 100%;
		max-height: 100%;
		width: auto;
		height: auto;
	}

	.mobile-table-option-btn:hover {
		background: rgba(255, 255, 255, 0.2);
		transform: translateY(-2px);
		box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
	}

	.mobile-table-option-btn.active {
		background: var(--mobile-primary);
		color: white;
		border: 2px solid rgba(255, 255, 255, 0.3);
		box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
	}

	/* Dark mode support for mobile icon buttons */
	body.dark-mode .mobile-table-option-btn {
		background: rgba(0, 0, 0, 0.3);
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	body.dark-mode .mobile-table-option-btn:hover {
		background: rgba(0, 0, 0, 0.4);
	}

	body.dark-mode .mobile-table-option-btn.active {
		background: var(--mobile-primary);
		border: 2px solid rgba(255, 255, 255, 0.3);
	}

	/* Mobile Records Controls - Simplified */
	.mobile-records-controls {
		margin-bottom: 15px;
		padding: 8px;
		background: rgba(255, 255, 255, 0.1);
		border-radius: 8px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		justify-content: center;
	}

	/* Make buttons take up roughly half the width each */
	.mobile-records-controls .mobile-option-btn {
		flex: 1 1 calc(50% - 4px);
		min-width: 120px;
		max-width: calc(50% - 4px);
	}

	/* Dark mode styling for mobile records controls */
	body.dark-mode .mobile-records-controls {
		background: rgba(0, 0, 0, 0.2);
		border: 1px solid rgba(255, 255, 255, 0.1);
	}

	/* Mobile Modal Styling */
	.mobile-modal {
		display: none;
		position: fixed;
		z-index: 2000;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(5px);
	}

	.mobile-modal-content {
		background: rgba(255, 255, 255, 0.95);
		margin: 15% auto;
		padding: 20px;
		border-radius: 16px;
		width: 85%;
		max-width: 400px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
		position: relative;
		backdrop-filter: blur(20px);
	}

	.mobile-close {
		color: #aaa;
		float: right;
		font-size: 28px;
		font-weight: bold;
		cursor: pointer;
		position: absolute;
		top: 10px;
		right: 15px;
	}

	.mobile-close:hover,
	.mobile-close:focus {
		color: #000;
		text-decoration: none;
	}

	.mobile-modal-content p {
		margin: 10px 0;
		font-size: 16px;
		line-height: 1.5;
		color: #333;
	}

	.mobile-links {
		display: flex;
		flex-direction: column;
		gap: 12px;
		margin-top: 20px;
	}

	.mobile-links a {
		background: #0d6efd;
		color: white;
		text-decoration: none;
		padding: 12px 16px;
		border-radius: 8px;
		text-align: center;
		font-weight: 600;
		transition: all 0.2s ease;
	}

	.mobile-links a:hover {
		background: #0b5ed7;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
	}

	/* Dark mode for mobile modal */
	body.dark-mode .mobile-modal-content {
		background: rgba(0, 0, 0, 0.9);
		color: white;
	}

	body.dark-mode .mobile-modal-content p {
		color: white;
	}

	body.dark-mode .mobile-close {
		color: #ccc;
	}

	body.dark-mode .mobile-close:hover,
	body.dark-mode .mobile-close:focus {
		color: white;
	}







	/* Mobile Button Styling - Simplified */
	.mobile-option-btn {
		background: #0d6efd;
		color: white;
		border: none;
		border-radius: 8px;
		padding: 10px 16px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		-webkit-tap-highlight-color: transparent;
		box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
		min-width: 100px;
	}

	.mobile-option-btn:hover {
		background: #0b5ed7;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
	}

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

	.mobile-option-btn:disabled {
		background: #6c757d;
		cursor: not-allowed;
		transform: none;
		box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
	}

	.mobile-stop-resume-btn {
		background: #dc3545;
		color: white;
		border: none;
		border-radius: 8px;
		padding: 10px 16px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		-webkit-tap-highlight-color: transparent;
		box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
		min-width: 100px;
	}

	.mobile-stop-resume-btn:hover {
		background: #c82333;
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
	}

	.mobile-stop-resume-btn:active {
		transform: translateY(0);
	}

	/* Mobile Table Styling - Optimized for 430x932 */
	.mobile-table-wrapper table,
	.mobile-multiple-tables-container table,
	.mobile-table-wrapper .multiple-tables-container table,
	.mobile-multiple-tables-container .multiple-tables-container table,
	.mobile-table-wrapper .main-table-wrapper table,
	.mobile-multiple-tables-container .main-table-wrapper table {
		width: 100% !important;
		max-width: 100% !important;
		border-collapse: collapse;
		font-size: 11px;
		background: transparent;
		border: 1px solid #578A34;
		border-radius: 4px;
		overflow: hidden;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
		table-layout: fixed;
	}

	/* Ensure mobile table containers can scroll horizontally */
	.mobile-table-wrapper,
	.mobile-multiple-tables-container {
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
		max-width: 100vw;
	}

	/* Summary table should never scroll horizontally */
	.mobile-summary-wrapper {
		overflow-x: hidden !important;
		max-width: 100% !important;
	}

	.mobile-table-wrapper th,
	.mobile-multiple-tables-container th {
		background: linear-gradient(135deg, #0d6efd, #0b5ed7);
		color: white;
		padding: 2px 1px;
		text-align: center;
		font-weight: 600;
		font-size: 11px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		white-space: nowrap;
	}

	.mobile-table-wrapper td,
	.mobile-multiple-tables-container td {
		padding: 1px 1px;
		text-align: center;
		border: 1px solid rgba(87, 138, 52, 0.3);
		vertical-align: middle;
		font-size: 11px;
		white-space: nowrap;
	}

	/* Game Mode Icon Cells - Mobile Only Override */
	.mobile-table-wrapper td:first-child,
	.mobile-multiple-tables-container td:first-child {
		width: 50px !important;
		max-width: 50px !important;
		min-width: 50px !important;
		text-align: center !important;
		padding: 1px !important;
	}

	/* Game Mode Header Cells - Square on Mobile */
	.mobile-table-wrapper th:first-child,
	.mobile-multiple-tables-container th:first-child {
		width: 30px !important;
		max-width: 30px !important;
		min-width: 30px !important;
		height: 30px !important;
		max-height: 30px !important;
		min-height: 30px !important;
		text-align: center !important;
		padding: 1px !important;
	}

	.mobile-table-wrapper td:first-child img,
	.mobile-multiple-tables-container td:first-child img {
		width: 30px !important;
		height: 30px !important;
		display: block !important;
		margin: 0 auto !important;
		opacity: 1 !important;
		visibility: visible !important;
	}

	/* Override ALL images in mobile tables to be smaller */
	.mobile-table-wrapper img,
	.mobile-multiple-tables-container img {
		width: 30px !important;
		height: 30px !important;
		max-width: 30px !important;
		max-height: 30px !important;
		object-fit: contain !important;
	}

	/* Make usernames and category names bigger in mobile tables */
	.mobile-table-wrapper td:nth-child(2),
	.mobile-multiple-tables-container td:nth-child(2) {
		font-size: 11px !important;
		font-weight: 600 !important;
	}

	.mobile-table-wrapper th:nth-child(2),
	.mobile-multiple-tables-container th:nth-child(2) {
		font-size: 11px !important;
		font-weight: 700 !important;
	}

	/* Mobile Table Content Container */
	.mobile-table-content {
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
	}

	/* Summary table content should never scroll horizontally */
	.mobile-table-content:has(.mobile-summary-wrapper) {
		overflow-x: hidden !important;
	}
	
	/* Ensure mobile table content respects viewport width */
	.mobile-table-content .mobile-table-wrapper,
	.mobile-table-content .mobile-multiple-tables-container {
		width: 420px !important;
		max-width: 420px !important;
		margin: 0 auto !important;
		overflow-x: auto;
	}

	/* Mobile Record Cell Styling - Dark Blue for Light Mode */
	.mobile-table-wrapper .result,
	.mobile-multiple-tables-container .result {
		background-color: #1e3a8a !important; /* Dark blue */
		width: 100px;
	}

	.mobile-table-wrapper .result:hover,
	.mobile-multiple-tables-container .result:hover {
		background-color: #1e40af !important; /* Slightly lighter blue on hover */
		transition: all 0.2s ease;
	}

	/* Mobile Summary Table Styling */
	.mobile-summary-wrapper {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden;
		padding: 0 5px;
	}

	.mobile-summary-wrapper table {
		width: 100%;
		max-width: 100%;
		border-collapse: collapse;
		font-size: 10px;
		background: rgba(255, 255, 255, 0.05);
		border: 2px solid #578A34;
		border-radius: 8px;
		overflow: hidden;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		table-layout: fixed;
	}

	.mobile-summary-wrapper th {
		background: linear-gradient(135deg, #0d6efd, #0b5ed7);
		color: white;
		padding: 3px 1px;
		text-align: center;
		font-weight: 700;
		font-size: 10px;
		border: 1px solid rgba(255, 255, 255, 0.3);
		white-space: normal;
		word-wrap: break-word;
		text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	}

	.mobile-summary-wrapper td {
		padding: 2px 1px;
		text-align: center;
		border: 1px solid rgba(87, 138, 52, 0.4);
		vertical-align: middle;
		font-size: 10px;
		white-space: normal;
		word-wrap: break-word;
		background: rgba(255, 255, 255, 0.02);
	}

	.mobile-summary-wrapper tr:hover td {
		background: rgba(13, 110, 253, 0.1);
		transition: background 0.2s ease;
	}

	/* Summary table specific styling */
	.mobile-summary-wrapper .ranglist-player-cell {
		text-align: left;
		padding-left: 2px;
		font-weight: 600;
		color: #ffffff;
		font-size: 10px;
		background-color: #1e3a8a !important; /* Dark blue background - same as record cells */
	}

	.mobile-summary-wrapper .ranglist-count-cell {
		font-weight: 700;
		color: #ffffff !important;
		font-size: 10px;
		background-color: #1e3a8a !important; /* Dark blue background - same as record cells */
	}

	.mobile-summary-wrapper .ranglist-percentage-cell {
		font-weight: 700;
		color: #ffffff !important;
		font-size: 10px;
		background-color: #1e3a8a !important; /* Dark blue background - same as record cells */
	}

	/* Mobile More Runners Button */
	.mobile-summary-wrapper .more-runners-btn {
		background: linear-gradient(135deg, #28a745, #20c997);
		color: white;
		border: none;
		border-radius: 8px;
		padding: 10px 16px;
		font-size: 13px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		margin: 12px auto;
		display: block;
		box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
		-webkit-tap-highlight-color: transparent;
	}

	.mobile-summary-wrapper .more-runners-btn:hover {
		background: linear-gradient(135deg, #218838, #1ea085);
		transform: translateY(-1px);
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
	}

	/* Mobile Summary Table Loading State */
	.mobile-summary-wrapper .mobile-loading {
		text-align: center;
		padding: 30px 20px;
		color: var(--mobile-text);
	}

	.mobile-summary-wrapper .mobile-loading p {
		margin: 8px 0;
		font-size: 14px;
		font-weight: 500;
		line-height: 1.4;
	}

	/* Ensure table fits within mobile viewport with extra scroll space */
	.mobile-table-wrapper,
	.mobile-multiple-tables-container {
		width: 100%;
		max-width: 100vw;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
	}
	
	/* Force all tables inside mobile containers to respect the viewport limit */
	.mobile-table-wrapper table,
	.mobile-multiple-tables-container table,
	.mobile-table-wrapper .multiple-tables-container table,
	.mobile-multiple-tables-container .multiple-tables-container table {
		width: 100% !important;
		max-width: 100vw !important;
		min-width: auto !important;
		table-layout: fixed !important;
	}
	
	/* Ensure all table cells respect the container width */
	.mobile-table-wrapper td,
	.mobile-multiple-tables-container td,
	.mobile-table-wrapper th,
	.mobile-multiple-tables-container th,
	.mobile-table-wrapper .multiple-tables-container td,
	.mobile-multiple-tables-container .multiple-tables-container td,
	.mobile-table-wrapper .multiple-tables-container th,
	.mobile-multiple-tables-container .multiple-tables-container th {
		max-width: none !important;
		word-wrap: break-word !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
	}

	/* Mobile Time Display */
	.mobile-table-wrapper .time,
	.mobile-multiple-tables-container .time {
		font-size: 11px;
		font-weight: 700;
		color: white !important;
		margin-bottom: 2px;
	}
	
	/* Comprehensive mobile table size override - catch all tables */
	.mobile-main table,
	.mobile-main .mobile-table-wrapper table,
	.mobile-main .mobile-multiple-tables-container table,
	.mobile-main .multiple-tables-container table,
	.mobile-main .main-table-wrapper table {
		width: 100% !important;
		max-width: 100vw !important;
		min-width: auto !important;
		table-layout: fixed !important;
	}
	
	/* Ensure all mobile table containers are properly sized */
	.mobile-main .mobile-table-wrapper,
	.mobile-main .mobile-multiple-tables-container,
	.mobile-main .multiple-tables-container {
		width: 100% !important;
		max-width: 100vw !important;
		margin: 0 auto !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch;
	}

	/* Mobile Loading State */
	.mobile-loading {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 40px 20px;
		color: var(--mobile-text);
		text-align: center;
	}

	.mobile-loading p {
		margin: 10px 0;
		font-size: 16px;
		font-weight: 500;
	}

	/* Mobile Settings Styles */
	.mobile-settings-content {
		padding: 20px 0;
	}

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

	.mobile-form-label {
		display: block;
		font-size: 16px;
		font-weight: 600;
		color: var(--mobile-text);
		margin-bottom: 12px;
	}

	.mobile-category-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.mobile-category-section {
		background: transparent;
		border-radius: 12px;
		padding: 16px;
		border: 1px solid var(--mobile-border);
	}

	.mobile-category-title {
		font-size: 18px;
		font-weight: 700;
		color: var(--mobile-text);
		margin: 0 0 16px 0;
		text-align: center;
	}



	.mobile-category-icon {
		width: 24px;
		height: 24px;
		object-fit: contain;
		flex-shrink: 0;
	}

	.mobile-options-section {
		margin-top: 24px;
		padding: 20px 16px;
		background: rgba(0, 0, 0, 0.02);
		border-radius: 16px;
		border: 1px solid var(--mobile-border);
	}

	.mobile-options-title {
		font-size: 18px;
		font-weight: 700;
		color: var(--mobile-text);
		margin: 0 0 20px 0;
		text-align: center;
	}

	.mobile-options-grid {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
		margin-bottom: 20px;
	}

	.mobile-option-btn {
		background: rgba(255, 255, 255, 0.05) !important;
		color: var(--mobile-text);
		border: 2px solid var(--mobile-border);
		border-radius: 16px;
		padding: 16px 12px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.3s ease;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 52px;
		-webkit-tap-highlight-color: transparent;
		text-align: center;
		line-height: 1.3;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	.mobile-option-btn:hover {
		background: rgba(0, 0, 0, 0.08) !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		border-color: var(--mobile-primary);
	}

	.mobile-option-btn.active {
		background: var(--mobile-primary) !important;
		color: white !important;
		border-color: var(--mobile-primary) !important;
		box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
	}

	.mobile-option-btn.active:hover {
		background: #0b5ed7 !important;
		box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
	}

	/* Mobile Time Travel Button - Enhanced Mobile Style */
	.mobile-option-btn#mobileTimeTravelBtn {
		width: 100% !important;
		min-width: auto !important;
		height: 56px !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		background: linear-gradient(135deg, #8B0000, #B22222) !important;
		color: white !important;
		border: 2px solid rgba(139, 0, 0, 0.3) !important;
		border-radius: 16px !important;
		padding: 16px 20px !important;
		transition: all 0.3s ease !important;
		box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3) !important;
	}

	.mobile-option-btn#mobileTimeTravelBtn.active {
		background: linear-gradient(135deg, #28a745, #20c997) !important;
		color: white !important;
		border: 2px solid rgba(40, 167, 69, 0.3) !important;
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
	}

	.mobile-option-btn#mobileTimeTravelBtn:hover {
		background: linear-gradient(135deg, #660000, #8B0000) !important;
		box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4) !important;
	}

	.mobile-option-btn#mobileTimeTravelBtn.active:hover {
		background: linear-gradient(135deg, #218838, #1ea085) !important;
		box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
	}

	/* Mobile Multiple Tables Button - Enhanced Mobile Style */
	.mobile-option-btn#mobileMultipleTablesToggle {
		width: 100% !important;
		min-width: auto !important;
		height: 56px !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		background: linear-gradient(135deg, #8B0000, #B22222) !important;
		color: white !important;
		border: 2px solid rgba(139, 0, 0, 0.3) !important;
		border-radius: 16px !important;
		padding: 16px 20px !important;
		transition: all 0.3s ease !important;
		box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3) !important;
	}

	.mobile-option-btn#mobileMultipleTablesToggle.active {
		background: linear-gradient(135deg, #28a745, #20c997) !important;
		color: white !important;
		border: 2px solid rgba(40, 167, 69, 0.3) !important;
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
	}

	.mobile-option-btn#mobileMultipleTablesToggle:hover {
		background: linear-gradient(135deg, #660000, #8B0000) !important;
		box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4) !important;
	}

	.mobile-option-btn#mobileMultipleTablesToggle.active:hover {
		background: linear-gradient(135deg, #218838, #1ea085) !important;
		box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4) !important;
	}

	/* Mobile Reset Button - Enhanced Mobile Style */
	.mobile-option-btn#mobileResetBtn {
		width: 100% !important;
		min-width: auto !important;
		height: 56px !important;
		font-size: 15px !important;
		font-weight: 700 !important;
		background: linear-gradient(135deg, #6c757d, #495057) !important;
		color: white !important;
		border: 2px solid rgba(108, 117, 125, 0.3) !important;
		border-radius: 16px !important;
		padding: 16px 20px !important;
		transition: all 0.3s ease !important;
		box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3) !important;
	}

	.mobile-option-btn#mobileResetBtn:hover {
		background: linear-gradient(135deg, #5a6268, #343a40) !important;
		box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4) !important;
	}

	.mobile-btn-group {
		display: flex;
		gap: 12px;
		margin-top: 24px;
	}

	.mobile-btn.secondary {
		background: transparent;
		color: var(--mobile-text);
		border: 2px solid var(--mobile-border);
	}

	.mobile-btn.secondary:hover {
		background: var(--mobile-border);
		color: var(--mobile-text);
	}

	.mobile-btn-group .mobile-btn {
		flex: 1;
	}

	/* Dark mode support for mobile buttons - enhanced */
	body.dark-mode .mobile-options-section {
		background: rgba(255, 255, 255, 0.02);
		border-color: rgba(255, 255, 255, 0.1);
	}

	body.dark-mode .mobile-option-btn {
		background: rgba(0, 0, 0, 0.2) !important;
		border-color: rgba(255, 255, 255, 0.1);
	}

	body.dark-mode .mobile-option-btn:hover {
		background: rgba(0, 0, 0, 0.3) !important;
	}

	body.dark-mode .mobile-option-btn#mobileTimeTravelBtn {
		background: linear-gradient(135deg, #8B0000, #B22222) !important;
		border: 2px solid rgba(139, 0, 0, 0.4) !important;
		box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4) !important;
	}

	body.dark-mode .mobile-option-btn#mobileTimeTravelBtn.active {
		background: linear-gradient(135deg, #28a745, #20c997) !important;
		border: 2px solid rgba(40, 167, 69, 0.4) !important;
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
	}

	body.dark-mode .mobile-option-btn#mobileTimeTravelBtn:hover {
		background: linear-gradient(135deg, #660000, #8B0000) !important;
		box-shadow: 0 6px 16px rgba(139, 0, 0, 0.5) !important;
	}

	body.dark-mode .mobile-option-btn#mobileTimeTravelBtn.active:hover {
		background: linear-gradient(135deg, #218838, #1ea085) !important;
		box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5) !important;
	}

	body.dark-mode .mobile-option-btn#mobileMultipleTablesToggle {
		background: linear-gradient(135deg, #8B0000, #B22222) !important;
		border: 2px solid rgba(139, 0, 0, 0.4) !important;
		box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4) !important;
	}

	body.dark-mode .mobile-option-btn#mobileMultipleTablesToggle.active {
		background: linear-gradient(135deg, #28a745, #20c997) !important;
		border: 2px solid rgba(40, 167, 69, 0.4) !important;
		box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4) !important;
	}

	body.dark-mode .mobile-option-btn#mobileMultipleTablesToggle:hover {
		background: linear-gradient(135deg, #660000, #8B0000) !important;
		box-shadow: 0 6px 16px rgba(139, 0, 0, 0.5) !important;
	}

	body.dark-mode .mobile-option-btn#mobileMultipleTablesToggle.active:hover {
		background: linear-gradient(135deg, #218838, #1ea085) !important;
		box-shadow: 0 6px 16px rgba(40, 167, 69, 0.5) !important;
	}

	/* Dark mode support for mobile reset button */
	body.dark-mode .mobile-option-btn#mobileResetBtn {
		background: linear-gradient(135deg, #6c757d, #495057) !important;
		border: 2px solid rgba(108, 117, 125, 0.4) !important;
		box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4) !important;
	}

	body.dark-mode .mobile-option-btn#mobileResetBtn:hover {
		background: linear-gradient(135deg, #5a6268, #343a40) !important;
		box-shadow: 0 6px 16px rgba(108, 117, 125, 0.5) !important;
	}
}
