/*
 * W2 Wiki - VRG Gaming Theme
 * Styled to match Virtual Rematch Gaming aesthetic
 */

/* Import Google Fonts - VRG Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap');

/* CSS Variables - VRG Theme */
:root {
	/* VRG Color Palette - Exact Colors from Layout.jsx */
	--vrg-primary: #38c494;
	--vrg-secondary: #1d212e;
	--vrg-tertiary: #161d20;
	--vrg-accent: #38c494;
	--primary-purple: #a855f7;
	--primary-blue: #3b82f6;
	--primary-green: #10b981;
	--primary-yellow: #f59e0b;
	--primary-orange: #f97316;
	--primary-red: #ef4444;
	
	/* Backgrounds - VRG Style */
	--bg-primary: #161d20;
	--bg-secondary: #1d212e;
	--bg-tertiary: #27313f;
	--bg-card: rgba(29, 33, 46, 0.8);
	--bg-card-hover: rgba(29, 33, 46, 0.95);
	--bg-header: linear-gradient(to right, rgba(22, 29, 32, 0.9) 0%, rgba(29, 33, 46, 0.9) 85%, rgba(56, 196, 148, 0.9) 100%);
	
	/* Text Colors */
	--text-primary: #ffffff;
	--text-secondary: #e2e8f0;
	--text-muted: #94a3b8;
	--text-accent: #38c494;
	
	/* Gradients - VRG Style */
	--gradient-primary: linear-gradient(to right, rgba(22, 29, 32, 0.8) 0%, rgba(29, 33, 46, 0.8) 85%, rgba(56, 196, 148, 0.8) 100%);
	--gradient-gaming: linear-gradient(135deg, #38c494 0%, #2dd4bf 100%);
	--gradient-success: linear-gradient(135deg, #38c494 0%, #10b981 100%);
	--gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
	--gradient-purple-teal: linear-gradient(135deg, #a855f7 0%, #38c494 100%);
	--gradient-teal-blue: linear-gradient(135deg, #38c494 0%, #3b82f6 100%);
	
	/* Shadows - VRG Style */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	--shadow-glow: 0 0 20px rgba(56, 196, 148, 0.3);
}

/* Reset & Base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background: var(--bg-primary) url('ico/1.png') center center fixed;
	background-size: cover;
	color: var(--text-primary);
	min-height: 100vh;
	overflow: hidden; /* Prevent body from scrolling */
	margin: 0;
	padding: 0;
}

/* Typography - VRG Style */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', sans-serif;
	font-weight: 800;
	margin-bottom: 1rem;
	color: var(--vrg-accent);
	text-shadow: 0 0 30px rgba(56, 196, 148, 0.3);
	letter-spacing: -0.02em;
	position: relative;
}

h1 {
	font-size: 2.5rem;
	font-weight: 900;
	margin-bottom: 1.5rem;
}

h2 {
	font-size: 2rem;
	font-weight: 800;
	margin-bottom: 1.2rem;
}

h3 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

p {
	margin: 1rem 0;
	color: var(--text-secondary);
	font-weight: 400;
}

/* Links - VRG Style */
a {
	color: var(--vrg-accent);
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
	font-weight: 500;
}

a:hover {
	color: var(--text-primary);
	text-shadow: 0 0 10px rgba(56, 196, 148, 0.5);
}

a::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--gradient-gaming);
	transition: width 0.3s ease;
}

a:hover::after {
	width: 100%;
}

/* Combined Header - VRG Style */
.logo-section {
	display: flex;
	align-items: center;
	gap: 15px;
}

.logo {
	width: 50px;
	height: 50px;
	background-image: url('ico/logoirl.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: drop-shadow(0 0 15px rgba(56, 196, 148, 0.6));
	flex-shrink: 0;
}

.page-title {
	font-size: 20px;
	font-weight: 800;
	color: var(--text-primary);
	white-space: nowrap;
}

.titledate {
	font-size: 12px;
	color: var(--text-muted);
	font-weight: 400;
	opacity: 0.8;
	margin-left: 10px;
}

/* Toolbar - VRG Style */
.toolbar {
	background: var(--bg-header);
	backdrop-filter: blur(12px);
	border: none;
	border-radius: 0;
	padding: 15px 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	box-shadow: var(--shadow-lg);
	margin: 0;
	position: sticky;
	top: 0;
	z-index: 100;
	overflow: visible;
	gap: 20px;
}

.nav-left {
	display: flex;
	align-items: center;
	gap: 20px;
	flex: 1;
}

.nav-center {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	justify-content: flex-end;
}

/* Navigation Section */
.nav-section {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

/* Tool Buttons - VRG Card Style */
a.tool {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	color: var(--text-secondary);
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 12px;
	transition: all 0.3s ease;
	text-transform: capitalize;
	letter-spacing: 0.5px;
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	box-sizing: border-box;
}

a.tool:hover {
	background: var(--bg-card-hover);
	border-color: var(--vrg-accent);
	transform: translateY(-2px);
	box-shadow: var(--shadow-glow);
	color: var(--text-primary);
}

a.tool::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--gradient-gaming);
	opacity: 0;
	transition: all 0.3s ease;
	z-index: -1;
}

a.tool:hover::before {
	left: 0;
	opacity: 0.1;
}

a.tool::after {
	display: none;
}

/* Search Input - VRG Style */
input.tool {
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 12px;
	color: var(--text-primary);
	padding: 12px 16px;
	font-size: 14px;
	transition: all 0.3s ease;
	min-width: 200px;
	height: 44px;
	box-sizing: border-box;
}

input.tool:focus {
	outline: none;
	border-color: var(--vrg-accent);
	box-shadow: 0 0 0 4px rgba(56, 196, 148, 0.1), var(--shadow-glow);
	background: var(--bg-card-hover);
}

input.tool::placeholder {
	color: var(--text-muted);
}

/* Search Form */
.search-form {
	position: relative;
}

/* Search Container */
.search-container {
	display: flex;
	align-items: center;
	background: var(--bg-card);
	backdrop-filter: blur(10px);
	border-radius: 12px;
	padding: 0 16px;
	border: 1px solid rgba(56, 196, 148, 0.2);
	transition: all 0.3s ease;
	min-width: 280px;
	max-width: 350px;
	height: 44px;
	cursor: text;
}

.search-container:hover,
.search-container:focus-within {
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px rgba(56, 196, 148, 0.1);
}

.search-container input,
.search-form input {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.search-container svg {
	outline: none !important;
}

.search-icon {
	color: var(--text-muted);
	margin-right: 10px;
	transition: color 0.3s ease;
	flex-shrink: 0;
}

.search-container:focus-within .search-icon {
	color: var(--accent-primary);
}

#search-input {
	flex: 1;
	border: none;
	background: transparent;
	color: var(--text-primary);
	font-size: 14px;
	outline: none;
	height: 42px;
	line-height: 42px;
}

#search-input::placeholder {
	color: var(--text-muted);
}

.search-results {
	position: absolute;
	top: 100%;
	left: -50px;
	right: -50px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	margin-top: 8px;
	max-height: 400px;
	overflow-y: auto;
	display: none;
	z-index: 1000;
	min-width: 400px;
}

.search-results.show {
	display: block;
}

.search-result {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border-color);
	text-decoration: none;
	color: var(--text-primary);
	transition: background-color 0.2s ease;
}

.search-result:hover {
	background: var(--bg-hover);
}

.search-result:last-child {
	border-bottom: none;
}

.search-result-icon {
	width: 16px;
	height: 16px;
	margin-right: 12px;
	color: var(--accent-primary);
}

.search-result-content {
	flex: 1;
}

.search-result-title {
	font-weight: 500;
	margin-bottom: 2px;
}

.search-result-snippet {
	font-size: 12px;
	color: var(--text-muted);
	line-height: 1.4;
}

.search-no-results {
	padding: 20px;
	text-align: center;
	color: var(--text-muted);
	font-style: italic;
}

/* Search Results Page Styling */
.search-results-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.search-result-item {
	display: block;
	padding: 20px;
	background: var(--bg-secondary);
	border-radius: 12px;
	border: 1px solid var(--border-color);
	transition: all 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.search-result-item:hover {
	background: var(--bg-hover);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
	color: inherit;
}

.search-result-title {
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--accent-primary);
	font-size: 18px;
}

.search-matches {
	margin-top: 24px;
	color: var(--text-muted);
	font-style: italic;
	text-align: center;
}

.search-result-snippet {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.5;
}

.search-result-snippet mark {
	background: rgba(56, 196, 148, 0.2);
	color: var(--accent-primary);
	padding: 2px 4px;
	border-radius: 4px;
	font-weight: 500;
}

