/* Gaming Server Professional Theme */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Flame Orange & Black Theme */
	--primary-color: #ff6b1a;
	--primary-glow: rgba(255, 107, 26, 0.4);
	--secondary-color: #ff8c42;
	--accent-color: #ff4500;
	--danger-color: #dc143c;
	--warning-color: #ff6b1a;
	--success-color: #ff8c42;

	/* Black & Dark Backgrounds */
	--bg-darkest: #000000;
	--bg-darker: #0a0a0a;
	--bg-dark: #141414;
	--bg-medium: #1a1a1a;
	--bg-light: #262626;
	--bg-lighter: #333333;

	/* Text Colors */
	--text-primary: #ffffff;
	--text-secondary: #b8b8b8;
	--text-muted: #808080;

	/* Border & Effects */
	--border-color: #333333;
	--border-glow: rgba(255, 107, 26, 0.3);
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.8);
	--glow-effect: 0 0 20px var(--primary-glow);
}

body {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-darker) 100%);
	color: var(--text-primary);
	line-height: 1.6;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* Animated Background Grid */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		linear-gradient(var(--border-color) 1px, transparent 1px),
		linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
	background-size: 50px 50px;
	opacity: 0.03;
	z-index: -1;
	animation: gridMove 60s linear infinite;
}

@keyframes gridMove {
	0% { transform: translate(0, 0); }
	100% { transform: translate(50px, 50px); }
}

/* Glowing Flame Orbs Background Effect */
body::after {
	content: '';
	position: fixed;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(255, 107, 26, 0.15) 0%, rgba(255, 69, 0, 0.1) 40%, transparent 70%);
	border-radius: 50%;
	top: -300px;
	right: -300px;
	z-index: -1;
	animation: float 20s ease-in-out infinite;
}

@keyframes float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(-100px, 100px) scale(1.1); }
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 20px;
	background: var(--bg-darkest);
	position: relative;
}

.login-container {
	width: 100%;
	max-width: 480px;
	position: relative;
	z-index: 10;
}

.login-card {
	background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
	border-radius: 16px;
	box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 26, 0.15);
	border: 1px solid var(--border-color);
	overflow: hidden;
	position: relative;
}

.login-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 25%, #ff6b1a 50%, #ff4500 75%, #00ff88 100%);
	background-size: 200% 100%;
	animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.login-header {
	background: linear-gradient(135deg, var(--bg-medium), var(--bg-dark));
	padding: 40px 30px;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
	position: relative;
}

.login-header h1 {
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 12px;
	color: #ff6b1a;
	letter-spacing: 1px;
	text-shadow: 0 0 20px rgba(255, 107, 26, 0.5);
}

.login-header p {
	font-size: 15px;
	color: var(--text-secondary);
	font-weight: 500;
}

.login-body {
	padding: 35px 30px;
}

.login-info {
	margin-bottom: 28px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 14px;
}

.discord-login-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px 32px;
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 20%, #5865F2 50%, #ff6b1a 80%, #ff4500 100%);
	color: white;
	text-decoration: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--shadow-md), 0 0 20px rgba(0, 255, 136, 0.2);
	position: relative;
	overflow: hidden;
}

.discord-login-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.discord-login-btn:hover::before {
	width: 300px;
	height: 300px;
}

.discord-login-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 255, 136, 0.3), 0 0 40px rgba(255, 107, 26, 0.3);
}

.discord-login-btn svg {
	width: 26px;
	height: 26px;
	position: relative;
	z-index: 1;
}

.error-message {
	background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(255, 107, 26, 0.1));
	border: 1px solid var(--danger-color);
	color: #ff6b6b;
	padding: 14px 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	text-align: center;
	font-weight: 600;
	box-shadow: 0 0 20px rgba(220, 20, 60, 0.15), 0 0 10px rgba(255, 107, 26, 0.1);
}

