/* ===================== SAARMON Stylesheet - Modernes Design ====================== */
:root {
	/* Dark Mode Farben - Erhöhte Kontraste */
	--bg-primary: #0a0e17;
	--bg-secondary: #0f1419;
	--bg-elevated: #141922;
	--bg-card: rgba(20, 25, 34, 0.7);
	--bg-hover: rgba(30, 35, 45, 0.8);
	
	/* Akzentfarben - Modernes Grün mit Variationen */
	--accent-primary: #00e599;
	--accent-secondary: #00b377;
	--accent-tertiary: #007d52;
	--accent-glow: rgba(0, 229, 153, 0.2);
	
	/* Textfarben */
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.92);
	--text-tertiary: rgba(255, 255, 255, 0.78);
	--text-muted: rgba(255, 255, 255, 0.5);
	
	/* Border & Divider */
	--border-subtle: rgba(255, 255, 255, 0.05);
	--border-medium: rgba(255, 255, 255, 0.1);
	--border-strong: rgba(255, 255, 255, 0.15);
	
	/* Glass Morphism */
	--glass-light: rgba(255, 255, 255, 0.03);
	--glass-medium: rgba(255, 255, 255, 0.05);
	--glass-strong: rgba(255, 255, 255, 0.08);
	
	/* Layout */
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--max-width: 1400px;
	--sidebar-width: 280px;
	--gap-sm: 0.75rem;
	--gap-md: 1.25rem;
	--gap-lg: 2rem;
	
	/* Transitions & Animations */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
	
	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
	--shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.6);
	--shadow-accent: 0 8px 24px var(--accent-glow);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
	width: 100%;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--text-primary);
	background: radial-gradient(ellipse at top, var(--bg-secondary) 0%, var(--bg-primary) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

/* ===================== Typography ====================== */
h1, h2, h3, h4, h5, h6 {
	color: var(--text-primary);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

h1 {
	font-size: 2.25rem;
	color: var(--text-primary);
}

h2 {
	font-size: 1.875rem;
	color: var(--text-primary);
}

h3 {
	font-size: 1.5rem;
	color: var(--text-primary);
}

h4 {
	font-size: 1.25rem;
	color: var(--text-primary);
}

/* ===================== Layout ====================== */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2vw, 2rem);
	width: 100%;
}

.layout {
	display: flex;
	gap: var(--gap-lg);
	align-items: flex-start;
	min-height: calc(100vh - 80px);
	padding: clamp(1rem, 2vw, 2rem);
	max-width: 1920px;
	margin: 0 auto;
}

.main {
	flex: 1;
	min-width: 0;
	animation: fadeInUp 0.4s ease-out;
	overflow-x: hidden;
}

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

/* ===================== Navigation ====================== */
.navbar {
	position: sticky;
	top: 0;
	z-index: 1200;
	background: linear-gradient(180deg, rgba(10, 14, 23, 0.95), rgba(10, 14, 23, 0.85));
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid var(--border-subtle);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
	transition: all var(--transition-base);
}

.navbar:hover {
	background: linear-gradient(180deg, rgba(10, 14, 23, 0.98), rgba(10, 14, 23, 0.92));
	border-bottom-color: var(--border-medium);
}

.nav-container {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem clamp(1rem, 2vw, 2rem);
	gap: var(--gap-md);
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-weight: 800;
	font-size: 1.375rem;
	color: var(--text-primary);
	text-decoration: none;
	transition: transform var(--transition-fast);
	position: relative;
}

.logo::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	border-radius: 2px;
	transition: width var(--transition-base);
}

.logo:hover::after {
	width: 100%;
}

.logo:hover {
	transform: translateY(-1px);
}

.logo img {
	width: 40px;
	height: 40px;
	filter: drop-shadow(0 2px 8px var(--accent-glow));
	transition: filter var(--transition-base);
}

.logo:hover img {
	filter: drop-shadow(0 4px 12px var(--accent-glow));
}

.nav-links {
	display: flex;
	gap: 0.5rem;
	align-items: center;
}

.nav-links a {
	color: var(--text-secondary);
	text-decoration: none;
	padding: 0.625rem 1rem;
	border-radius: var(--radius-md);
	font-weight: 600;
	font-size: 0.9375rem;
	transition: all var(--transition-fast);
	position: relative;
	overflow: hidden;
}

.nav-links a::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--glass-medium);
	opacity: 0;
	transition: opacity var(--transition-fast);
}

.nav-links a:hover::before {
	opacity: 1;
}

.nav-links a:hover {
	color: var(--accent-primary);
	transform: translateY(-2px);
}

.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: var(--text-secondary);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0.5rem;
	transition: color var(--transition-fast);
}

.menu-toggle:hover {
	color: var(--accent-primary);
}

/* ===================== Sidebar ====================== */
.sidebar {
	width: var(--sidebar-width);
	background: linear-gradient(180deg, 
		rgba(20, 25, 34, 0.6), 
		rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	border: 1px solid var(--border-subtle);
	box-shadow: var(--shadow-lg);
	height: fit-content;
	max-height: calc(100vh - 4rem);
	position: sticky;
	top: 2rem;
	overflow-y: auto;
	overflow-x: hidden;
	transition: all var(--transition-base);
	animation: slideInLeft 0.4s ease-out;
	flex-shrink: 0;
}

/* Scrollbar für Sidebar */
.sidebar::-webkit-scrollbar {
	width: 6px;
}

.sidebar::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(0, 229, 153, 0.3);
	border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 229, 153, 0.5);
}

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