/* Pages Sidebar for Home Page */
.pages-sidebar {
	width: 280px;
	background: var(--bg-secondary);
	border-radius: 16px;
	padding: 20px;
	margin-right: 30px;
	border: 1px solid var(--border-color);
	height: fit-content;
	position: sticky;
	top: 20px;
}

.pages-sidebar h3 {
	color: var(--accent-primary);
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--border-color);
}

.pages-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.page-link {
	display: block;
	padding: 10px 12px;
	background: var(--bg-primary);
	color: var(--text-primary);
	text-decoration: none;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: all 0.2s ease;
	font-size: 14px;
}

.page-link:hover {
	background: var(--bg-hover);
	color: var(--accent-primary);
	transform: translateX(4px);
	box-shadow: var(--shadow-md);
}

.sidebar-category {
	margin-bottom: 20px;
}

.category-title {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	padding: 6px 8px;
	background: var(--bg-tertiary);
	border-radius: 6px;
	border-left: 3px solid var(--accent-primary);
}

/* Admin Dropdown - VRG Card Style */
.admin-dropdown {
	position: relative;
	display: inline-block;
}

.admin-dropdown-btn {
	background: var(--gradient-gaming);
	color: var(--text-primary);
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	border: 1px solid rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.3);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	user-select: none;
	position: relative;
	overflow: hidden;
	height: 44px;
	box-sizing: border-box;
}

.admin-dropdown.active .admin-dropdown-btn {
	background: linear-gradient(135deg, #2dd4bf 0%, #38c494 100%);
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(56, 196, 148, 0.5);
}

.admin-dropdown-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.6s ease;
}

.admin-dropdown.active .admin-dropdown-btn::before {
	width: 300px;
	height: 300px;
}

/* Dropdown Content - VRG Card Style */
.admin-dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bg-secondary);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 16px;
	box-shadow: var(--shadow-2xl), 0 0 40px rgba(0, 0, 0, 0.5);
	z-index: 1000;
	min-width: 180px;
	max-width: 250px;
	margin-top: 8px;
	overflow: hidden;
	animation: dropdownSlideIn 0.3s ease-out;
}

.admin-dropdown.active .admin-dropdown-content {
	display: block;
}

@keyframes dropdownSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.admin-dropdown-content a {
	display: block;
	padding: 16px 20px;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid rgba(56, 196, 148, 0.1);
	position: relative;
	overflow: hidden;
}

.admin-dropdown-content a:last-child {
	border-bottom: none;
}

.admin-dropdown-content a:hover {
	background: var(--bg-card);
	color: var(--text-primary);
	padding-left: 28px;
	text-shadow: 0 0 10px rgba(56, 196, 148, 0.5);
}

.admin-dropdown-content a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 4px;
	height: 100%;
	background: var(--gradient-gaming);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.admin-dropdown-content a:hover::before {
	transform: scaleY(1);
}

.admin-dropdown-content a::after {
	display: none;
}

/* Dropdown Divider */
.dropdown-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(56, 196, 148, 0.3), transparent);
	margin: 8px 0;
}

/* Admin Login Button - VRG Style */
.admin-login-btn {
	background: rgba(56, 196, 148, 0.1);
	border: 1px solid rgba(56, 196, 148, 0.3);
	color: var(--text-secondary);
	padding: 12px 20px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 1px;
	backdrop-filter: blur(10px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	box-sizing: border-box;
}

.admin-login-btn:hover {
	background: rgba(56, 196, 148, 0.2);
	border-color: var(--vrg-accent);
	transform: translateY(-2px);
	box-shadow: var(--shadow-glow);
	color: var(--text-primary);
}

.admin-login-btn::after {
	display: none;
}

/* Language Switcher */
.language-switcher {
	position: relative;
	display: inline-block;
}

.language-btn {
	background: rgba(56, 196, 148, 0.1);
	color: var(--vrg-accent);
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	height: 44px;
	box-sizing: border-box;
}

.language-switcher.active .language-btn,
.language-btn:hover {
	background: rgba(56, 196, 148, 0.2);
	border-color: var(--vrg-accent);
	transform: translateY(-1px);
}

.language-dropdown-content {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--bg-secondary);
	border: 1px solid rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	box-shadow: var(--shadow-xl);
	min-width: 180px;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	margin-top: 8px;
	backdrop-filter: blur(20px);
}

.language-switcher.active .language-dropdown-content {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.language-dropdown-content a {
	display: block;
	padding: 12px 16px;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 500;
	border-bottom: 1px solid rgba(56, 196, 148, 0.1);
}

.language-dropdown-content a:last-child {
	border-bottom: none;
}

.language-dropdown-content a:hover {
	background: rgba(56, 196, 148, 0.1);
	color: var(--vrg-accent);
	transform: translateX(4px);
}

.language-dropdown-content a.active {
	background: rgba(56, 196, 148, 0.2);
	color: var(--vrg-accent);
	font-weight: 700;
}

.language-icon {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.language-switcher.active .dropdown-arrow {
	transform: rotate(180deg);
}

/* Discord Button - VRG Style */
.discord-btn {
	background: linear-gradient(135deg, #5865F2 0%, #404EED 100%);
	color: var(--text-primary);
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(88, 101, 242, 0.3);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	text-transform: capitalize;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	user-select: none;
	position: relative;
	overflow: hidden;
	height: 44px;
	box-sizing: border-box;
	white-space: nowrap;
	min-width: fit-content;
}

.discord-btn:hover {
	background: linear-gradient(135deg, #4752C4 0%, #3C45A5 100%);
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(88, 101, 242, 0.5);
	color: var(--text-primary);
}

.discord-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.6s ease;
}

.discord-btn:hover::before {
	width: 300px;
	height: 300px;
}

/* Bug Report Button - VRG Style */
.bug-report-btn {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: var(--text-primary);
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	text-transform: capitalize;
	letter-spacing: 0.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	user-select: none;
	position: relative;
	overflow: hidden;
	height: 44px;
	box-sizing: border-box;
	white-space: nowrap;
	min-width: fit-content;
}

.bug-report-btn:hover {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(239, 68, 68, 0.5);
	color: var(--text-primary);
}

.bug-report-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	transition: all 0.6s ease;
}

.bug-report-btn:hover::before {
	width: 300px;
	height: 300px;
}

.bug-icon {
	color: var(--text-primary);
	filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.discord-btn::after {
	display: none;
}

.discord-logo {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.discord-btn:hover .discord-logo {
	transform: scale(1.1);
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Admin Icons */
.admin-icon,
.login-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	color: var(--text-primary) !important;
	filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.dropdown-arrow {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	margin-left: 4px;
	color: var(--text-primary) !important;
	filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

.admin-dropdown.active .dropdown-arrow {
	transform: rotate(180deg);
}

.admin-dropdown-btn:hover .admin-icon,
.admin-login-btn:hover .login-icon {
	transform: scale(1.1);
	filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7));
	color: var(--text-primary) !important;
}

/* Navigation Icons */
.nav-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 2px rgba(56, 196, 148, 0.3));
}

a.tool:hover .nav-icon {
	transform: scale(1.1);
	filter: drop-shadow(0 0 4px rgba(56, 196, 148, 0.5));
}

/* Content Container for proper scrolling */
.content-container {
	position: fixed;
	top: 74px; /* Height of toolbar */
	left: 0;
	right: 0;
	bottom: 0;
	overflow-y: auto;
	overflow-x: hidden;
	background: url('ico/1.png') center center fixed;
	background-size: cover;
	background-attachment: fixed;
}

/* Page Layout with TOC */
.page-layout {
	display: flex;
	max-width: 1400px;
	margin: 0 auto;
	gap: 30px;
	padding: 30px;
}

/* Table of Contents Sidebar */
.toc-sidebar {
	width: 280px;
	flex-shrink: 0;
	background: var(--bg-card);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(56, 196, 148, 0.1);
	border-radius: 16px;
	padding: 24px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	position: sticky;
	top: 20px;
	box-shadow: var(--shadow-lg);
	transition: all 0.3s ease;
}

.toc-sidebar:empty {
	display: none;
}

.toc-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--vrg-accent);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(56, 196, 148, 0.2);
	display: flex;
	align-items: center;
	gap: 8px;
}