.login-footer {
	padding: 20px;
	text-align: center;
	color: var(--text-muted);
	font-size: 12px;
	border-top: 1px solid var(--border-color);
	background: var(--bg-darker);
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dashboard {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 280px;
	background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
	padding: 24px 20px;
	border-right: 1px solid var(--border-color);
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	z-index: 100;
	box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: var(--bg-darker);
}

.sidebar::-webkit-scrollbar-thumb {
	background: var(--bg-light);
	border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: var(--primary-color);
}

.sidebar-header {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--border-color);
	position: relative;
}

.sidebar-header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 120px;
	height: 2px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, transparent);
}

.sidebar-logo {
	width: 80px;
	height: auto;
	margin: 0 auto 16px;
	display: block;
	transition: transform 0.3s ease;
}

.sidebar-logo:hover {
	transform: scale(1.05);
}

.sidebar-header h2 {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 8px;
	color: #ff6b1a;
	letter-spacing: 0.5px;
	text-align: center;
	line-height: 1.3;
	text-shadow: 0 0 15px rgba(255, 107, 26, 0.4);
}

.sidebar-header .user-info {
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 500;
}

.sidebar-nav {
	list-style: none;
}

.sidebar-nav li {
	margin-bottom: 8px;
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	color: var(--text-secondary);
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.3s ease;
	font-weight: 600;
	font-size: 15px;
	position: relative;
	overflow: hidden;
}

.sidebar-nav a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 3px;
	background: linear-gradient(180deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	transform: scaleY(0);
	transition: transform 0.3s ease;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
	transform: scaleY(1);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
	background: linear-gradient(135deg, var(--bg-medium), var(--bg-light));
	color: var(--primary-color);
	box-shadow: var(--shadow-sm);
	transform: translateX(4px);
}

.main-content {
	margin-left: 280px;
	flex: 1;
	padding: 32px 40px;
	width: calc(100% - 280px);
	min-height: 100vh;
}

.page-header {
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--border-color);
	position: relative;
}

.page-header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 150px;
	height: 2px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
}

.page-header h1 {
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 10px;
	color: var(--text-primary);
	letter-spacing: -0.5px;
}

.page-header p {
	color: var(--text-secondary);
	font-size: 16px;
	font-weight: 500;
}

/* ==================== CARDS ==================== */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.card {
	background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
	border-radius: 12px;
	padding: 24px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg), var(--glow-effect);
	border-color: var(--primary-color);
}

.card:hover::before {
	opacity: 1;
}

.card-header {
	margin-bottom: 18px;
}

.card-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--text-primary);
}

.card-subtitle {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
}

.card-body {
	margin-bottom: 16px;
	color: var(--text-secondary);
}

.card-body h2 {
	font-size: 48px;
	font-weight: 800;
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.card-footer {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* ==================== BUTTONS ==================== */
.btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	position: relative;
	overflow: hidden;
	letter-spacing: 0.3px;
}

.btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
	width: 300px;
	height: 300px;
}

.btn-primary {
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 25%, #ff6b1a 75%, #ff4500 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 107, 26, 0.4), 0 0 20px rgba(0, 255, 136, 0.2);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 20%, #ff6b1a 70%, #ff4500 100%);
	box-shadow: 0 6px 20px rgba(255, 107, 26, 0.6), 0 0 30px rgba(0, 255, 136, 0.3);
	transform: translateY(-2px);
}

.btn-success {
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 25%, #ff8c42 75%, #ff6b1a 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3), 0 0 15px rgba(0, 255, 136, 0.2);
}

.btn-success:hover {
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 20%, #ff8c42 70%, #ff6b1a 100%);
	box-shadow: 0 6px 20px rgba(255, 140, 66, 0.5), 0 0 25px rgba(0, 255, 136, 0.3);
	transform: translateY(-2px);
}

.btn-danger {
	background: linear-gradient(135deg, #dc143c 0%, #ff3366 30%, #ff6b1a 70%, #ff4500 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4), 0 0 15px rgba(255, 107, 26, 0.2);
}

.btn-danger:hover {
	background: linear-gradient(135deg, #dc143c 0%, #ff3366 25%, #ff6b1a 65%, #ff4500 100%);
	box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6), 0 0 25px rgba(255, 107, 26, 0.3);
	transform: translateY(-2px);
}

.btn-warning {
	background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 50%, #ff4500 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 107, 26, 0.4);
}

.btn-warning:hover {
	background: linear-gradient(135deg, #ff8c42 0%, #ff6b1a 40%, #ff4500 100%);
	box-shadow: 0 6px 20px rgba(255, 107, 26, 0.6);
	transform: translateY(-2px);
}

.btn-secondary {
	background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 30%, rgba(255, 107, 26, 0.1) 100%);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm), 0 0 10px rgba(255, 107, 26, 0.1);
}