.sidebar:hover {
	background: linear-gradient(180deg, 
		rgba(20, 25, 34, 0.75), 
		rgba(15, 20, 29, 0.65));
	border-color: var(--border-medium);
	box-shadow: var(--shadow-xl);
}

.sidebar-header {
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h1 {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--accent-primary) !important;
	text-shadow: none;
}

/* Hamburger Button - versteckt auf Desktop */
.sidebar-toggle {
	display: none;
	border: none;
	background: none;
	cursor: pointer;
	outline: none;
}

/* Sidebar Overlay - versteckt auf Desktop */
.sidebar-overlay {
	display: none;
}

/* Sidebar Close Button - versteckt auf Desktop */
.sidebar-close {
	display: none;
}

.nav-section {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.nav-section a,
.sidebar-nav-item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.875rem 1rem;
	border-radius: var(--radius-md);
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9375rem;
	transition: all var(--transition-fast);
	position: relative;
	overflow: hidden;
}

.nav-section a::before,
.sidebar-nav-item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 3px;
	height: 100%;
	background: var(--accent-primary);
	opacity: 0;
	transform: scaleY(0);
	transition: all var(--transition-fast);
}

.nav-section a:hover,
.sidebar-nav-item:hover {
	background: var(--glass-medium);
	color: var(--accent-primary);
	transform: translateX(4px);
}

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

.nav-section a.active,
.sidebar-nav-item.active {
	background: linear-gradient(90deg, 
		rgba(0, 229, 153, 0.15), 
		rgba(0, 179, 119, 0.08));
	color: var(--accent-primary);
	box-shadow: var(--shadow-accent);
	font-weight: 700;
}

.nav-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.5;
	transition: transform var(--transition-fast);
}

.nav-section a:hover .nav-icon,
.sidebar-nav-item:hover .nav-icon {
	transform: scale(1.1);
}

.nav-section a.active .nav-icon,
.sidebar-nav-item.active .nav-icon {
	filter: drop-shadow(0 2px 8px var(--accent-glow));
}

/* ===================== Cards & Panels ====================== */
.card {
	background: linear-gradient(135deg, 
		rgba(20, 25, 34, 0.6), 
		rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	box-shadow: var(--shadow-md);
	transition: all var(--transition-base);
	position: relative;
	overflow: visible;
}

.card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, 
		transparent, 
		var(--accent-primary), 
		transparent);
	opacity: 0;
	transition: opacity var(--transition-base);
}

.card:hover {
	background: linear-gradient(135deg, 
		rgba(20, 25, 34, 0.75), 
		rgba(15, 20, 29, 0.65));
	border-color: var(--border-medium);
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
}

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

.card h3 {
	margin-bottom: 1rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.02em;
}

/* ===================== Page Header ====================== */
.page-header {
	text-align: left;
	margin-bottom: 2rem;
	animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.page-header .title,
.title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 800;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	letter-spacing: -0.03em;
	line-height: 1.2;
	margin-bottom: 0.5rem;
	position: relative;
	display: inline-block;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8), 0 4px 12px rgba(0, 0, 0, 0.7), 0 2px 20px rgba(0, 229, 153, 0.3);
	filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.9));
}

/* Ensure title visibility in all scenarios */
h1.title, .page-header h1.title, .title h1 {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	background: none !important;
	text-shadow: inherit !important;
	filter: inherit !important;
}

.page-header .title::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 60px;
	height: 4px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	border-radius: 2px;
	box-shadow: var(--shadow-accent);
}

.page-header .subtitle {
	color: var(--text-primary);
	margin-top: 1rem;
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.9;
}

/* ===================== Buttons ====================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-md);
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
	white-space: nowrap;
}

.btn::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, 
		rgba(255, 255, 255, 0.1), 
		transparent);
	opacity: 0;
	transition: opacity var(--transition-fast);
}

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

.btn-primary {
	background: linear-gradient(135deg, 
		var(--accent-primary), 
		var(--accent-secondary));
	color: var(--bg-primary);
	box-shadow: var(--shadow-accent);
	font-weight: 800;
}

.btn-primary:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-primary:active {
	transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
	background: var(--glass-light);
	border: 1px solid var(--border-medium);
	color: var(--text-secondary);
}

.btn-secondary:hover {
	background: var(--glass-medium);
	border-color: var(--border-strong);
	color: var(--text-primary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-danger {
	background: linear-gradient(135deg, #ff4d6d, #e63950);
	color: #fff;
	box-shadow: 0 8px 24px rgba(255, 77, 109, 0.2);
}

.btn-danger:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(255, 77, 109, 0.3);
}

.btn-outline {
	background: transparent;
	border: 2px dashed var(--border-medium);
	color: var(--text-primary);
	opacity: 0.9;
}

.btn-outline:hover {
	background: var(--glass-light);
	border-color: var(--accent-primary);
	color: var(--accent-primary);
	border-style: solid;
}

/* ===================== Forms ====================== */
label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
	opacity: 0.9;
	font-size: 0.9375rem;
	letter-spacing: 0.01em;
}