.toc-icon {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.toc-item {
	margin: 0;
	padding: 0;
}

.toc-link {
	display: block;
	padding: 8px 12px;
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	margin: 2px 0;
	line-height: 1.4;
}

.toc-link:hover {
	background: rgba(56, 196, 148, 0.1);
	color: var(--text-primary);
	border-left-color: var(--vrg-accent);
	transform: translateX(4px);
}

.toc-link.active {
	background: rgba(56, 196, 148, 0.15);
	color: var(--vrg-accent);
	border-left-color: var(--vrg-accent);
	font-weight: 600;
}

.toc-link::after {
	display: none;
}

/* TOC Heading Levels */
.toc-h1 { padding-left: 12px; font-weight: 600; }
.toc-h2 { padding-left: 24px; font-size: 13px; }
.toc-h3 { padding-left: 36px; font-size: 12px; opacity: 0.9; }
.toc-h4 { padding-left: 48px; font-size: 12px; opacity: 0.8; }
.toc-h5 { padding-left: 60px; font-size: 11px; opacity: 0.7; }
.toc-h6 { padding-left: 72px; font-size: 11px; opacity: 0.6; }

/* Main Content - VRG Card Layout */
.main {
	padding: 40px;
	flex: 1;
	background: rgba(29, 33, 46, 0.85);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(56, 196, 148, 0.1);
	border-radius: 24px;
	box-shadow: var(--shadow-2xl);
	position: relative;
	overflow: hidden;
	min-height: calc(100vh - 200px);
}


.main::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--gradient-gaming);
	opacity: 0.5;
}

/* Lists - VRG Style */
ul, ol {
	margin: 1rem 0;
	padding-left: 2rem;
	color: var(--text-secondary);
}

li {
	margin: 0.8rem 0;
	line-height: 1.8;
	position: relative;
}

ul li::marker {
	color: var(--vrg-accent);
}

ol li::marker {
	color: var(--vrg-accent);
	font-weight: 700;
}

/* Code Blocks - VRG Style */
pre {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 14px;
	background: var(--bg-primary);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 16px;
	padding: 24px;
	margin: 2rem 0;
	overflow-x: auto;
	box-shadow: var(--shadow-lg), inset 0 2px 10px rgba(0, 0, 0, 0.3);
	white-space: pre-wrap;
	word-wrap: break-word;
	position: relative;
}

pre::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--gradient-gaming);
	border-radius: 16px 16px 0 0;
}

code {
	font-family: 'JetBrains Mono', 'Fira Code', monospace;
	font-size: 14px;
	background: rgba(56, 196, 148, 0.1);
	color: var(--vrg-accent);
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: 500;
	border: 1px solid rgba(56, 196, 148, 0.2);
}

/* Tables - VRG Card Style */
table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin: 2rem 0;
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-lg);
}

th {
	background: var(--gradient-gaming);
	color: var(--text-primary);
	padding: 16px;
	text-align: left;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	border-bottom: 2px solid rgba(56, 196, 148, 0.3);
}

td {
	padding: 16px;
	border-bottom: 1px solid rgba(56, 196, 148, 0.1);
	color: var(--text-secondary);
	transition: all 0.3s ease;
}

tr:hover td {
	background: rgba(56, 196, 148, 0.05);
	color: var(--text-primary);
}

tr:last-child td {
	border-bottom: none;
}

/* Blockquotes - VRG Style */
blockquote {
	background: linear-gradient(135deg, rgba(56, 196, 148, 0.1) 0%, rgba(45, 212, 191, 0.1) 100%);
	border-left: 4px solid var(--vrg-accent);
	margin: 2rem 0;
	padding: 24px;
	border-radius: 16px;
	font-style: italic;
	position: relative;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(56, 196, 148, 0.2);
}

blockquote::before {
	content: '"';
	position: absolute;
	top: -10px;
	left: 20px;
	font-size: 60px;
	color: var(--vrg-accent);
	opacity: 0.3;
	font-style: normal;
	font-weight: 900;
}

/* Forms - VRG Style */
textarea {
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	width: 100%;
	background: var(--bg-primary);
	color: var(--text-primary);
	border: 2px solid rgba(56, 196, 148, 0.3);
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s ease;
	resize: vertical;
	backdrop-filter: blur(10px);
}

textarea:focus {
	outline: none;
	border-color: var(--vrg-accent);
	box-shadow: 0 0 0 4px rgba(56, 196, 148, 0.1), var(--shadow-glow);
	background: var(--bg-secondary);
}

input[type="text"],
input[type="password"],
input[type="file"] {
	font-size: 14px;
	padding: 16px 20px;
	background: var(--bg-card);
	border: 2px solid rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	color: var(--text-primary);
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	font-weight: 500;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="file"]:focus {
	outline: none;
	border-color: var(--vrg-accent);
	box-shadow: 0 0 0 4px rgba(56, 196, 148, 0.1), var(--shadow-glow);
}

/* Buttons - VRG Style */
input[type="submit"],
input[type="button"],
button {
	background: var(--gradient-gaming);
	color: var(--text-primary);
	border: none;
	padding: 14px 28px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.3);
	margin: 0 8px;
	position: relative;
	overflow: hidden;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(56, 196, 148, 0.5);
}

input[type="submit"]:active,
input[type="button"]:active,
button:active {
	transform: translateY(-1px);
}

/* Cancel Button */
#cancel {
	background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
	box-shadow: var(--shadow-lg), 0 0 20px rgba(107, 114, 128, 0.3);
}

#cancel:hover {
	box-shadow: var(--shadow-xl), 0 0 30px rgba(107, 114, 128, 0.5);
}

/* Notes and Alerts - VRG Style */
.note {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
	border: 2px solid var(--primary-yellow);
	border-radius: 16px;
	padding: 20px 24px;
	margin: 24px 0;
	color: var(--text-primary);
	font-weight: 600;
	box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.2);
	backdrop-filter: blur(10px);
	position: relative;
}

.note::before {
	content: '⚠️';
	position: absolute;
	top: 20px;
	right: 24px;
	font-size: 20px;
}

/* Images - VRG Style */
img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: var(--shadow-xl);
	margin: 1.5rem 0;
	border: 1px solid rgba(56, 196, 148, 0.1);
}

/* Horizontal Rule - VRG Style */
hr {
	border: none;
	height: 2px;
	background: var(--gradient-gaming);
	margin: 3rem 0;
	border-radius: 1px;
	box-shadow: 0 0 10px rgba(56, 196, 148, 0.5);
}

/* Admin Login Form - VRG Style */
.admin-login-form {
	max-width: 450px;
	margin: 3rem auto;
	padding: 3rem;
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 24px;
	box-shadow: var(--shadow-2xl);
	text-align: center;
	backdrop-filter: blur(20px);
	position: relative;
	overflow: hidden;
}

.admin-login-form::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(56, 196, 148, 0.1), transparent);
	animation: rotate 8s linear infinite;
}

@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.admin-login-form h2 {
	margin-bottom: 1.5rem;
	color: var(--vrg-accent);
	position: relative;
	z-index: 1;
}

.admin-login-form p {
	margin: 1.5rem 0;
	position: relative;
	z-index: 1;
}

.admin-login-form input[type="password"] {
	width: 100%;
	max-width: 300px;
	margin: 0 auto 1.5rem;
	display: block;
	position: relative;
	z-index: 1;
}

.admin-login-form input[type="submit"],
.admin-login-form input[type="button"] {
	margin: 8px;
	position: relative;
	z-index: 1;
}

/* Discord Login Styles */
.login-methods {
	margin: 2rem 0;
	position: relative;
	z-index: 1;
}

.login-methods .discord-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
	color: white;
	padding: 16px 32px;
	border: none;
	border-radius: 16px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
	min-width: 240px;
	backdrop-filter: blur(10px);
}

.login-methods .discord-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
	background: linear-gradient(135deg, #4752C4 0%, #5865F2 100%);
	text-decoration: none;
	color: white;
}

.discord-icon {
	font-size: 20px;
	filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.login-divider {
	margin: 2rem 0;
	position: relative;
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	position: relative;
	z-index: 1;
}

.login-divider::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(to right, transparent, rgba(56, 196, 148, 0.3), transparent);
	z-index: -1;
}

/* Utility Page Container */
.utility-page-container {
	max-width: 900px;
	margin: 2rem auto;
	padding: 2rem;
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 24px;
	box-shadow: var(--shadow-2xl);
	backdrop-filter: blur(20px);
	position: relative;
	overflow: hidden;
}

.utility-page-container::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(56, 196, 148, 0.05), transparent);
	animation: rotate 12s linear infinite;
	z-index: 0;
}

.utility-page-container > * {
	position: relative;
	z-index: 1;
}

/* Home Page Container - Wider for welcome content */
.home-page-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 3rem;
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 24px;
	box-shadow: var(--shadow-2xl);
	backdrop-filter: blur(20px);
	position: relative;
	overflow: hidden;
}

.home-page-container::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(56, 196, 148, 0.08), transparent);
	animation: rotate 15s linear infinite;
	z-index: 0;
}

.home-page-container > * {
	position: relative;
	z-index: 1;
}

/* Notification System */
.notification-container {
	position: fixed;
	top: 90px;
	right: 20px;
	z-index: 10000;
	max-width: 400px;
	pointer-events: none;
}