.btn-secondary:hover {
	background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 30%, rgba(255, 107, 26, 0.15) 100%);
	border: 1px solid transparent;
	border-image: linear-gradient(135deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%) 1;
	box-shadow: var(--shadow-md), 0 0 15px rgba(255, 107, 26, 0.2);
	transform: translateY(-2px);
}

.btn-small {
	padding: 8px 16px;
	font-size: 13px;
}

.btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none !important;
}

/* ==================== FORMS ==================== */
.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	margin-bottom: 10px;
	font-weight: 700;
	color: var(--text-primary);
	font-size: 14px;
	letter-spacing: 0.3px;
}

.form-control, .form-select {
	width: 100%;
	padding: 14px 16px;
	background: var(--bg-medium);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-primary);
	font-size: 14px;
	transition: all 0.3s ease;
	font-weight: 500;
}

.form-control:focus, .form-select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.2);
	background: var(--bg-dark);
}

textarea.form-control {
	min-height: 200px;
	font-family: 'Fira Code', 'Courier New', monospace;
	resize: vertical;
	line-height: 1.8;
}

.form-select {
	cursor: pointer;
}

/* ==================== ALERTS ==================== */
.alert {
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 24px;
	border: 1px solid;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 12px;
}

.alert-success {
	background: linear-gradient(135deg, rgba(255, 140, 66, 0.2), rgba(255, 140, 66, 0.08));
	border-color: var(--success-color);
	color: var(--success-color);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.15);
}

.alert-danger {
	background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(220, 20, 60, 0.08));
	border-color: var(--danger-color);
	color: var(--danger-color);
	box-shadow: 0 4px 15px rgba(220, 20, 60, 0.15);
}

.alert-warning {
	background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), rgba(255, 107, 26, 0.08));
	border-color: var(--warning-color);
	color: var(--warning-color);
	box-shadow: 0 4px 15px rgba(255, 107, 26, 0.15);
}

.alert-info {
	background: linear-gradient(135deg, rgba(255, 140, 66, 0.2), rgba(255, 140, 66, 0.08));
	border-color: var(--secondary-color);
	color: var(--secondary-color);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.15);
}

/* ==================== LOADING ==================== */
.loading {
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid var(--bg-light);
	border-radius: 50%;
	border-top-color: var(--primary-color);
	animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 14, 20, 0.9);
	backdrop-filter: blur(8px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	flex-direction: column;
	gap: 20px;
}

.loading-overlay .loading {
	width: 64px;
	height: 64px;
	border-width: 6px;
}

.loading-overlay::after {
	content: 'Loading...';
	color: var(--primary-color);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 2px;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* ==================== TABLES ==================== */
.table-container {
	background: var(--bg-dark);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-md);
}

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

th {
	background: var(--bg-medium);
	padding: 18px 20px;
	text-align: left;
	font-weight: 700;
	border-bottom: 2px solid var(--border-color);
	color: var(--text-primary);
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

td {
	padding: 18px 20px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-weight: 500;
}

tr:last-child td {
	border-bottom: none;
}

tr:hover {
	background: var(--bg-medium);
}

/* ==================== MODAL ==================== */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 14, 20, 0.85);
	backdrop-filter: blur(8px);
}

.modal.active {
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease;
}

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

.modal-content {
	background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
	border-radius: 12px;
	max-width: 640px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: var(--shadow-lg), 0 0 40px rgba(255, 107, 26, 0.15);
	border: 1px solid var(--border-color);
	animation: slideUp 0.3s ease;
}

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

.modal-header {
	padding: 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--bg-medium);
}

.modal-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
}