.form-row {
	display: flex;
	gap: var(--gap-md);
	align-items: center;
	flex-wrap: wrap;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 0.875rem 1rem;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	background: var(--glass-light);
	color: var(--text-primary);
	outline: none;
	font-size: 0.9375rem;
	transition: all var(--transition-base);
	font-family: inherit;
}

textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
	background: var(--glass-medium);
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
	border-color: var(--border-medium);
	background: var(--glass-medium);
}

input::placeholder,
textarea::placeholder {
	color: var(--text-muted);
}

.form-help {
	font-size: 0.875rem;
	color: var(--text-primary);
	opacity: 0.7;
	margin-top: 0.5rem;
	line-height: 1.4;
}

/* ===================== Tables ====================== */
.table-wrapper {
	overflow-x: auto;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-subtle);
	background: var(--glass-light);
}

.table {
	width: 100%;
	border-collapse: collapse;
	background: transparent;
	border-radius: var(--radius-md);
	overflow: hidden;
}

.table thead {
	position: sticky;
	top: 0;
	z-index: 10;
}

.table thead tr {
	background: linear-gradient(90deg, 
		rgba(0, 229, 153, 0.08), 
		rgba(0, 179, 119, 0.05));
	color: var(--text-primary);
	backdrop-filter: blur(8px);
}

.table th,
.table td {
	padding: 1rem 1.25rem;
	text-align: left;
	border-bottom: 1px solid var(--border-subtle);
	font-size: 0.9375rem;
	transition: background var(--transition-fast);
}

.table th {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8125rem;
	letter-spacing: 0.05em;
	color: var(--accent-primary);
}

.table tbody tr {
	transition: all var(--transition-fast);
}

.table tbody tr:hover {
	background: var(--glass-medium);
	transform: scale(1.001);
	box-shadow: inset 0 0 0 1px var(--border-medium);
}

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

.table .nowrap {
	white-space: nowrap;
}

/* ===================== Badges & Status ====================== */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all var(--transition-fast);
}

.badge::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
}

.badge--muted {
	background: var(--glass-medium);
	color: var(--text-primary);
	opacity: 0.8;
	border: 1px solid var(--border-subtle);
}

.badge--up {
	background: linear-gradient(135deg, var(--accent-primary) 0%, rgba(0, 229, 153, 0.9) 100%);
	color: white;
	border: 1px solid rgba(0, 229, 153, 0.5);
	box-shadow: 0 4px 12px rgba(0, 229, 153, 0.3);
	position: relative;
	z-index: 10001;
}

.badge--down {
	background: rgba(255, 77, 109, 0.15);
	color: #ff6b7a;
	border: 1px solid rgba(255, 77, 109, 0.3);
	box-shadow: 0 2px 8px rgba(255, 77, 109, 0.15);
}

.badge--partial {
	background: rgba(255, 165, 0, 0.15);
	color: #ffa500;
	border: 1px solid rgba(255, 165, 0, 0.3);
	box-shadow: 0 2px 8px rgba(255, 165, 0, 0.15);
}

.badge:hover {
	transform: scale(1.05);
}

/* ===================== Alerts ====================== */
.alert {
	padding: 1rem 1.25rem;
	border-radius: var(--radius-md);
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-left: 4px solid;
	transition: all var(--transition-fast);
	animation: slideInRight 0.3s ease-out;
}

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

.alert::before {
	content: '';
	width: 20px;
	height: 20px;
	background: currentColor;
	mask-size: contain;
	-webkit-mask-size: contain;
	flex-shrink: 0;
}

.alert-success {
	background: rgba(0, 229, 153, 0.1);
	border-color: var(--accent-primary);
	color: var(--accent-primary);
	box-shadow: 0 4px 16px rgba(0, 229, 153, 0.1);
}

.alert-error {
	background: rgba(255, 77, 109, 0.1);
	border-color: #ff4d6d;
	color: #ff6b7a;
	box-shadow: 0 4px 16px rgba(255, 77, 109, 0.1);
}

.alert-warning {
	background: rgba(255, 165, 0, 0.1);
	border-color: #ffa500;
	color: #ffb933;
	box-shadow: 0 4px 16px rgba(255, 165, 0, 0.1);
}

.alert-info {
	background: rgba(59, 130, 246, 0.1);
	border-color: #3b82f6;
	color: #60a5fa;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.alert:hover {
	transform: translateX(4px);
}