.notification {
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: var(--shadow-xl);
	backdrop-filter: blur(20px);
	transform: translateX(450px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: auto;
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.notification.show {
	transform: translateX(0);
	opacity: 1;
}

.notification:hover {
	transform: translateX(-2px);
	box-shadow: var(--shadow-xl), 0 0 0 1px rgba(56, 196, 148, 0.2);
}

.notification.success {
	border-color: rgba(16, 185, 129, 0.5);
}

.notification.success::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #10b981;
}

.notification.error {
	border-color: rgba(239, 68, 68, 0.5);
}

.notification.error::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #ef4444;
}

.notification-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.notification-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.notification-icon.success {
	color: #10b981;
}

.notification-icon.error {
	color: #ef4444;
}

.notification-text {
	color: var(--text-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

/* Removed close button - notifications are now click-to-dismiss */

/* Input Dialog Notifications */
.notification.input-dialog {
	min-width: 400px;
	cursor: default;
}

.notification.confirmation {
	min-width: 350px;
	cursor: default;
}

.notification.input-dialog .notification-content {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.notification.input-dialog .notification-text {
	text-align: center;
	margin-bottom: 8px;
}

.notification-input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid rgba(56, 196, 148, 0.3);
	border-radius: 8px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	font-size: 14px;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.notification-input:focus {
	outline: none;
	border-color: var(--vrg-accent);
	box-shadow: 0 0 0 3px rgba(56, 196, 148, 0.1);
}

.notification-input::placeholder {
	color: var(--text-secondary);
}

.notification-buttons {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 8px;
}

.notification-btn {
	padding: 8px 20px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.notification-btn.confirm-btn {
	background: var(--vrg-accent);
	color: white;
}

.notification-btn.confirm-btn:hover {
	background: #2ca581;
	transform: translateY(-1px);
}

.notification-btn.cancel-btn {
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-btn.cancel-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: var(--text-primary);
}

.notification-icon.info {
	color: var(--vrg-accent);
}

/* Scrollbar - VRG Style */
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

::-webkit-scrollbar-track {
	background: var(--bg-primary);
	border-radius: 6px;
}

::-webkit-scrollbar-thumb {
	background: var(--gradient-gaming);
	border-radius: 6px;
	box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #38c494 0%, #2dd4bf 100%);
}

/* Animations - VRG Style */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.main > * {
	animation: fadeIn 0.6s ease-out;
}

/* Hover Effects - VRG Style */
.main a:not(.tool):not(.admin-dropdown-btn):not(.admin-login-btn) {
	transition: all 0.3s ease;
}

.main a:not(.tool):not(.admin-dropdown-btn):not(.admin-login-btn):hover {
	transform: translateY(-1px);
	text-shadow: 0 4px 8px rgba(56, 196, 148, 0.3);
}

/* Responsive Design - VRG Style */
@media (max-width: 768px) {
	.toolbar {
		padding: 12px 20px;
		flex-direction: column;
		align-items: stretch;
		gap: 15px;
	}
	
	.logo-section {
		justify-content: center;
		order: 1;
	}
	
	.nav-section {
		justify-content: center;
		order: 2;
		flex-wrap: wrap;
		gap: 10px;
	}
	
	
	.logo {
		width: 40px;
		height: 40px;
	}
	
	.page-title {
		font-size: 18px;
	}
	
	.main {
		padding: 24px;
		margin: 15px;
		border-radius: 16px;
	}
	
	h1 {
		font-size: 2rem;
	}
	
	h2 {
		font-size: 1.75rem;
	}
	
	h3 {
		font-size: 1.5rem;
	}
	
	a.tool {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	input.tool {
		min-width: 150px;
		padding: 10px 14px;
	}
}

@media (max-width: 480px) {
	.toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	
	a.tool {
		width: 100%;
		text-align: center;
		margin: 4px 0;
	}
	
	input.tool {
		width: 100%;
		min-width: unset;
	}
	
	.titlebar {
		flex-direction: column;
		align-items: flex-start;
		padding-left: 20px;
		text-align: left;
	}
	
	.titlebar::after {
		position: static;
		transform: none;
		margin-bottom: 10px;
	}
	
	
	.discord-btn {
		padding: 10px 16px;
		font-size: 13px;
	}
	
	.admin-dropdown-content {
		right: 50%;
		transform: translateX(50%);
		left: auto;
	}
}

/* Special Effects - VRG Gaming Elements */
.gaming-badge {
	display: inline-block;
	background: var(--gradient-gaming);
	color: var(--text-primary);
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.3);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.3);
	}
	50% {
		box-shadow: var(--shadow-xl), 0 0 30px rgba(56, 196, 148, 0.5);
	}
}

/* Loading Animation - VRG Style */
@keyframes loading {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.loading {
	background: linear-gradient(270deg, var(--primary-purple), var(--primary-blue), var(--primary-green));
	background-size: 400% 400%;
	animation: loading 3s ease infinite;
}

/* Modern Page List Styles - VRG Design */
.page-list-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.page-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid rgba(56, 196, 148, 0.3);
	position: relative;
}

.page-list-header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100px;
	height: 2px;
	background: var(--gradient-gaming);
	border-radius: 1px;
}

.page-list-title {
	font-size: 2.5rem;
	font-weight: 900;
	margin: 0;
	background: var(--gradient-gaming);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 0 30px rgba(56, 196, 148, 0.3);
}

.page-list-stats {
	color: var(--text-muted);
	font-size: 14px;
	font-weight: 600;
	background: rgba(56, 196, 148, 0.1);
	padding: 8px 16px;
	border-radius: 20px;
	border: 1px solid rgba(56, 196, 148, 0.3);
}

.admin-notice {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(56, 196, 148, 0.1) 100%);
	border: 2px solid rgba(56, 196, 148, 0.3);
	border-radius: 10px;
	padding: 10px 16px;
	margin-bottom: 1rem;
	color: var(--text-primary);
	font-weight: 600;
	font-size: 13px;
	text-align: center;
	backdrop-filter: blur(10px);
	box-shadow: var(--shadow-lg), 0 0 20px rgba(56, 196, 148, 0.2);
}

.page-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin: 0;
}

.page-card {
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 16px;
	padding: 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(20px);
	box-shadow: var(--shadow-md);
}

.page-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl), 0 0 30px rgba(56, 196, 148, 0.3);
	border-color: var(--vrg-accent);
	background: var(--bg-card-hover);
}

.page-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-gaming);
	opacity: 0.7;
}

.page-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 12px;
}

.page-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.3;
	word-break: break-word;
}

.page-name-editable {
	font-size: 18px;
	font-weight: 700;
	color: var(--vrg-accent);
	line-height: 1.3;
	cursor: pointer;
	word-break: break-word;
	transition: all 0.3s ease;
	position: relative;
}

.page-name-editable:hover {
	color: var(--text-primary);
	text-shadow: 0 0 10px rgba(56, 196, 148, 0.5);
	transform: translateX(2px);
}