.modal-close {
	background: var(--bg-light);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 24px;
	cursor: pointer;
	padding: 4px;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	background: var(--danger-color);
	color: white;
	border-color: var(--danger-color);
	transform: rotate(90deg);
}

.modal-body {
	padding: 24px;
}

.modal-footer {
	padding: 20px 24px;
	border-top: 1px solid var(--border-color);
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	background: var(--bg-medium);
}

/* ==================== STATUS BADGES ==================== */
.badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.badge-success {
	background: linear-gradient(135deg, rgba(255, 140, 66, 0.25), rgba(255, 140, 66, 0.12));
	color: var(--success-color);
	border: 1px solid var(--success-color);
}

.badge-danger {
	background: linear-gradient(135deg, rgba(220, 20, 60, 0.25), rgba(220, 20, 60, 0.12));
	color: var(--danger-color);
	border: 1px solid var(--danger-color);
}

.badge-warning {
	background: linear-gradient(135deg, rgba(255, 107, 26, 0.25), rgba(255, 107, 26, 0.12));
	color: var(--warning-color);
	border: 1px solid var(--warning-color);
}

.badge-primary {
	background: linear-gradient(135deg, rgba(255, 140, 66, 0.25), rgba(255, 140, 66, 0.12));
	color: var(--secondary-color);
	border: 1px solid var(--secondary-color);
}

/* ==================== RCON CONSOLE ==================== */
#rcon-output {
	background: var(--bg-darkest);
	color: var(--text-primary);
	font-family: 'Fira Code', 'Courier New', monospace;
	font-size: 14px;
	padding: 20px;
	height: 500px;
	overflow-y: auto;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
	line-height: 1.8;
}

#rcon-output::-webkit-scrollbar {
	width: 8px;
}

#rcon-output::-webkit-scrollbar-track {
	background: var(--bg-darker);
}

#rcon-output::-webkit-scrollbar-thumb {
	background: var(--bg-light);
	border-radius: 4px;
}

#rcon-output .timestamp {
	color: var(--text-muted);
	margin-right: 12px;
	font-weight: 600;
}

#rcon-output .command {
	color: var(--primary-color);
	font-weight: 700;
}

#rcon-output .response {
	color: var(--secondary-color);
	white-space: pre-wrap;
}

#rcon-output .error {
	color: var(--danger-color);
	font-weight: 600;
}

.rcon-input-group {
	display: flex;
	gap: 12px;
}

.rcon-input-group input {
	flex: 1;
}

/* ==================== UTILITY CLASSES ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.flex { display: flex; }
.flex-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
	.sidebar {
		width: 240px;
	}
	
	.main-content {
		margin-left: 240px;
		width: calc(100% - 240px);
		padding: 24px 28px;
	}
	
	.cards-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}

	.main-content {
		margin-left: 0;
		width: 100%;
		padding: 20px;
	}

	.cards-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.modal-content {
		width: 95%;
		max-height: 85vh;
	}
	
	.page-header h1 {
		font-size: 28px;
	}
	
	.card-body h2 {
		font-size: 36px;
	}
	
	.flex-between {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	
	.rcon-input-group {
		flex-direction: column;
	}
}

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

::-webkit-scrollbar-track {
	background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
	background: var(--bg-light);
	border-radius: 5px;
}

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

/* ==================== ANIMATIONS ==================== */
@keyframes glow {
	0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 26, 0.3); }
	50% { box-shadow: 0 0 40px rgba(255, 107, 26, 0.5); }
}

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

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

.slide-in {
	animation: slideInRight 0.4s ease;
}

/* ==================== SPECIAL EFFECTS ==================== */
.neon-text {
	color: var(--primary-color);
	text-shadow:
		0 0 10px rgba(255, 107, 26, 0.6),
		0 0 20px rgba(255, 107, 26, 0.4),
		0 0 30px rgba(255, 107, 26, 0.3);
}