/* ===================== Utilities ====================== */
.muted {
	color: var(--text-primary);
	opacity: 0.8;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.flex {
	display: flex;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.stack {
	display: flex;
	flex-direction: column;
	gap: var(--gap-sm);
}

.grid {
	display: grid;
	gap: var(--gap-md);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
	display: none !important;
}

.visible {
	display: block !important;
}

/* ===================== Footer ====================== */
.footer {
	margin-top: 4rem;
	padding: 2.5rem clamp(1rem, 2vw, 2rem);
	border-top: 1px solid var(--border-subtle);
	color: var(--text-primary);
	opacity: 0.8;
	background: linear-gradient(180deg, 
		transparent, 
		rgba(10, 14, 23, 0.5));
}

.footer-content {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

.footer a {
	color: var(--text-secondary);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.footer a:hover {
	color: var(--accent-primary);
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-copyright {
	font-size: 0.875rem;
}

.footer .footer-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

/* ===================== Dashboard Specific ====================== */
.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--gap-md);
	margin-bottom: var(--gap-lg);
}

.kpi {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.5rem;
	background: linear-gradient(135deg, 
		rgba(20, 25, 34, 0.6), 
		rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border-radius: var(--radius-lg);
	border: 1px solid var(--border-subtle);
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
}

.kpi::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	opacity: 0;
	transition: opacity var(--transition-base);
}

.kpi:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--border-medium);
}

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

.kpi .value {
	font-size: 2.25rem;
	font-weight: 900;
	color: var(--text-primary);
	line-height: 1;
	letter-spacing: -0.02em;
}

.kpi .label {
	color: var(--text-primary);
	opacity: 0.8;
	font-size: 0.9375rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Service Status Cards */
.service-status-card {
	background: linear-gradient(135deg, 
		rgba(20, 25, 34, 0.6), 
		rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	transition: all var(--transition-base);
	position: relative;
}

.service-status-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--accent-primary);
	border-radius: var(--radius-lg) 0 0 var(--radius-lg);
	transition: width var(--transition-base);
}

.service-status-card:hover {
	transform: translateX(4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--border-medium);
}

.service-status-card:hover::before {
	width: 6px;
}

.service-status-card.offline::before {
	background: #ff4757;
}

.service-status-card.unknown::before {
	background: #6c757d;
}

/* Status Badge */
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	border-radius: 999px;
	background: var(--glass-medium);
	color: var(--text-secondary);
	font-weight: 700;
	font-size: 0.875rem;
	border: 1px solid var(--border-subtle);
	transition: all var(--transition-fast);
}

.status-badge::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 10px currentColor;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.1);
	}
}

.status-badge:hover {
	transform: scale(1.05);
	box-shadow: var(--shadow-md);
}

/* Loading States */
.loading {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid var(--glass-medium);
	border-top-color: var(--accent-primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

.skeleton {
	background: linear-gradient(90deg, 
		var(--glass-light) 25%, 
		var(--glass-medium) 50%, 
		var(--glass-light) 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s ease-in-out infinite;
	border-radius: var(--radius-md);
}

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

/* Stat Cards */
.stat-card {
	text-align: center;
	padding: 1.75rem;
	background: linear-gradient(135deg, 
		rgba(20, 25, 34, 0.6), 
		rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px) saturate(180%);
	-webkit-backdrop-filter: blur(16px) saturate(180%);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	transition: all var(--transition-base);
}

.stat-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: var(--shadow-xl);
	border-color: var(--border-medium);
}

.stat-card .icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--accent-glow);
	border-radius: var(--radius-md);
	color: var(--accent-primary);
}

.stat-card .value {
	font-size: 2.5rem;
	font-weight: 900;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.stat-card .label {
	color: var(--text-primary);
	opacity: 0.8;
	font-size: 0.9375rem;
	font-weight: 600;
}

/* Small Print */
.small {
	font-size: 0.8125rem;
	color: var(--text-primary);
	opacity: 0.7;
	line-height: 1.5;
}

/* Progress Bar */
.progress-bar {
	width: 100%;
	height: 8px;
	background: var(--glass-light);
	border-radius: 999px;
	overflow: hidden;
	position: relative;
}

.progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
	border-radius: 999px;
	transition: width 0.5s ease;
	box-shadow: 0 0 12px var(--accent-glow);
}

.progress-bar-fill.danger {
	background: linear-gradient(90deg, #ff4757, #e63950);
	box-shadow: 0 0 12px rgba(255, 77, 109, 0.3);
}

/* Tooltip */
.tooltip {
	position: relative;
	display: inline-block;
}

.tooltip .tooltip-text {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	z-index: 1000;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(10, 14, 23, 0.98);
	color: var(--text-primary);
	padding: 0.5rem 0.875rem;
	border-radius: var(--radius-md);
	white-space: nowrap;
	font-size: 0.875rem;
	font-weight: 600;
	border: 1px solid var(--border-medium);
	box-shadow: var(--shadow-lg);
	transition: all var(--transition-fast);
}

.tooltip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
	transform: translateX(-50%) translateY(-4px);
}

/* ===================== Responsive Design ====================== */
@media (max-width: 1200px) {
	:root {
		--max-width: 100%;
		--sidebar-width: 260px;
	}
	
	.container {
		padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(0.875rem, 1.5vw, 1.5rem);
	}
}