.page-name-editable::after {
	content: '✏️';
	position: absolute;
	right: -25px;
	top: 0;
	font-size: 12px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.page-name-editable:hover::after {
	opacity: 1;
}

.page-actions {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(56, 196, 148, 0.3);
	z-index: 999999998;
	position: relative;
}

.view-btn {
	background: rgba(56, 196, 148, 0.1);
	color: var(--vrg-accent);
}

.view-btn:hover {
	background: rgba(56, 196, 148, 0.2);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(56, 196, 148, 0.3);
}

.edit-btn {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
	border-color: rgba(59, 130, 246, 0.3);
}

.edit-btn:hover {
	background: rgba(59, 130, 246, 0.2);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.delete-btn {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border-color: rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
	background: rgba(239, 68, 68, 0.2);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn::after {
	display: none;
}

.page-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(56, 196, 148, 0.1);
}

.page-modified {
	font-weight: 600;
}

.page-time-ago {
	font-style: italic;
	color: var(--vrg-accent);
}

/* Responsive Design for Page Grid */
@media (max-width: 768px) {
	.page-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.page-list-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.page-list-title {
		font-size: 2rem;
	}
	
	.page-card {
		padding: 16px;
	}
	
	.action-btn {
		width: 28px;
		height: 28px;
		font-size: 12px;
	}
}

/* Table of Contents Style Page Listing */
.page-toc-container {
	max-width: 900px;
	margin: 0 auto;
	background: var(--bg-card);
	border: 1px solid rgba(56, 196, 148, 0.2);
	border-radius: 16px;
	padding: 20px;
	box-shadow: var(--shadow-xl);
}

.page-toc-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(56, 196, 148, 0.2);
}

.page-toc-title {
	color: var(--vrg-accent);
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.page-toc-icon {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.page-toc-stats {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
}

.category-section {
	margin-bottom: 20px;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	padding: 8px 12px;
	background: rgba(56, 196, 148, 0.1);
	border-radius: 10px;
	border: 1px solid rgba(56, 196, 148, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.category-header:hover {
	background: rgba(56, 196, 148, 0.15);
	transform: translateY(-1px);
}

.category-title {
	color: var(--vrg-accent);
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

.category-name-editable {
	cursor: pointer;
	padding: 2px 4px;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.category-name-editable:hover {
	background: rgba(56, 196, 148, 0.1);
	transform: scale(1.02);
}

.category-rename-input {
	font-family: inherit;
	outline: none;
}

.category-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.category-toggle {
	color: var(--vrg-accent);
	font-size: 16px;
	transition: transform 0.3s ease;
}

.category-collapsed .category-toggle {
	transform: rotate(-90deg);
}

.category-delete-btn {
	background: none;
	border: none;
	color: #ef4444;
	font-size: 14px;
	padding: 4px;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	opacity: 0;
}

.category-header:hover .category-delete-btn {
	opacity: 1;
}

.category-delete-btn:hover {
	background: rgba(239, 68, 68, 0.1);
	transform: scale(1.1);
}

.category-count {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 500;
	background: rgba(56, 196, 148, 0.2);
	padding: 2px 6px;
	border-radius: 10px;
}

.page-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	transition: all 0.3s ease;
}

.category-collapsed .page-toc-list {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
}

.page-toc-item {
	margin: 0;
	padding: 0;
	position: relative;
}

.page-toc-item.dragging {
	opacity: 0.5;
	transform: rotate(2deg);
}

.page-toc-item.drag-over {
	border-top: 2px solid var(--vrg-accent);
}

.page-toc-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 6px;
	transition: all 0.3s ease;
	border-left: 3px solid transparent;
	margin: 1px 0;
	position: relative;
	cursor: pointer;
}

.page-toc-link:hover {
	background: rgba(56, 196, 148, 0.1);
	border-left-color: var(--vrg-accent);
	transform: translateX(4px);
}

.page-toc-name {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
}

.drag-handle {
	color: var(--text-muted);
	cursor: grab;
	padding: 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.page-toc-item:hover .drag-handle {
	opacity: 1;
}

.empty-category-drop-zone {
	min-height: 40px;
	border: 2px dashed rgba(56, 196, 148, 0.3);
	border-radius: 6px;
	margin: 6px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	background: rgba(56, 196, 148, 0.05);
}

.empty-category-drop-zone.drag-over {
	border-color: var(--vrg-accent);
	background: rgba(56, 196, 148, 0.15);
	border-style: solid;
}

.empty-drop-message {
	color: var(--text-secondary);
	font-size: 13px;
	font-style: italic;
	text-align: center;
	padding: 8px;
}

.drag-handle:active {
	cursor: grabbing;
}

.page-toc-actions {
	display: flex;
	gap: 6px;
	align-items: center;
}

.page-meta-info {
	color: var(--text-secondary);
	font-size: 12px;
	font-weight: 400;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.page-toc-link:hover .page-meta-info {
	opacity: 1;
}

/* Admin category management */
.admin-category-controls {
	display: flex;
	gap: 8px;
	align-items: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.category-header:hover .admin-category-controls {
	opacity: 1;
}

.add-category-btn {
	background: rgba(56, 196, 148, 0.2);
	color: var(--vrg-accent);
	border: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 4px;
	margin-bottom: 16px;
}

.add-category-btn:hover {
	background: rgba(56, 196, 148, 0.3);
	transform: translateY(-1px);
}

.uncategorized-section {
	border: 2px dashed rgba(56, 196, 148, 0.3);
	border-radius: 12px;
	padding: 20px;
	background: rgba(56, 196, 148, 0.05);
}

.uncategorized-section .category-title {
	color: var(--text-secondary);
	font-style: italic;
}

/* Page Top Controls */
.page-top-controls {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
}

.page-edit-btn-top {
	background: var(--vrg-accent);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-md);
}

.page-edit-btn-top:hover {
	background: #2dd4aa;
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	color: white;
}

.page-edit-btn-top .edit-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Go to Top Button */
.go-to-top-btn {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--gradient-gaming);
	color: white;
	border: none;
	border-radius: 12px;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	transition: all 0.3s ease;
	z-index: 1000;
	font-size: 20px;
	font-weight: bold;
	font-family: 'Inter', sans-serif;
}

.go-to-top-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl);
	background: linear-gradient(135deg, #2dd4bf 0%, #38c494 100%);
}

.go-to-top-btn svg {
	fill: currentColor;
}

/* Hide/Show Button Styling */
.hide-btn, .show-btn {
	/* Force exact same dimensions and properties as other action buttons */
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	margin: 0;
	box-sizing: border-box;
	backdrop-filter: none !important;
	box-shadow: none !important;
	outline: none !important;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.hide-btn {
	background: rgba(245, 158, 11, 0.1);
	color: #f59e0b;
	border-color: rgba(245, 158, 11, 0.3);
}

.hide-btn:hover {
	background: rgba(245, 158, 11, 0.2);
	transform: scale(1.1);
}

.show-btn {
	background: rgba(16, 185, 129, 0.1);
	color: #10b981;
	border-color: rgba(16, 185, 129, 0.3);
}

.show-btn:hover {
	background: rgba(16, 185, 129, 0.2);
	transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
	.page-toc-container {
		padding: 20px;
		margin: 10px;
	}
	
	.page-top-controls {
		position: relative;
		top: 0;
		right: 0;
		margin-bottom: 20px;
		display: flex;
		justify-content: flex-end;
	}
	
	.go-to-top-btn {
		bottom: 20px;
		right: 20px;
		width: 45px;
		height: 45px;
	}
	
	.page-toc-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
	
	.page-toc-title {
		font-size: 24px;
	}
	
	.page-toc-link {
		padding: 10px 12px;
	}
	
	.drag-handle {
		opacity: 1;
	}
}

/* Admin Panel Styles */
.admin-panel {
	padding: 20px;
	max-width: 1200px;
	margin: 20px auto 0;
	background: var(--bg-card);
	border-radius: 15px;
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(56, 196, 148, 0.1);
}

.admin-panel h1 {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 2rem;
	font-weight: 800;
	color: var(--vrg-accent);
	margin-bottom: 25px;
	text-shadow: 0 0 20px rgba(56, 196, 148, 0.3);
	border-bottom: 2px solid var(--vrg-accent);
	padding-bottom: 15px;
}

.admin-icon {
	color: var(--vrg-accent);
	filter: drop-shadow(0 0 8px rgba(56, 196, 148, 0.3));
}

.admin-section {
	margin-bottom: 25px;
	padding: 20px;
	background: rgba(29, 33, 46, 0.6);
	border-radius: 12px;
	border: 1px solid rgba(56, 196, 148, 0.1);
	backdrop-filter: blur(10px);
}

.admin-section:first-of-type {
	margin-top: 0;
}

.admin-section h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 18px;
	padding-bottom: 10px;
}

.section-icon {
	color: var(--vrg-accent);
	filter: drop-shadow(0 0 8px rgba(56, 196, 148, 0.3));
}

.bulk-actions {
	margin-bottom: 20px;
}

.bulk-actions h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 12px;
}

/* Fix spacing between file management section title and table */
.admin-section h3 + .pages-table-container {
	margin-top: 12px;
}

.admin-section h3 {
	margin-bottom: 8px;
}

.download-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.admin-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border: none;
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.admin-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left 0.5s;
}

.admin-btn:hover::before {
	left: 100%;
}

.admin-btn.secondary {
	background: var(--gradient-teal-blue);
	color: white;
	box-shadow: var(--shadow-md);
}

.admin-btn.secondary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	filter: brightness(1.1);
}

.pages-table-container {
	overflow-x: auto;
	border-radius: 10px;
	background: rgba(22, 29, 32, 0.8);
	border: 1px solid rgba(56, 196, 148, 0.2);
	margin-top: 0;
}

.pages-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: transparent;
	margin: 0;
}

.pages-table thead {
	background: rgba(56, 196, 148, 0.2);
}

.pages-table thead tr:first-child th:first-child {
	border-top-left-radius: 10px;
}

.pages-table thead tr:first-child th:last-child {
	border-top-right-radius: 10px;
}

.pages-table th {
	padding: 12px 10px;
	text-align: left;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 11px;
	border-bottom: 2px solid var(--vrg-accent);
}

.pages-table tbody tr {
	transition: all 0.2s ease;
	border-bottom: 1px solid rgba(56, 196, 148, 0.1);
}

.pages-table tbody tr:hover {
	background: rgba(56, 196, 148, 0.1);
}

.pages-table td {
	padding: 10px;
	color: var(--text-secondary);
	border-bottom: 1px solid rgba(56, 196, 148, 0.05);
}

.page-name-link {
	color: var(--vrg-accent);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.page-name-link:hover {
	color: var(--text-primary);
	text-shadow: 0 0 10px rgba(56, 196, 148, 0.5);
}

.actions-cell {
	white-space: nowrap;
}

.action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0 4px;
	background: var(--gradient-success);
	color: white;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
	z-index: 999999998;
	position: relative;
}

.action-btn:hover {
	transform: translateY(-2px) scale(1.1);
	box-shadow: var(--shadow-md);
	filter: brightness(1.2);
	z-index: 999999998 !important;
}

/* Ensure visibility dropdown is always on top */
.visibility-dropdown {
	z-index: 999999999 !important;
	position: relative !important;
}

.visibility-menu {
	z-index: 999999999 !important;
	position: absolute !important;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 15px;
	margin-top: 15px;
}

.stat-card {
	background: var(--gradient-purple-teal);
	padding: 18px 15px;
	border-radius: 12px;
	text-align: center;
	box-shadow: var(--shadow-md);
	border: 1px solid rgba(56, 196, 148, 0.2);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-gaming);
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-2xl);
	filter: brightness(1.1);
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 900;
	color: white;
	margin-bottom: 8px;
	text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.stat-card:last-child .stat-number {
	font-size: 1.5rem;
}