.glass-effect {
	background: rgba(22, 27, 34, 0.7);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== HOVER EFFECTS ==================== */
.hover-lift {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==================== STAT CARDS ==================== */
.stat-card {
	position: relative;
	overflow: hidden;
}

.stat-card::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100px;
	height: 100px;
	background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
	opacity: 0.3;
}

.stat-value {
	font-size: 48px;
	font-weight: 800;
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin: 12px 0;
}

/* ==================== SERVER STATUS INDICATORS ==================== */
.status-indicator {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.status-indicator::before {
	content: '';
	display: inline-block;
	width: 10px !important;
	height: 10px !important;
	min-width: 10px !important;
	min-height: 10px !important;
	max-width: 10px !important;
	max-height: 10px !important;
	border-radius: 50% !important;
	flex-shrink: 0 !important;
	animation: pulse 2s ease-in-out infinite;
	aspect-ratio: 1 / 1 !important;
	box-sizing: border-box !important;
}

.status-online::before {
	background: var(--success-color);
	box-shadow: 0 0 10px var(--success-color);
}

.status-offline::before {
	background: var(--danger-color);
	box-shadow: 0 0 10px var(--danger-color);
}

.status-warning::before {
	background: var(--warning-color);
	box-shadow: 0 0 10px var(--warning-color);
}

/* ==================== FILE EDITOR ENHANCEMENTS ==================== */
.file-editor-container {
	background: var(--bg-darkest);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
}

.file-editor-header {
	background: var(--bg-medium);
	padding: 12px 20px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.file-path {
	font-family: 'Fira Code', 'Courier New', monospace;
	color: var(--primary-color);
	font-size: 13px;
	font-weight: 600;
}

/* ==================== PLUGIN CARDS ==================== */
.plugin-card {
	position: relative;
}

.plugin-card .plugin-status {
	position: absolute;
	top: 20px;
	right: 20px;
}

.plugin-icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 16px;
	box-shadow: 0 4px 12px rgba(255, 107, 26, 0.4);
}

/* ==================== TASK BUTTONS ==================== */
.task-button {
	position: relative;
	overflow: hidden;
}

.task-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.task-button:active::after {
	width: 300px;
	height: 300px;
	transition: width 0s, height 0s;
}

/* ==================== CONSOLE COMMAND HISTORY ==================== */
.command-history {
	background: var(--bg-medium);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 12px;
	font-family: 'Fira Code', 'Courier New', monospace;
	font-size: 13px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.3s ease;
}

.command-history:hover {
	background: var(--bg-light);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

/* ==================== CLUSTER INDICATORS ==================== */
.cluster-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: var(--bg-medium);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--text-secondary);
}

.cluster-badge::before {
	content: '⚡';
	color: var(--primary-color);
}

/* ==================== PERMISSION INDICATORS ==================== */
.permission-tag {
	display: inline-block;
	padding: 4px 10px;
	margin: 4px;
	background: linear-gradient(135deg, rgba(255, 107, 26, 0.2), rgba(255, 107, 26, 0.08));
	border: 1px solid var(--primary-color);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--primary-color);
}

/* ==================== ENHANCED FOCUS STATES ==================== */
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
	.sidebar,
	.page-header,
	.btn,
	button {
		display: none;
	}
	
	.main-content {
		margin-left: 0;
		width: 100%;
	}
	
	.card {
		break-inside: avoid;
	}
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ==================== DARK MODE ENHANCEMENTS ==================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
/* ==================== SCHEDULED TASKS ==================== */
.tasks-container {
	margin-top: 24px;
}

.tasks-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
	gap: 24px;
}

.task-card {
	background: linear-gradient(145deg, var(--bg-dark), var(--bg-darker));
	border-radius: 12px;
	border: 1px solid var(--border-color);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
}

.task-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.task-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg), var(--glow-effect);
	border-color: var(--primary-color);
}

.task-card:hover::before {
	opacity: 1;
}

.task-header {
	padding: 20px;
	background: var(--bg-medium);
	border-bottom: 1px solid var(--border-color);
}

.task-title-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.task-title-row h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.task-description {
	color: var(--text-secondary);
	font-size: 14px;
	margin: 8px 0 0 0;
	line-height: 1.5;
}

.task-body {
	padding: 20px;
}

.task-info .info-row {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid var(--border-color);
}