@media (max-width: 992px) {
	.sidebar {
		position: fixed;
		left: -100%;
		top: 0;
		height: 100vh;
		z-index: 9999;
		transition: left var(--transition-base);
		box-shadow: var(--shadow-xl);
	}
	
	.sidebar.active {
		left: 0;
	}
	
	.layout {
		flex-direction: column;
		gap: var(--gap-md);
	}
	
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		padding: 0.5rem;
		border-radius: var(--radius-md);
		transition: all var(--transition-fast);
	}
	
	.menu-toggle:hover {
		background: var(--glass-medium);
	}
	
	.nav-links {
		position: fixed;
		top: 70px;
		left: -100%;
		width: 100%;
		height: calc(100vh - 70px);
		background: linear-gradient(180deg, 
			rgba(10, 14, 23, 0.98), 
			rgba(10, 14, 23, 0.95));
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		flex-direction: column;
		padding: 2rem;
		gap: 1rem;
		transition: left var(--transition-base);
		z-index: 9998;
		box-shadow: inset 0 1px 0 var(--border-subtle);
	}
	
	.nav-links.active {
		left: 0;
	}
	
	.nav-links a {
		width: 100%;
		padding: 1rem 1.25rem;
		font-size: 1.125rem;
		border-radius: var(--radius-md);
		background: var(--glass-light);
		border: 1px solid var(--border-subtle);
	}
	
	.kpi-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: var(--gap-sm);
	}
	
	.services-grid {
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	}
	
	.footer-content {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
	}
	
	.table-wrapper {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	.page-header .title,
	.title,
	h1.title {
		font-size: clamp(1.75rem, 7vw, 2.25rem);
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
		background: none !important;
		background-image: none !important;
		-webkit-background-clip: unset !important;
		background-clip: unset !important;
	}
	
	.page-header .subtitle {
		font-size: 1rem;
	}
	
	.card {
		padding: 1.25rem;
	}
	
	.kpi {
		padding: 1.25rem;
	}
	
	.kpi .value {
		font-size: 1.875rem;
	}
	
	.services-grid {
		grid-template-columns: 1fr;
		gap: var(--gap-md);
	}
	
	.btn {
		width: 100%;
		justify-content: center;
	}
	
	.form-row {
		flex-direction: column;
		align-items: stretch;
	}
}

@media (max-width: 640px) {
	:root {
		--gap-sm: 0.5rem;
		--gap-md: 0.875rem;
		--gap-lg: 1.25rem;
	}
	
	.container {
		padding: 1rem 0.875rem;
	}
	
	.card {
		padding: 1rem;
		border-radius: var(--radius-md);
	}
	
	.kpi-grid {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}
	
	.kpi {
		padding: 1rem;
	}
	
	.kpi .value {
		font-size: 1.5rem;
	}
	
	.kpi .label {
		font-size: 0.8125rem;
	}
	
	.table th,
	.table td {
		padding: 0.75rem 0.5rem;
		font-size: 0.875rem;
	}
	
	.table th {
		font-size: 0.75rem;
	}
	
	.btn {
		padding: 0.625rem 1rem;
		font-size: 0.875rem;
	}
	
	.badge {
		padding: 0.375rem 0.75rem;
		font-size: 0.75rem;
	}
	
	.navbar {
		position: sticky;
	}
	
	.nav-container {
		padding: 0.875rem 1rem;
	}
	
	.logo {
		font-size: 1.125rem;
		gap: 0.625rem;
	}
	
	.logo img {
		width: 32px;
		height: 32px;
	}
	
	.page-header .title::after {
		width: 40px;
		height: 3px;
	}
	
	.modal-content {
		width: 95%;
		padding: 1.25rem;
		margin: 10% auto;
		max-height: 90vh;
	}
	
	.modal-header h3 {
		font-size: 1.25rem;
	}
	
	.alert {
		padding: 0.875rem 1rem;
		font-size: 0.875rem;
	}
	
	input,
	textarea,
	select {
		padding: 0.75rem 0.875rem;
		font-size: 0.875rem;
	}
	
	label {
		font-size: 0.875rem;
	}
}

@media (max-width: 480px) {
	.page-header .title,
	.title,
	h1.title {
		font-size: 1.5rem;
		color: #ffffff !important;
		-webkit-text-fill-color: #ffffff !important;
		background: none !important;
		background-image: none !important;
		-webkit-background-clip: unset !important;
		background-clip: unset !important;
	}
	
	.logo {
		font-size: 1rem;
	}
	
	.logo img {
		width: 28px;
		height: 28px;
	}
	
	.nav-links {
		padding: 1.5rem;
		gap: 0.75rem;
	}
	
	.footer {
		padding: 2rem 1rem;
	}
	
	.stat-card .value {
		font-size: 2rem;
	}
	
	.gradient-title {
		font-size: 1.75rem;
	}
}

/* ===================== Mobile First Improvements ====================== */
@media (hover: none) and (pointer: coarse) {
	/* Touch-optimierte Styles */
	.btn,
	.nav-links a,
	.nav-section a,
	.sidebar-nav-item {
		min-height: 44px;
		display: flex;
		align-items: center;
	}
	
	.table tbody tr:hover {
		background: transparent;
	}
	
	.table tbody tr:active {
		background: var(--glass-medium);
	}
	
	.card:hover {
		transform: none;
	}
	
	.card:active {
		transform: scale(0.98);
	}
}

/* ===================== Landscape Mobile ====================== */
@media (max-width: 992px) and (orientation: landscape) {
	.nav-links {
		height: calc(100vh - 60px);
		padding: 1rem;
		gap: 0.5rem;
	}
	
	.nav-links a {
		padding: 0.75rem 1rem;
		font-size: 1rem;
	}
	
	.sidebar {
		width: 280px;
		overflow-y: auto;
	}
}