.stat-label {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Responsive Admin Panel */
@media (max-width: 768px) {
	.admin-panel {
		padding: 20px;
		margin: 10px;
		border-radius: 15px;
	}
	
	.admin-panel h1 {
		font-size: 2rem;
		flex-direction: column;
		gap: 10px;
		text-align: center;
	}
	
	.admin-section {
		padding: 20px;
	}
	
	.download-buttons {
		flex-direction: column;
	}
	
	.admin-btn {
		justify-content: center;
	}
	
	.pages-table-container {
		border-radius: 8px;
	}
	
	.pages-table th,
	.pages-table td {
		padding: 10px 8px;
		font-size: 12px;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.stat-card {
		padding: 20px 15px;
	}
	
	.stat-number {
		font-size: 2rem;
	}
}

/* Version History Styles */
.version-history {
	margin-top: 15px;
}

.version-history h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 12px;
}

.version-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: rgba(22, 29, 32, 0.8);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(56, 196, 148, 0.2);
}

.version-table thead {
	background: rgba(56, 196, 148, 0.2);
}

.version-table th {
	padding: 12px 10px;
	text-align: left;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 11px;
	border-bottom: 2px solid var(--vrg-accent);
}

.version-table tbody tr {
	transition: all 0.2s ease;
	border-bottom: 1px solid rgba(56, 196, 148, 0.1);
}

.version-table tbody tr:hover {
	background: rgba(56, 196, 148, 0.1);
}

.version-table td {
	padding: 10px;
	color: var(--text-secondary);
	border-bottom: 1px solid rgba(56, 196, 148, 0.05);
}

.version-table .commit-date {
	color: var(--text-muted);
	font-size: 13px;
	white-space: nowrap;
}

.version-table .commit-author {
	color: var(--vrg-accent);
	font-weight: 600;
}

.version-table .commit-changes {
	color: var(--text-secondary);
	font-style: italic;
}

.no-history {
	color: var(--text-muted);
	font-style: italic;
	text-align: center;
	padding: 20px;
	background: rgba(22, 29, 32, 0.6);
	border-radius: 10px;
	border: 1px solid rgba(56, 196, 148, 0.1);
}

/* Responsive Version History */
@media (max-width: 768px) {
	.version-table {
		font-size: 12px;
	}
	
	.version-table th,
	.version-table td {
		padding: 10px 8px;
	}
	
	.version-table .commit-changes {
		font-size: 11px;
	}
}

/* Enhanced Version History Sections */
.version-section {
    margin-bottom: 25px;
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 10px;
    background: rgba(22, 29, 32, 0.9);
    overflow: hidden;
}

.version-section-header {
    background: rgba(56, 196, 148, 0.2);
    color: var(--text-primary);
    padding: 12px 20px;
    font-weight: bold;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.version-section-content {
    padding: 20px;
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: rgba(22, 29, 32, 0.8);
    border-radius: 8px;
    overflow: hidden;
}

.status-table th,
.status-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(56, 196, 148, 0.1);
}