.task-info .info-row:last-child {
	border-bottom: none;
}

.task-info .info-label {
	color: var(--text-muted);
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.task-info .info-value {
	color: var(--text-primary);
	font-weight: 600;
	font-size: 14px;
}

.task-actions {
	display: flex;
	gap: 8px;
	padding: 16px 20px;
	background: var(--bg-darker);
	border-top: 1px solid var(--border-color);
	flex-wrap: wrap;
}

.btn-sm {
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
}

.action-bar {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 24px;
}

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 80px 20px;
	text-align: center;
}

.empty-icon {
	font-size: 80px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.empty-state h3 {
	font-size: 24px;
	color: var(--text-primary);
	margin-bottom: 12px;
}

.empty-state p {
	color: var(--text-secondary);
	font-size: 16px;
	margin-bottom: 24px;
}

/* Schedule Form Enhancements */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

.checkbox-group {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 10px;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background: var(--bg-medium);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-secondary);
}

.checkbox-label:hover {
	background: var(--bg-light);
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
	cursor: pointer;
	accent-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + span {
	color: var(--primary-color);
}

.form-text {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: var(--text-muted);
	font-style: italic;
}

.modal-large {
	max-width: 800px;
}

.warning-text {
	color: var(--warning-color);
	font-weight: 600;
	font-size: 14px;
	margin-top: 12px;
}

.content-header {
	margin-bottom: 32px;
	padding-bottom: 20px;
	border-bottom: 2px solid var(--border-color);
	position: relative;
}

.content-header::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 150px;
	height: 2px;
	background: linear-gradient(90deg, #00ff88 0%, #00cc6f 30%, #ff6b1a 70%, #ff4500 100%);
}

.content-header h1 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.content-header .subtitle {
	color: var(--text-secondary);
	font-size: 15px;
	font-weight: 500;
}

.badge-secondary {
	background: linear-gradient(135deg, rgba(128, 128, 128, 0.25), rgba(128, 128, 128, 0.12));
	color: var(--text-muted);
	border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
	.tasks-grid {
		grid-template-columns: 1fr;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.checkbox-group {
		grid-template-columns: 1fr;
	}

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

/* ==================== CONFIG FORM EDITOR ==================== */
.config-section {
	margin-bottom: 24px;
}

.config-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--border-color);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.config-section-content {
	padding-left: 12px;
}

.config-field {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 16px;
	align-items: center;
	margin-bottom: 16px;
	padding: 12px;
	background: var(--bg-darker);
	border-radius: 6px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.config-field:hover {
	background: var(--bg-dark);
	border-color: rgba(255, 107, 26, 0.3);
}

.config-label {
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 13px;
	word-break: break-word;
}

.config-input {
	width: 100%;
	padding: 10px 12px;
	background: var(--bg-darkest);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 13px;
	font-family: 'Courier New', monospace;
	transition: all 0.3s ease;
}

.config-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.2);
	background: var(--bg-medium);
}

.config-checkbox {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: var(--primary-color);
}

.config-select {
	width: 100%;
	padding: 10px 12px;
	background: var(--bg-darkest);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 13px;
	font-family: 'Courier New', monospace;
	transition: all 0.3s ease;
	cursor: pointer;
}

.config-select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.2);
	background: var(--bg-medium);
}

.config-select option {
	background: var(--bg-darkest);
	color: var(--text-primary);
	padding: 8px;
}

/* Browse button for folder paths */
.config-input-with-button {
	display: flex;
	gap: 8px;
	align-items: center;
	width: 100%;
}

.config-input-with-button .config-input {
	flex: 1;
}

.config-browse-btn {
	padding: 10px 16px;
	background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-medium) 100%);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.config-browse-btn:hover {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
	border-color: var(--primary-color);
	color: white;
	box-shadow: 0 0 15px rgba(255, 107, 26, 0.3);
	transform: translateY(-2px);
}

@media (max-width: 768px) {
	.config-field {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.config-input-with-button {
		flex-direction: column;
		align-items: stretch;
	}

	.config-browse-btn {
		width: 100%;
	}
}