/* ===================== Light Mode Support ====================== */
@media (prefers-color-scheme: light) {
	:root {
		/* Light Mode Farben */
		--bg-primary: #ffffff;
		--bg-secondary: #f8f9fa;
		--bg-elevated: #ffffff;
		--bg-card: rgba(255, 255, 255, 0.95);
		--bg-hover: rgba(0, 0, 0, 0.04);
		--bg-input: #f8f9fa;
		
		/* Akzentfarben bleiben gleich für Wiedererkennbarkeit */
		--accent-primary: #00b377;
		--accent-secondary: #007d52;
		--accent-tertiary: #005c3d;
		--accent-glow: rgba(0, 179, 119, 0.15);
		
		/* Textfarben invertiert */
		--text-primary: #1a1a1a;
		--text-secondary: rgba(0, 0, 0, 0.87);
		--text-tertiary: rgba(0, 0, 0, 0.6);
		--text-muted: rgba(0, 0, 0, 0.4);
		
		/* Border & Divider */
		--border-subtle: rgba(0, 0, 0, 0.08);
		--border-medium: rgba(0, 0, 0, 0.12);
		--border-strong: rgba(0, 0, 0, 0.18);
		
		/* Glass Morphism */
		--glass-light: rgba(0, 0, 0, 0.02);
		--glass-medium: rgba(0, 0, 0, 0.04);
		--glass-strong: rgba(0, 0, 0, 0.06);
		
		/* Shadows für Light Mode */
		--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
		--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
		--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
		--shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
		--shadow-accent: 0 8px 24px rgba(0, 179, 119, 0.2);
	}
	
	html, body {
		background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	}
	
	/* Navbar Light Mode */
	.navbar {
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.95));
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	}
	
	.navbar:hover {
		background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 249, 250, 0.98));
		border-bottom-color: rgba(0, 0, 0, 0.12);
	}
	
	/* Cards Light Mode */
	.card {
		background: rgba(255, 255, 255, 0.95);
		border: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	}
	
	.card:hover {
		border-color: rgba(0, 0, 0, 0.12);
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	}
	
	/* Sidebar Light Mode */
	.sidebar {
		background: rgba(255, 255, 255, 0.98);
		border-right: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 4px 0 16px rgba(0, 0, 0, 0.04);
	}
	
	.sidebar-item {
		color: var(--text-secondary);
	}
	
	.sidebar-item:hover {
		background: rgba(0, 0, 0, 0.04);
		color: var(--accent-primary);
	}
	
	.sidebar-item.active {
		background: rgba(0, 179, 119, 0.1);
		color: var(--accent-primary);
		border-left-color: var(--accent-primary);
	}
	
	/* Forms & Inputs Light Mode */
	input[type="text"],
	input[type="email"],
	input[type="password"],
	input[type="url"],
	input[type="number"],
	input[type="date"],
	input[type="datetime-local"],
	input[type="file"],
	select,
	textarea {
		background: #ffffff;
		border: 1px solid rgba(0, 0, 0, 0.12);
		color: var(--text-primary);
	}
	
	input:focus,
	textarea:focus,
	select:focus {
		background: #ffffff;
		border-color: var(--accent-primary);
		box-shadow: 0 0 0 3px var(--accent-glow);
	}
	
	input:hover:not(:focus),
	textarea:hover:not(:focus),
	select:hover:not(:focus) {
		border-color: rgba(0, 0, 0, 0.18);
		background: #ffffff;
	}
	
	/* Select/Dropdown spezifisch */
	select {
		background-color: #ffffff;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 1rem center;
		background-size: 12px;
		padding-right: 2.5rem;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		color: #1a1a1a;
		font-weight: 500;
	}
	
	select option {
		background: #ffffff;
		color: #1a1a1a;
		padding: 0.75rem;
		font-weight: 500;
		line-height: 1.5;
	}
	
	select:hover {
		border-color: var(--accent-primary);
	}
	
	select:focus {
		border-color: var(--accent-primary);
		box-shadow: 0 0 0 3px var(--accent-glow);
	}
	
	/* Buttons Light Mode */
	.btn {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}
	
	.btn:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	}
	
	.btn-secondary {
		background: #ffffff;
		border: 1px solid rgba(0, 0, 0, 0.12);
		color: var(--text-primary);
	}
	
	.btn-secondary:hover {
		background: rgba(0, 0, 0, 0.04);
		border-color: rgba(0, 0, 0, 0.18);
	}
	
	/* Tables Light Mode */
	table {
		background: #ffffff;
	}
	
	table thead {
		background: rgba(0, 0, 0, 0.03);
		border-bottom: 2px solid rgba(0, 0, 0, 0.08);
	}
	
	table tbody tr {
		border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	}
	
	table tbody tr:hover {
		background: rgba(0, 0, 0, 0.02);
	}
	
	/* Status Badges Light Mode */
	.badge.badge-success {
		background: rgba(40, 167, 69, 0.15);
		color: #1e7e34;
	}
	
	.badge.badge-warning {
		background: rgba(255, 193, 7, 0.15);
		color: #d39e00;
	}
	
	.badge.badge-danger {
		background: rgba(220, 53, 69, 0.15);
		color: #bd2130;
	}
	
	.badge.badge-info {
		background: rgba(23, 162, 184, 0.15);
		color: #117a8b;
	}
	
	/* Alerts Light Mode */
	.alert {
		border: 1px solid;
	}
	
	.alert-success {
		background: rgba(40, 167, 69, 0.1);
		border-color: rgba(40, 167, 69, 0.3);
		color: #1e7e34;
	}
	
	.alert-error,
	.alert-danger {
		background: rgba(220, 53, 69, 0.1);
		border-color: rgba(220, 53, 69, 0.3);
		color: #bd2130;
	}
	
	.alert-warning {
		background: rgba(255, 193, 7, 0.1);
		border-color: rgba(255, 193, 7, 0.3);
		color: #d39e00;
	}
	
	.alert-info {
		background: rgba(23, 162, 184, 0.1);
		border-color: rgba(23, 162, 184, 0.3);
		color: #117a8b;
	}
	
	/* Code Blocks Light Mode */
	pre,
	code {
		background: #f8f9fa;
		border: 1px solid rgba(0, 0, 0, 0.08);
		color: #d63384;
	}
	
	/* Stat Cards Light Mode */
	.stat-card {
		background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
		border: 1px solid rgba(0, 0, 0, 0.08);
	}
	
	.stat-card:hover {
		border-color: var(--accent-primary);
		box-shadow: 0 4px 16px rgba(0, 179, 119, 0.15);
	}
	
	/* Modal Light Mode */
	.modal {
		background: rgba(0, 0, 0, 0.5);
	}
	
	.modal-content {
		background: #ffffff;
		border: 1px solid rgba(0, 0, 0, 0.12);
		box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	}
	
	/* Footer Light Mode */
	.footer {
		background: rgba(255, 255, 255, 0.95);
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}
	
	/* Links Light Mode */
	a {
		color: var(--accent-primary);
	}
	
	a:hover {
		color: var(--accent-secondary);
	}
}