.status-table th {
    background: rgba(56, 196, 148, 0.1);
    color: var(--vrg-accent);
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-table td {
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-modified { background: rgba(255, 193, 7, 0.3); color: #ffc107; }
.status-added { background: rgba(40, 167, 69, 0.3); color: #28a745; }
.status-deleted { background: rgba(220, 53, 69, 0.3); color: #dc3545; }
.status-untracked { background: rgba(108, 117, 125, 0.3); color: #6c757d; }

.file-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.file-name {
    color: var(--vrg-accent);
    font-weight: bold;
}

.file-meta {
    color: var(--text-muted);
    font-size: 0.8em;
}

.commit-stats {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9em;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

.stat-insertions { background: rgba(40, 167, 69, 0.2); color: #28a745; }
.stat-deletions { background: rgba(220, 53, 69, 0.2); color: #dc3545; }
.stat-files { background: rgba(56, 196, 148, 0.2); color: var(--vrg-accent); }

.no-changes {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
    background: rgba(22, 29, 32, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(56, 196, 148, 0.1);
}

/* Upload Status Styles */
.upload-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #28a745;
}

.upload-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #dc3545;
}

.upload-progress {
    background: rgba(56, 196, 148, 0.1);
    border: 1px solid rgba(56, 196, 148, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: var(--vrg-accent);
}

.uploaded-file {
    background: rgba(22, 29, 32, 0.6);
    border-radius: 6px;
    padding: 10px;
    margin: 10px 0;
}

.uploaded-file code {
    background: rgba(56, 196, 148, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--vrg-accent);
    font-family: monospace;
}

/* Upload Sections Styling */
.upload-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.upload-section {
    background: rgba(22, 29, 32, 0.8);
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.upload-section h3 {
    color: var(--vrg-accent);
    margin-bottom: 10px;
    font-size: 1.2em;
    border-bottom: 2px solid rgba(56, 196, 148, 0.3);
    padding-bottom: 8px;
}

.upload-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.9em;
}

#image-uploader,
#markdown-uploader {
    margin: 15px 0;
    min-height: 100px;
}

#image-upload-status,
#markdown-upload-status {
    margin-top: 15px;
}

.uploaded-file.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Mobile responsive for upload sections */
@media (max-width: 768px) {
    .upload-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upload-section {
        padding: 20px;
    }
}

/* Upload Button Styling */
.upload-btn {
    background: linear-gradient(135deg, rgba(56, 196, 148, 0.9), rgba(56, 196, 148, 0.7));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(56, 196, 148, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, rgba(56, 196, 148, 1), rgba(56, 196, 148, 0.8));
    box-shadow: 0 6px 20px rgba(56, 196, 148, 0.4);
    transform: translateY(-2px);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(56, 196, 148, 0.3);
}

/* File Input Styling */
input[type="file"] {
    background: rgba(22, 29, 32, 0.8);
    border: 2px dashed rgba(56, 196, 148, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-color);
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: rgba(56, 196, 148, 0.6);
    background: rgba(22, 29, 32, 0.9);
}

input[type="file"]:focus {
    outline: none;
    border-color: rgba(56, 196, 148, 1);
    box-shadow: 0 0 0 3px rgba(56, 196, 148, 0.1);
}

/* Images Management Styles */
.images-section {
    margin-top: 20px;
}

.images-stats {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.9em;
}

.no-images {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px 20px;
    background: rgba(22, 29, 32, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(56, 196, 148, 0.1);
}

.images-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.image-minimal-card {
    background: rgba(22, 29, 32, 0.6);
    border: 1px solid rgba(56, 196, 148, 0.08);
    border-radius: 4px;
    padding: 4px;
    transition: all 0.15s ease;
    backdrop-filter: blur(3px);
}

.image-minimal-card:hover {
    border-color: rgba(56, 196, 148, 0.2);
    background: rgba(22, 29, 32, 0.8);
}

.image-minimal-name {
    font-size: 0.8em;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    flex: 1;
    margin: 0 4px;
}

.image-row-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
}

.mini-btn {
    background: rgba(56, 196, 148, 0.1);
    border: 1px solid rgba(56, 196, 148, 0.3);
    color: var(--text-primary);
    font-size: 1em;
    padding: 4px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 24px;
    height: 24px;
}

.mini-btn:hover {
    background: rgba(56, 196, 148, 0.2);
    border-color: rgba(56, 196, 148, 0.5);
}

.view-mini-btn {
    background: rgba(66, 153, 225, 0.1);
    border-color: rgba(66, 153, 225, 0.3);
}

.view-mini-btn:hover {
    background: rgba(66, 153, 225, 0.2);
    border-color: rgba(66, 153, 225, 0.5);
}

.copy-mini-btn {
    background: rgba(56, 196, 148, 0.1);
    border-color: rgba(56, 196, 148, 0.3);
}

.copy-mini-btn:hover {
    background: rgba(56, 196, 148, 0.2);
    border-color: rgba(56, 196, 148, 0.5);
}

.delete-mini-btn {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.delete-mini-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

/* Admin Panel Tabs */
.admin-nav-tabs {
    display: flex;
    gap: 2px;
    margin: 20px 0;
}

.admin-tab-btn {
    background: rgba(22, 29, 32, 0.8);
    border: 1px solid rgba(56, 196, 148, 0.2);
    color: var(--text-secondary);
    padding: 12px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
    position: relative;
    top: 2px;
}

.admin-tab-btn:hover {
    background: rgba(56, 196, 148, 0.1);
    color: var(--text-primary);
}

.admin-tab-btn.active {
    background: var(--bg-card);
    border-color: rgba(56, 196, 148, 0.4);
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-card);
}

.admin-tab-content {
    margin-top: 0;
    border-top: none;
}

/* Admin Header with Actions */
.admin-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(56, 196, 148, 0.2);
}

.admin-header-with-actions h2 {
    margin: 0;
    padding: 0;
    flex: 1;
    line-height: 1.2;
    margin-right: 20px;
}

.dashboard-btn {
    background: rgba(56, 196, 148, 0.1);
    border: 1px solid rgba(56, 196, 148, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-btn:hover {
    background: rgba(56, 196, 148, 0.2);
    border-color: rgba(56, 196, 148, 0.5);
    transform: translateY(-1px);
}

.dashboard-btn svg {
    width: 16px;
    height: 16px;
}


/* Error styling for admin sections */
.error {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 0.9em;
}

/* Statistics Enhancements */
.stats-details {
    margin-top: 20px;
    background: rgba(22, 29, 32, 0.6);
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.stats-details h3 {
    margin: 0 0 15px 0;
    color: var(--text-primary);
    font-size: 1.1em;
}

.stats-table table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table td {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(56, 196, 148, 0.1);
    color: var(--text-secondary);
}

.stats-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 40%;
}

/* Logs Styles */
.logs-list {
    margin-top: 15px;
}

.log-file-card {
    background: rgba(22, 29, 32, 0.8);
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.log-file-header {
    padding: 15px;
    border-bottom: 1px solid rgba(56, 196, 148, 0.1);
    background: rgba(56, 196, 148, 0.05);
}

.log-file-header h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 1em;
}

.log-file-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.log-content {
    padding: 15px;
}

.log-text {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    line-height: 1.4;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(56, 196, 148, 0.2);
}

.log-truncated {
    margin-top: 10px;
    font-size: 0.8em;
    color: var(--text-secondary);
    font-style: italic;
}

.micro-btn {
    padding: 1px 2px;
    font-size: 0.55em;
    border-radius: 2px;
    transition: all 0.15s ease;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: pointer;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-micro-btn {
    background: rgba(56, 196, 148, 0.1);
    color: var(--vrg-accent);
}

.copy-micro-btn:hover {
    background: rgba(56, 196, 148, 0.2);
    color: var(--vrg-accent);
    transform: scale(1.05);
}

.view-micro-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    transform: scale(1.05);
}

.delete-micro-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    transform: scale(1.05);
}

/* Mobile responsive for compact images grid */
@media (max-width: 768px) {
    .images-compact-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
    }
    
    .image-compact-card {
        padding: 6px;
    }
    
    .image-mini-thumb {
        height: 50px;
        margin-bottom: 4px;
    }
    
    .image-compact-name {
        font-size: 0.7em;
        margin-bottom: 2px;
    }
    
    .image-compact-meta {
        font-size: 0.6em;
        margin-bottom: 4px;
    }
    
    .compact-btn {
        min-width: 18px;
        height: 18px;
        font-size: 0.6em;
    }
}

@media (max-width: 480px) {
    .images-compact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
    
    .image-mini-thumb {
        height: 40px;
    }
}

/* Pagination Styles */
.pagination-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 16px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: rgba(22, 29, 32, 0.8);
    border: 1px solid rgba(56, 196, 148, 0.3);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
}

.pagination-btn:hover {
    background: rgba(56, 196, 148, 0.1);
    border-color: rgba(56, 196, 148, 0.5);
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: rgba(56, 196, 148, 0.2);
    border-color: var(--accent-color);
    color: var(--accent-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .pagination-controls {
        gap: 4px;
        margin: 12px 0;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 32px;
    }
}

/* Syntax Guide Styles */
.syntax-guide {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.syntax-section {
    background: rgba(22, 29, 32, 0.8);
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.syntax-section h2 {
    color: var(--vrg-accent);
    margin-bottom: 20px;
    font-size: 1.3em;
    border-bottom: 2px solid rgba(56, 196, 148, 0.3);
    padding-bottom: 10px;
}

.syntax-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(22, 29, 32, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.syntax-table th {
    background: rgba(56, 196, 148, 0.2);
    color: var(--text-primary);
    padding: 12px;
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.syntax-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(56, 196, 148, 0.1);
    color: var(--text-secondary);
}

.syntax-table code {
    background: rgba(56, 196, 148, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--vrg-accent);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.syntax-table pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 4px;
    margin: 0;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
}

.syntax-example {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(56, 196, 148, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    overflow-x: auto;
}

.syntax-note {
    background: rgba(56, 196, 148, 0.1);
    border-left: 4px solid var(--vrg-accent);
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    color: var(--text-secondary);
}

.tips-section {
    background: linear-gradient(135deg, rgba(56, 196, 148, 0.1), rgba(56, 196, 148, 0.05));
    border: 2px solid rgba(56, 196, 148, 0.3);
}

.tips-section ul {
    margin: 0;
    padding-left: 20px;
}

.tips-section li {
    margin: 10px 0;
    color: var(--text-secondary);
}

/* Responsive syntax guide */
@media (max-width: 768px) {
    .syntax-guide {
        padding: 10px;
    }
    
    .syntax-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .syntax-table {
        font-size: 0.85em;
    }
    
    .syntax-table th,
    .syntax-table td {
        padding: 8px;
    }
    
    .syntax-table pre {
        font-size: 0.75em;
    }
}

/* Members Management Styles */
.members-section {
    margin-bottom: 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(56, 196, 148, 0.2);
}

.members-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.members-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.members-table th,
.members-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(56, 196, 148, 0.1);
}

.members-table th {
    background: var(--bg-tertiary);
    color: var(--text-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.members-table td {
    color: var(--text-secondary);
}

.members-table code {
    background: var(--bg-tertiary);
    color: var(--text-accent);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(56, 196, 148, 0.2);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.role-badge.partner {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.add-member-section {
    border-top: 1px solid rgba(56, 196, 148, 0.2);
    padding-top: 1.5rem;
}

.add-member-section h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.add-member-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.member-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid rgba(56, 196, 148, 0.3);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.member-input:focus {
    outline: none;
    border-color: var(--vrg-accent);
    box-shadow: 0 0 0 3px rgba(56, 196, 148, 0.1);
}

.member-input::placeholder {
    color: var(--text-muted);
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.action-btn.primary {
    background: var(--gradient-success);
    box-shadow: 0 2px 4px rgba(56, 196, 148, 0.3);
}

.action-btn.primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 8px rgba(56, 196, 148, 0.4);
    transform: translateY(-1px);
}

/* Icon-only button styling for add member buttons */
.add-member-form .action-btn.primary {
    padding: 0.75rem;
    min-width: 48px;
    justify-content: center;
}

.action-btn.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    padding: 0.5rem;
}

.action-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

/* Icon-only button styling for Files tab download buttons */
.pages-table .action-btn,
.action-btn.icon-only {
    padding: 0.5rem !important;
    min-width: 32px !important;
    min-height: 32px !important;
    width: auto !important;
    height: auto !important;
    justify-content: center !important;
    background: var(--gradient-success) !important;
    box-shadow: 0 2px 4px rgba(56, 196, 148, 0.3) !important;
    border: 1px solid rgba(56, 196, 148, 0.3) !important;
    border-radius: 8px !important;
}

.pages-table .action-btn:hover,
.action-btn.icon-only:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 4px 8px rgba(56, 196, 148, 0.4) !important;
    transform: translateY(-1px) !important;
}

.actions-cell {
    text-align: center;
    width: 80px;
}

.no-username {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
}

/* Responsive adjustments for members table */
@media (max-width: 768px) {
    .add-member-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .members-table {
        font-size: 0.85rem;
    }
    
    .members-table th,
    .members-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .member-input {
        font-size: 0.85rem;
    }
}

/* Video Embed Styles */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 12px;
    background: rgba(22, 29, 32, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(56, 196, 148, 0.2);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Twitter embed special styling */
.video-embed.twitter-embed {
    position: static;
    padding-bottom: 0;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
}

.twitter-embed .twitter-tweet {
    margin: 20px auto !important;
}

/* Limit video width on larger screens */
@media (min-width: 1200px) {
    .video-embed {
        max-width: 800px;
    }
}

/* Mobile video adjustments */
@media (max-width: 768px) {
    .video-embed {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .video-embed iframe {
        border-radius: 8px;
    }
}

/* ========================================
   MOBILE NAVIGATION - NO DESKTOP CHANGES
   ======================================== */

@media (max-width: 768px) {
	/* Mobile body adjustments */
	body {
		padding-top: 60px !important;
	}
	
	/* Hide desktop toolbar on mobile */
	.toolbar {
		display: none !important;
	}
	
	/* Mobile header */
	.mobile-header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 60px;
		background: rgba(22, 29, 32, 0.98);
		backdrop-filter: blur(20px);
		border-bottom: 1px solid rgba(56, 196, 148, 0.3);
		z-index: 2000;
		display: flex;
		align-items: center;
		padding: 0 15px;
		justify-content: space-between;
	}
	
	/* Mobile menu button */
	.mobile-menu-btn {
		width: 40px;
		height: 40px;
		background: var(--gradient-success);
		border: none;
		border-radius: 10px;
		color: white;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 20px;
		box-shadow: var(--shadow-lg);
		transition: all 0.2s ease;
	}
	
	.mobile-menu-btn:active {
		transform: scale(0.95);
	}
	
	/* Mobile header logo */
	.mobile-header-logo {
		width: 36px;
		height: 36px;
		background: url('ico/logoirl.png') center center;
		background-size: contain;
		background-repeat: no-repeat;
	}
	
	/* Mobile navigation sidebar */
	.mobile-nav-sidebar {
		position: fixed;
		top: 0;
		left: -300px;
		width: 300px;
		height: 100vh;
		background: rgba(22, 29, 32, 0.98);
		backdrop-filter: blur(20px);
		border-right: 1px solid rgba(56, 196, 148, 0.3);
		z-index: 2001;
		transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
	
	.mobile-nav-sidebar.open {
		left: 0;
	}
	
	/* Mobile nav header */
	.mobile-nav-header {
		padding: 20px;
		border-bottom: 1px solid rgba(56, 196, 148, 0.2);
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	
	.mobile-nav-title {
		display: flex;
		align-items: center;
		gap: 12px;
		font-size: 18px;
		font-weight: 700;
		color: var(--vrg-accent);
	}
	
	.mobile-nav-title-logo {
		width: 32px;
		height: 32px;
		background: url('ico/logoirl.png') center center;
		background-size: contain;
		background-repeat: no-repeat;
	}
	
	.mobile-nav-close {
		width: 36px;
		height: 36px;
		background: rgba(239, 68, 68, 0.2);
		border: none;
		border-radius: 8px;
		color: #ef4444;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		transition: all 0.2s ease;
	}
	
	.mobile-nav-close:active {
		transform: scale(0.95);
		background: rgba(239, 68, 68, 0.3);
	}
	
	/* Mobile search */
	.mobile-search {
		padding: 20px;
		border-bottom: 1px solid rgba(56, 196, 148, 0.1);
	}
	
	.mobile-search-box {
		width: 100%;
		padding: 12px 16px;
		background: rgba(29, 33, 46, 0.8);
		border: 1px solid rgba(56, 196, 148, 0.3);
		border-radius: 10px;
		color: var(--text-primary);
		font-size: 16px;
		box-sizing: border-box;
		font-family: inherit;
	}
	
	.mobile-search-box::placeholder {
		color: var(--text-muted);
	}
	
	.mobile-search-box:focus {
		outline: none;
		border-color: var(--vrg-accent);
		box-shadow: 0 0 0 2px rgba(56, 196, 148, 0.2);
	}
	
	/* Mobile nav links */
	.mobile-nav-links {
		padding: 10px 0 20px;
	}
	
	.mobile-nav-section {
		margin-bottom: 10px;
	}
	
	.mobile-nav-section-title {
		padding: 15px 20px 8px;
		font-size: 12px;
		font-weight: 700;
		color: var(--text-muted);
		text-transform: uppercase;
		letter-spacing: 1.5px;
	}
	
	.mobile-nav-link {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 16px;
		color: var(--text-secondary);
		text-decoration: none;
		font-size: 14px !important;
		font-weight: 500;
		transition: all 0.2s ease;
		border-left: 4px solid transparent;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	
	.mobile-nav-link span {
		font-size: 14px !important;
		line-height: 1.3 !important;
		flex-shrink: 0;
	}
	
	.mobile-nav-link:hover,
	.mobile-nav-link:active {
		background: rgba(56, 196, 148, 0.1);
		color: var(--vrg-accent);
		border-left-color: var(--vrg-accent);
		padding-left: 20px;
	}
	
	
	
	/* Mobile overlay */
	.mobile-nav-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.6);
		z-index: 1999;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}
	
	.mobile-nav-overlay.show {
		opacity: 1;
		pointer-events: all;
	}
	
	/* Content spacing adjustments for mobile */
	.content-container {
		margin-top: 0 !important;
		padding: 10px !important;
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		min-height: calc(100vh - 60px) !important;
		font-size: 14px !important;
		line-height: 1.4 !important;
	}
	
	/* Mobile typography - make text more compact */
	body {
		font-size: 14px !important;
		line-height: 1.4 !important;
	}
	
	/* Headings more compact on mobile */
	h1 {
		font-size: 22px !important;
		margin: 15px 0 10px 0 !important;
		line-height: 1.2 !important;
	}
	
	h2 {
		font-size: 18px !important;
		margin: 12px 0 8px 0 !important;
		line-height: 1.3 !important;
	}
	
	h3 {
		font-size: 16px !important;
		margin: 10px 0 6px 0 !important;
		line-height: 1.3 !important;
	}
	
	h4, h5, h6 {
		font-size: 14px !important;
		margin: 8px 0 4px 0 !important;
		line-height: 1.3 !important;
	}
	
	/* Paragraphs more compact */
	p {
		font-size: 14px !important;
		line-height: 1.4 !important;
		margin: 8px 0 !important;
	}
	
	/* Lists more compact */
	ul, ol {
		margin: 8px 0 !important;
		padding-left: 20px !important;
	}
	
	li {
		font-size: 14px !important;
		line-height: 1.4 !important;
		margin: 3px 0 !important;
	}
	
	/* Code blocks more compact */
	code {
		font-size: 12px !important;
		padding: 2px 4px !important;
	}
	
	pre {
		font-size: 12px !important;
		padding: 8px !important;
		margin: 10px 0 !important;
		line-height: 1.3 !important;
	}
	
	/* Tables more compact */
	table {
		font-size: 12px !important;
		margin: 10px 0 !important;
	}
	
	th, td {
		padding: 6px 8px !important;
		font-size: 12px !important;
	}
	
	/* Blockquotes more compact */
	blockquote {
		font-size: 13px !important;
		margin: 10px 0 !important;
		padding: 8px 12px !important;
		line-height: 1.4 !important;
	}
	
	/* Hide TOC elements on mobile except on contents page */
	.toc-sidebar,
	.pages-sidebar {
		display: none !important;
	}
	
	/* Hide page-toc-container by default on mobile, but show on contents page */
	.page-toc-container {
		display: none !important;
	}
	
	/* Force show page-toc-container on contents page */
	body.contents-page .page-toc-container {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 10px !important;
		box-sizing: border-box !important;
	}
	
	/* Compact Contents page styling */
	.page-toc-header {
		padding: 10px 0 !important;
	}
	
	.page-toc-title {
		font-size: 18px !important;
		margin: 0 0 5px 0 !important;
	}
	
	.page-toc-stats {
		font-size: 12px !important;
	}
	
	.category-title {
		font-size: 16px !important;
		margin: 8px 0 4px 0 !important;
	}
	
	.category-count {
		font-size: 12px !important;
	}
	
	.page-toc-link {
		padding: 6px 8px !important;
		font-size: 13px !important;
		line-height: 1.3 !important;
	}
	
	.page-toc-name {
		font-size: 13px !important;
	}
	
	/* Admin notice more compact */
	.admin-notice {
		font-size: 11px !important;
		padding: 8px !important;
		margin: 8px 0 !important;
		line-height: 1.3 !important;
	}
	
	/* Adjust main content area on mobile */
	.main-content {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 15px !important;
		display: block !important;
		float: none !important;
	}
	
	/* Ensure content wrapper is visible */
	.content-wrapper {
		display: block !important;
		width: 100% !important;
		float: none !important;
	}
	
	/* Fix any hidden content containers */
	.page-content {
		display: block !important;
		width: 100% !important;
		float: none !important;
		clear: both !important;
	}
	
}

