:root {
	--bg-primary: #0a0e27;
	--bg-secondary: #131629;
	--bg-tertiary: #1a1f3a;
	--surface: rgba(20, 25, 50, 0.7);
	--surface-light: rgba(30, 35, 60, 0.8);
	--border: rgba(100, 200, 255, 0.1);
	--border-glow: rgba(100, 200, 255, 0.3);
	--text-primary: #e0e7ff;
	--text-secondary: #a0aec0;
	--text-muted: #64748b;
	--accent-cyan: #00f0ff;
	--accent-blue: #0080ff;
	--accent-purple: #b300ff;
	--accent-pink: #ff006e;
	--glow-blue: rgba(0, 128, 255, 0.5);
	--glow-cyan: rgba(0, 240, 255, 0.5);
	--success: #00ff88;
	--warning: #ffa500;
	--danger: #ff0055;
}

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

html,
body {
	font-family:
		"Segoe UI", "Helvetica Neue", -apple-system, system-ui, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	overflow-x: hidden;
	scroll-behavior: smooth;
}

body {
	position: relative;
}

.cyber-grid {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		linear-gradient(0deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	z-index: 1;
}

.particle-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
}

.particle {
	position: absolute;
	width: 2px;
	height: 2px;
	background: var(--accent-cyan);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--accent-cyan);
	animation: float 20s infinite;
}