/* ===================== Dark Mode (Standard) ====================== */
@media (prefers-color-scheme: dark) {
	/* Already optimized for dark mode */
	select {
		background-color: var(--bg-elevated);
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: right 1rem center;
		background-size: 12px;
		padding-right: 2.5rem;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		color: var(--text-primary);
		font-weight: 500;
		border: 1px solid var(--border-subtle);
		transition: all 0.2s ease;
	}
	
	select:hover {
		border-color: var(--accent-primary);
		background-color: rgba(0, 229, 153, 0.05);
	}
	
	select:focus {
		border-color: var(--accent-primary);
		box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.2);
		outline: none;
	}
	
	select option {
		background: var(--bg-secondary);
		color: var(--text-primary);
		padding: 0.75rem;
		font-weight: 500;
		line-height: 1.5;
	}
}

/* ===================== Reduced Motion ====================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ===================== Print Styles ====================== */
@media print {
	.navbar,
	.sidebar,
	.footer,
	.btn,
	.menu-toggle {
		display: none !important;
	}
	
	.layout {
		flex-direction: column;
	}
	
	.card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #000;
	}
}

/* ===================== Dashboard Specific Styles ====================== */

/* Dashboard Header */
.dashboard-header {
	background: linear-gradient(135deg, rgba(0, 229, 153, 0.1), rgba(0, 208, 132, 0.05));
	border: 1px solid rgba(0, 229, 153, 0.2);
	border-radius: var(--radius-xl);
	padding: 2rem;
	margin-bottom: 2rem;
	position: relative;
	overflow: hidden;
}

.dashboard-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 50%, rgba(0, 229, 153, 0.1), transparent 50%);
	pointer-events: none;
}

.dashboard-header p {
	position: relative;
	z-index: 1;
}

.balance-box {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(0, 229, 153, 0.15);
	border: 1px solid rgba(0, 229, 153, 0.3);
	border-radius: var(--radius-lg);
	padding: 0.75rem 1.5rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--accent-primary);
	margin-top: 1rem;
	position: relative;
	z-index: 1;
	transition: all var(--transition-fast);
}

.balance-box:hover {
	background: rgba(0, 229, 153, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 229, 153, 0.2);
}

/* License Cards */
.license-list {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.6), rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: 2rem;
	margin-bottom: 2rem;
}

.license-card {
	background: linear-gradient(135deg, rgba(30, 35, 48, 0.8), rgba(25, 30, 43, 0.7));
	border: 1px solid rgba(0, 229, 153, 0.15);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
}

.license-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
	opacity: 0;
	transition: opacity var(--transition-fast);
}

.license-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-xl);
	border-color: rgba(0, 229, 153, 0.3);
}

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

.license-key {
	display: inline-flex;
	align-items: center;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(0, 229, 153, 0.2);
	border-radius: var(--radius-md);
	padding: 0.75rem 1rem;
	font-family: 'Monaco', 'Courier New', monospace;
	font-size: 0.9rem;
	color: var(--accent-primary);
	letter-spacing: 0.5px;
	margin-right: 0.75rem;
	user-select: all;
}

.copy-btn {
	background: rgba(0, 229, 153, 0.1) !important;
	border: 1px solid rgba(0, 229, 153, 0.3) !important;
	color: var(--accent-primary) !important;
	padding: 0.5rem 1rem !important;
	font-size: 0.875rem !important;
	transition: all var(--transition-fast) !important;
}

.copy-btn:hover {
	background: rgba(0, 229, 153, 0.2) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 229, 153, 0.2);
}

/* Dashboard Stats Grid */
.dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.stat-card {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.8), rgba(15, 20, 29, 0.7));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
	opacity: 0;
	transition: opacity var(--transition-fast);
}

.stat-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
	border-color: var(--border-medium);
}

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

.stat-card.online {
	border-color: rgba(0, 208, 132, 0.3);
}

.stat-card.online:hover {
	border-color: rgba(0, 208, 132, 0.5);
	box-shadow: 0 12px 40px rgba(0, 208, 132, 0.15);
}

.stat-card.offline {
	border-color: rgba(255, 77, 109, 0.3);
}

.stat-card.offline:hover {
	border-color: rgba(255, 77, 109, 0.5);
	box-shadow: 0 12px 40px rgba(255, 77, 109, 0.15);
}