@keyframes float {
	0%,
	100% {
		transform: translate(0, 0) rotate(0deg);
		opacity: 0.3;
	}
	50% {
		opacity: 0.8;
	}
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: rgba(10, 14, 39, 0.95);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-glow);
	z-index: 1000;
	box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.navbar-container {
	max-width: 1600px;
	margin: 0 auto;
	padding: 0 40px;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.brand-icon {
	font-size: 28px;
}

.brand-title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.navbar-menu {
	display: flex;
	align-items: center;
	gap: 40px;
}

.nav-link {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link::after {
	content: "";
	position: absolute;
	bottom: -4px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
	transition: width 0.3s ease;
}

.nav-link:hover {
	color: var(--accent-cyan);
}

.nav-link:hover::after {
	width: 100%;
}

.nav-icon {
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-icon:hover {
	transform: scale(1.2) rotate(10deg);
}

.hero {
	position: relative;
	min-height: 550px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 80px;
	overflow: visible;
	padding-bottom: 20px;
	background: linear-gradient(
		135deg,
		rgba(0, 128, 255, 0.05),
		rgba(179, 0, 255, 0.05)
	);
	z-index: 2;
}

.hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.8;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	max-width: 900px;
	padding: 40px;
}

.hero-title {
	font-size: 56px;
	font-weight: 800;
	letter-spacing: -1px;
	margin-bottom: 16px;
	background: linear-gradient(
		135deg,
		var(--accent-cyan),
		var(--accent-blue),
		var(--accent-purple)
	);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
	0%,
	100% {
		filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
	}
	50% {
		filter: drop-shadow(0 0 40px rgba(0, 128, 255, 0.5));
	}
}

.hero-subtitle {
	font-size: 18px;
	color: var(--text-secondary);
	margin-bottom: 40px;
	letter-spacing: 0.5px;
}

.hero-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px;
	margin-top: 40px;
}

.stat-box {
	background: rgba(0, 128, 255, 0.1);
	border: 1px solid var(--border-glow);
	border-radius: 16px;
	padding: 24px;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	cursor: pointer;
}

.stat-box:hover {
	border-color: var(--accent-cyan);
	box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
	transform: translateY(-4px);
}

.stat-value {
	font-size: 36px;
	font-weight: 800;
	color: var(--accent-cyan);
	margin-bottom: 8px;
}

.stat-label {
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.dashboard {
	max-width: 1600px;
	margin: 0 auto;
	padding: 80px 40px 60px;
	position: relative;
	z-index: 2;
}

.dashboard-section {
	margin-bottom: 80px;
}

.section-header {
	margin-bottom: 40px;
}

.section-header h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 8px;
	background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-subtitle {
	color: var(--text-secondary);
	font-size: 14px;
	letter-spacing: 0.5px;
}

.control-panel {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin-bottom: 40px;
}

.control-panel.multi-control {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.search-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.search-wrapper label {
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.modern-select {
	padding: 14px 16px;
	background: var(--surface-light);
	border: 1px solid var(--border);
	border-radius: 12px;
	color: var(--text-primary);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.modern-select:hover {
	border-color: var(--accent-cyan);
	box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.modern-select:focus {
	outline: none;
	border-color: var(--accent-cyan);
	box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.modern-select option {
	background: var(--bg-secondary);
	color: var(--text-primary);
}

.cards-grid {
	display: grid;
	gap: 24px;
	margin-bottom: 24px;
}

.cards-grid.two-col {
	grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.cards-grid.three-col {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.glass-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 32px;
	backdrop-filter: blur(20px);
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	position: relative;
	overflow: hidden;
}

.glass-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		135deg,
		rgba(0, 240, 255, 0.05),
		rgba(179, 0, 255, 0.05)
	);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.glass-card:hover {
	border-color: var(--border-glow);
	box-shadow:
		0 0 40px rgba(0, 240, 255, 0.2),
		0 0 80px rgba(0, 128, 255, 0.1);
	transform: translateY(-8px);
}

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

.glass-card.full-width {
	grid-column: 1 / -1;
}

.card-header {
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.card-header h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--accent-cyan);
}

.risk-gauge-container {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	max-width: 280px;
	margin: 0 auto;
}

.risk-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 24px;
	font-weight: 800;
	padding: 12px 20px;
	background: rgba(0, 240, 255, 0.2);
	border: 2px solid var(--accent-cyan);
	border-radius: 999px;
	z-index: 10;
}

.metrics-display {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}

.metric-item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	background: rgba(0, 128, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: all 0.3s ease;
}

.metric-item:hover {
	border-color: var(--accent-cyan);
	background: rgba(0, 240, 255, 0.1);
}

.metric-title {
	font-size: 11px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.metric-value {
	font-size: 32px;
	font-weight: 800;
	color: var(--accent-cyan);
	line-height: 1;
}

.metric-unit {
	font-size: 12px;
	color: var(--text-muted);
}

.metric-badge {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 8px;
	width: fit-content;
	border: 1px solid;
}

.metric-badge.low {
	color: var(--success);
	border-color: var(--success);
	background: rgba(0, 255, 136, 0.1);
}

.metric-badge.medium {
	color: var(--warning);
	border-color: var(--warning);
	background: rgba(255, 165, 0, 0.1);
}

.metric-badge.high {
	color: var(--danger);
	border-color: var(--danger);
	background: rgba(255, 0, 85, 0.1);
}

.large-metric {
	font-size: 48px;
	font-weight: 800;
	color: var(--accent-cyan);
	line-height: 1;
	margin: 16px 0;
}

.metric-subtext {
	font-size: 12px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.chart-container {
	width: 100%;
	max-height: 300px;
}

.top-industries-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 16px;
}

.industry-rank {
	background: rgba(0, 128, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.3s ease;
}

.industry-rank:hover {
	border-color: var(--accent-cyan);
	background: rgba(0, 240, 255, 0.1);
	transform: translateX(4px);
}

.rank-number {
	font-size: 24px;
	font-weight: 800;
	color: var(--accent-blue);
	min-width: 40px;
}

.rank-info {
	flex: 1;
}

.rank-name {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
}

.rank-details {
	font-size: 12px;
	color: var(--text-secondary);
	margin-top: 4px;
}

.rank-score {
	font-size: 20px;
	font-weight: 800;
	color: var(--accent-cyan);
	text-align: right;
}

.comparison-metrics {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.comparison-card {
	background: rgba(0, 128, 255, 0.05);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 20px;
}

.comparison-country {
	font-size: 13px;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.comparison-value {
	font-size: 28px;
	font-weight: 800;
	color: var(--accent-cyan);
}

.footer {
	background: rgba(10, 14, 39, 0.8);
	border-top: 1px solid var(--border);
	padding: 40px;
	text-align: center;
	color: var(--text-secondary);
	font-size: 12px;
	letter-spacing: 0.5px;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */

.sidebar-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 24px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	margin-right: 20px;
}

.sidebar-toggle span {
	width: 100%;
	height: 2px;
	background: var(--accent-cyan);
	border-radius: 2px;
	transition: all 0.3s ease;
}

.sidebar {
	position: fixed;
	left: -300px;
	top: 80px;
	width: 280px;
	height: calc(100vh - 80px);
	background: rgba(19, 22, 41, 0.95);
	backdrop-filter: blur(20px);
	border-right: 2px solid var(--border-glow);
	z-index: 999;
	transition: left 0.3s ease;
	overflow-y: auto;
	box-shadow: 2px 0 20px rgba(0, 240, 255, 0.1);
}

.sidebar.active {
	left: 0;
}

.sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid var(--border);
}

.sidebar-header h3 {
	margin: 0;
	font-size: 16px;
	color: var(--text-primary);
}

.sidebar-close {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 20px;
	cursor: pointer;
	transition: color 0.2s;
}

.sidebar-close:hover {
	color: var(--accent-cyan);
}

.sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 10px 0;
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	color: var(--text-secondary);
	text-decoration: none;
	transition: all 0.2s ease;
	border-left: 3px solid transparent;
}

.sidebar-link:hover {
	background: rgba(0, 240, 255, 0.05);
	color: var(--accent-cyan);
	border-left-color: var(--accent-cyan);
}

.sidebar-link.active {
	background: rgba(0, 240, 255, 0.1);
	color: var(--accent-cyan);
	border-left-color: var(--accent-cyan);
	font-weight: 600;
}

.sidebar-icon {
	font-size: 18px;
	display: inline-block;
}

.sidebar-label {
	flex: 1;
	font-size: 14px;
}

/* ============================================
   FILTER MODAL & CHIPS
   ============================================ */

.filter-btn {
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid var(--accent-cyan);
	color: var(--accent-cyan);
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
	margin-right: 20px;
}

.filter-btn:hover {
	background: rgba(0, 240, 255, 0.2);
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.filter-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
	z-index: 1001;
	align-items: center;
	justify-content: flex-end;
	animation: fadeIn 0.3s ease;
}

.filter-modal.active {
	display: flex;
}

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

.filter-content {
	background: var(--bg-secondary);
	width: 100%;
	max-width: 400px;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-left: 2px solid var(--border-glow);
	box-shadow: -5px 0 30px rgba(0, 240, 255, 0.2);
	animation: slideIn 0.3s ease;
}

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

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid var(--border);
}

.filter-header h2 {
	margin: 0;
	font-size: 18px;
	color: var(--text-primary);
}

.filter-close {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 24px;
	cursor: pointer;
	transition: color 0.2s;
}

.filter-close:hover {
	color: var(--accent-cyan);
}

.filter-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.filter-group label {
	font-size: 13px;
	font-weight: 600;
	color: var(--accent-cyan);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.filter-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: var(--text-secondary);
	transition: color 0.2s;
}

.filter-checkbox:hover {
	color: var(--accent-cyan);
}

.filter-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--accent-cyan);
}

.filter-footer {
	display: flex;
	gap: 10px;
	padding: 20px;
	border-top: 1px solid var(--border);
}

.btn-primary,
.btn-secondary {
	flex: 1;
	padding: 10px 16px;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.btn-primary {
	background: linear-gradient(135deg, #00f0ff, #b300ff);
	color: #0a0e27;
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
	box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
	transform: translateY(-2px);
}

.btn-secondary {
	background: transparent;
	color: var(--accent-cyan);
	border: 1px solid var(--accent-cyan);
}

.btn-secondary:hover {
	background: rgba(0, 240, 255, 0.1);
}

.filter-chips-container {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px;
	background: rgba(0, 240, 255, 0.05);
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.chips-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--accent-cyan);
	white-space: nowrap;
}

#activeChips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid var(--accent-cyan);
	border-radius: 16px;
	font-size: 12px;
	color: var(--accent-cyan);
}

.filter-chip-close {
	cursor: pointer;
	font-weight: bold;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.filter-chip-close:hover {
	opacity: 1;
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.active {
	background: rgba(0, 255, 136, 0.15);
	color: #00ff88;
	border: 1px solid rgba(0, 255, 136, 0.3);
}

.status-badge.inactive {
	background: rgba(100, 100, 100, 0.2);
	color: #999;
	border: 1px solid rgba(100, 100, 100, 0.3);
}

.status-badge.listed {
	background: rgba(255, 0, 85, 0.15);
	color: #ff0055;
	border: 1px solid rgba(255, 0, 85, 0.3);
}

.risk-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.risk-badge.critical {
	background: rgba(255, 0, 85, 0.2);
	color: #ff0055;
}

.risk-badge.high {
	background: rgba(255, 102, 0, 0.2);
	color: #ff6600;
}

.risk-badge.medium {
	background: rgba(255, 200, 0, 0.2);
	color: #ffc800;
}

.risk-badge.low {
	background: rgba(0, 255, 136, 0.2);
	color: #00ff88;
}

/* ============================================
   ENTITIES TABLE & SEARCH
   ============================================ */

.entities-toolbar {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	align-items: center;
	flex-wrap: wrap;
}

.toolbar-search {
	flex: 1;
	min-width: 250px;
	position: relative;
}

.search-input {
	width: 100%;
	padding: 12px 40px 12px 16px;
	background: rgba(100, 200, 255, 0.05);
	border: 1px solid var(--border-glow);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 14px;
	transition: all 0.2s;
}

.search-input:focus {
	outline: none;
	border-color: var(--accent-cyan);
	background: rgba(100, 200, 255, 0.1);
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.search-input::placeholder {
	color: var(--text-muted);
}

.search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
}

.toolbar-actions {
	display: flex;
	gap: 10px;
}

.btn-export,
.btn-sort {
	padding: 10px 16px;
	background: rgba(0, 240, 255, 0.1);
	border: 1px solid var(--accent-cyan);
	color: var(--accent-cyan);
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s;
	white-space: nowrap;
}

.btn-export:hover,
.btn-sort:hover {
	background: rgba(0, 240, 255, 0.2);
	box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.entities-table-wrapper {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: rgba(20, 25, 50, 0.5);
}

.entities-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.entities-table thead {
	background: rgba(0, 240, 255, 0.05);
	border-bottom: 2px solid var(--border-glow);
}

.entities-table th {
	padding: 14px;
	text-align: left;
	color: var(--accent-cyan);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.entities-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--border);
	color: var(--text-secondary);
}

.entities-table tbody tr {
	transition: all 0.2s;
}

.entities-table tbody tr:hover {
	background: rgba(0, 240, 255, 0.05);
}

.entity-name {
	color: var(--accent-cyan);
	font-weight: 500;
	word-break: break-word;
	max-width: 250px;
}

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

.copy-btn {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s;
	padding: 4px;
}

.copy-btn:hover {
	color: var(--accent-cyan);
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.loading-skeleton {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
}

.skeleton-row {
	height: 50px;
	background: linear-gradient(
		90deg,
		rgba(100, 200, 255, 0.05),
		rgba(100, 200, 255, 0.1),
		rgba(100, 200, 255, 0.05)
	);
	background-size: 200% 100%;
	border-radius: 4px;
	animation: skeleton-loading 1.5s infinite;
}

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

@media (max-width: 1200px) {
	.navbar-container {
		padding: 0 20px;
	}

	.dashboard {
		padding: 60px 20px 40px;
	}

	.cards-grid.two-col,
	.cards-grid.three-col {
		grid-template-columns: 1fr;
	}

	.hero-title {
		font-size: 40px;
	}

	.section-header h2 {
		font-size: 28px;
	}
}

/* Loading and Error States */
.loading-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 32px;
	margin-top: 24px;
	background: rgba(0, 240, 255, 0.05);
	border: 2px solid rgba(0, 240, 255, 0.2);
	border-radius: 12px;
	text-align: center;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 240, 255, 0.2);
	border-top-color: var(--accent-cyan);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

.loading-state p {
	color: var(--accent-cyan);
	font-size: 14px;
	font-weight: 500;
}

.error-state {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 24px;
	margin: 16px 0;
	background: rgba(255, 0, 85, 0.1);
	border: 2px solid rgba(255, 0, 85, 0.3);
	border-radius: 8px;
	text-align: left;
}

.error-state p {
	color: var(--danger);
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

/* ============================================
   STATISTICS DASHBOARD STYLES
   ============================================ */

.stat-card {
	background: linear-gradient(
		135deg,
		rgba(0, 240, 255, 0.05),
		rgba(179, 0, 255, 0.05)
	);
	border: 2px solid var(--border-glow);
	transition: all 0.3s ease;
}

.stat-card:hover {
	border-color: var(--accent-cyan);
	box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
	transform: translateY(-5px);
}

.risk-distribution {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.risk-category {
	display: flex;
	align-items: center;
	gap: 16px;
}

.risk-label {
	min-width: 80px;
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}

.risk-label.critical {
	color: #ff0055;
}

.risk-label.high {
	color: #ff6600;
}

.risk-label.medium {
	color: #ffc800;
}

.risk-label.low {
	color: #00ff88;
}

.bar-container {
	flex: 1;
	height: 24px;
	background: rgba(100, 200, 255, 0.1);
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	border: 1px solid var(--border);
	display: flex;
	align-items: center;
}

.bar {
	height: 100%;
	border-radius: 12px;
	transition: width 0.4s ease;
	position: relative;
	box-shadow: 0 0 10px currentColor;
}

.bar.critical {
	background: linear-gradient(90deg, #ff0055, #ff6699);
}

.bar.high {
	background: linear-gradient(90deg, #ff6600, #ffaa00);
}

.bar.medium {
	background: linear-gradient(90deg, #ffc800, #ffdd00);
}

.bar.low {
	background: linear-gradient(90deg, #00ff88, #00ddff);
}

.bar-count {
	margin-left: 12px;
	font-weight: 600;
	font-size: 13px;
	color: var(--text-secondary);
	min-width: 30px;
	text-align: right;
}

.stats-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 10px;
}

.stats-list::-webkit-scrollbar {
	width: 6px;
}

.stats-list::-webkit-scrollbar-track {
	background: rgba(100, 200, 255, 0.1);
	border-radius: 3px;
}

.stats-list::-webkit-scrollbar-thumb {
	background: rgba(0, 240, 255, 0.3);
	border-radius: 3px;
}

.stats-list::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 240, 255, 0.6);
}

.stats-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	background: rgba(100, 200, 255, 0.05);
	border-left: 3px solid var(--accent-cyan);
	border-radius: 4px;
	transition: all 0.2s ease;
}

.stats-item:hover {
	background: rgba(100, 200, 255, 0.12);
	border-left-color: var(--accent-purple);
}

.stats-label {
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
}

.stats-value {
	font-size: 14px;
	font-weight: 700;
	color: var(--accent-cyan);
	background: rgba(0, 240, 255, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	min-width: 35px;
	text-align: center;
}

/* Chart container styling for statistics */
#trendingCountriesChart,
#countByCountryChart {
	max-height: 400px;
	margin: 20px 0;
}

/* Responsive for tablets */
@media (max-width: 1200px) {
	.sidebar {
		width: 250px;
		left: -250px;
	}

	.navbar {
		padding-left: 10px;
	}

	.filter-content {
		max-width: 350px;
	}

	.entities-table {
		font-size: 12px;
	}

	.entities-table th,
	.entities-table td {
		padding: 10px;
	}
}

@media (max-width: 768px) {
	.sidebar-toggle {
		display: flex;
	}

	.sidebar {
		width: 260px;
		left: -260px;
		top: 64px;
		height: calc(100vh - 64px);
	}

	.navbar {
		height: 64px;
	}

	.navbar-brand h1 {
		font-size: 16px;
	}

	.navbar-menu {
		gap: 10px;
	}

	.nav-link {
		display: none;
	}

	.filter-btn {
		display: none;
	}

	.filter-content {
		max-width: none;
		width: 100%;
	}

	.entities-toolbar {
		flex-direction: column;
		gap: 10px;
	}

	.toolbar-search {
		width: 100%;
	}

	.toolbar-actions {
		width: 100%;
		justify-content: space-between;
	}

	.entities-table {
		font-size: 11px;
	}

	.entities-table th,
	.entities-table td {
		padding: 8px;
	}

	.entity-name {
		max-width: 120px;
		font-size: 12px;
	}

	.entity-actions {
		flex-direction: column;
		gap: 4px;
	}

	.filter-chips-container {
		padding: 8px 12px;
	}

	.filter-chip {
		font-size: 11px;
		padding: 3px 10px;
	}
}
	.navbar {
		height: 64px;
	}

	.navbar-container {
		padding: 0 16px;
	}

	.brand-title {
		font-size: 16px;
	}

	.navbar-menu {
		gap: 20px;
	}

	.nav-link {
		display: none;
	}

	.hero {
		min-height: 400px;
		margin-top: 64px;
		overflow: visible;
		padding-bottom: 20px;
	}

	.hero-title {
		font-size: 28px;
	}

	.hero-subtitle {
		font-size: 14px;
	}

	.hero-stats {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 30px;
	}

	.dashboard {
		padding: 40px 16px 30px;
	}

	.section-header h2 {
		font-size: 24px;
	}

	.glass-card {
		padding: 20px;
	}

	.control-panel.multi-control {
		grid-template-columns: 1fr;
	}

	.metric-value {
		font-size: 24px;
	}

	.large-metric {
		font-size: 36px;
	}
}