.stat-card.uptime {
	border-color: rgba(108, 92, 231, 0.3);
}

.stat-card.uptime:hover {
	border-color: rgba(108, 92, 231, 0.5);
	box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}

/* Dashboard Filter */
.dashboard-filter {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.6), rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.dashboard-filter input[type="text"]:focus,
.dashboard-filter select:focus {
	outline: none;
	border-color: rgba(0, 229, 153, 0.5);
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.1);
}

/* Services Grid */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.service-card {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.8), rgba(15, 20, 29, 0.7));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: 1.75rem;
	transition: all var(--transition-base);
	position: relative;
	overflow: hidden;
}

.service-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 50% 0%, rgba(0, 229, 153, 0.05), transparent 60%);
	opacity: 0;
	transition: opacity var(--transition-base);
	pointer-events: none;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
	border-color: var(--border-medium);
}

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

.service-bg {
	position: absolute;
	top: 0;
	right: 0;
	width: 120px;
	height: 120px;
	background: radial-gradient(circle, rgba(0, 229, 153, 0.08), transparent 70%);
	border-radius: 50%;
	pointer-events: none;
	transition: all var(--transition-base);
}

.service-card:hover .service-bg {
	transform: scale(1.5);
	opacity: 0.5;
}

.service-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1.25rem;
	position: relative;
	z-index: 1;
}

.service-name {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text-primary);
}

.status-badge.online {
	width: 12px;
	height: 12px;
	background: var(--accent-primary);
	border-radius: 50%;
	box-shadow: 0 0 12px var(--accent-primary);
	animation: pulse-online 2s ease-in-out infinite;
}

.status-badge.offline {
	width: 12px;
	height: 12px;
	background: #ff4757;
	border-radius: 50%;
	box-shadow: 0 0 12px #ff4757;
	animation: pulse-offline 2s ease-in-out infinite;
}

.status-badge.unknown {
	width: 12px;
	height: 12px;
	background: #ffa502;
	border-radius: 50%;
	box-shadow: 0 0 12px #ffa502;
}

@keyframes pulse-online {
	0%, 100% {
		box-shadow: 0 0 12px var(--accent-primary);
	}
	50% {
		box-shadow: 0 0 20px var(--accent-primary), 0 0 30px rgba(0, 229, 153, 0.3);
	}
}

@keyframes pulse-offline {
	0%, 100% {
		box-shadow: 0 0 12px #ff4757;
	}
	50% {
		box-shadow: 0 0 20px #ff4757, 0 0 30px rgba(255, 77, 109, 0.3);
	}
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.6), rgba(15, 20, 29, 0.5));
	backdrop-filter: blur(16px);
	border: 2px dashed var(--border-subtle);
	border-radius: var(--radius-xl);
	margin: 2rem 0;
}

.empty-state p {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 2rem;
}

.empty-state::before {
	content: '📭';
	display: block;
	font-size: 4rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

/* Button Small Variant */
.btn-small {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-medium);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text-primary);
	text-decoration: none;
	transition: all var(--transition-fast);
	cursor: pointer;
}

.btn-small:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* Profile Page Specific */
.profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.profile-card {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.8), rgba(15, 20, 29, 0.7));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: 2rem;
}

.profile-card h3 {
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
}

/* Admin Page Specific */
.admin-grid {
	display: grid;
	gap: 2rem;
}

.admin-section {
	background: linear-gradient(135deg, rgba(20, 25, 34, 0.8), rgba(15, 20, 29, 0.7));
	backdrop-filter: blur(16px);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-xl);
	padding: 2rem;
}

.admin-section h3 {
	color: var(--text-primary);
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
	.dashboard-stats {
		grid-template-columns: 1fr;
	}
	
	.services-grid {
		grid-template-columns: 1fr;
	}
	
	.profile-grid {
		grid-template-columns: 1fr;
	}
	
	.dashboard-filter > div {
		grid-template-columns: 1fr !important;
	}
	
	.license-card {
		padding: 1.25rem;
	}
	
	.dashboard-header {
		padding: 1.5rem;
	}
}

/* Page Header Component */
.page-header {
	margin-bottom: 2rem;
}

.page-header .title,
.title,
h1.title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	background: none !important;
	background-image: none !important;
	-webkit-background-clip: unset !important;
	background-clip: unset !important;
	text-shadow: none !important;
	margin-bottom: 0.5rem;
}

/* Form Enhancements for Dashboard */
.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 0.875rem 1rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-md);
	color: var(--text-primary);
	font-size: 1rem;
	transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: rgba(0, 229, 153, 0.5);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(0, 229, 153, 0.1);
}

.form-group input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.form-group small {
	display: block;
	margin-top: 0.5rem;
	color: var(--text-primary);
	opacity: 0.7;
	font-size: 0.875rem;
}

/* Table Improvements */
table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.02);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

table thead {
	background: rgba(0, 229, 153, 0.1);
	border-bottom: 2px solid rgba(0, 229, 153, 0.2);
}

table th {
	padding: 1rem;
	text-align: left;
	font-weight: 700;
	color: var(--text-primary);
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

table td {
	padding: 1rem;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-subtle);
}

table tbody tr {
	transition: background var(--transition-fast);
}

table tbody tr:hover {
	background: rgba(255, 255, 255, 0.05);
}

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

/* End of stylesheet */
