/* =========================================================
   PASOLA-Cyber - FUTURISTIC & CLEAN DASHBOARD
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap");

:root {
	--sidebar-width: 260px;
	--sidebar-bg: #0b1120; /* Midnight Blue / Hampir Hitam */
	--sidebar-hover: rgba(255, 255, 255, 0.05);
	--sidebar-text: #94a3b8;
	--sidebar-active: #38bdf8;

	--bg-body: #f3f4f6;
	--card-bg: #ffffff;
	--text-main: #0f172a;
	--text-muted: #64748b;

	--primary-neon: #3b82f6;
	--danger-neon: #ef4444;
	--warning-neon: #f59e0b;
	--success-neon: #10b981;
}

body {
	font-family: "Plus Jakarta Sans", "Inter", sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
	overflow-x: hidden;
}

/* --- SIDEBAR FUTURISTIK --- */
.sidebar {
	width: var(--sidebar-width);
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	background: var(--sidebar-bg);
	padding: 20px;
	z-index: 1040;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.sidebar-brand {
	font-size: 1.25rem;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 30px;
	display: flex;
	align-items: center;
	text-decoration: none;
	letter-spacing: 0.5px;
}

.sidebar-brand i {
	color: var(--sidebar-active);
	text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
	margin-right: 10px;
}

.sidebar .nav-link {
	color: var(--sidebar-text);
	font-weight: 500;
	padding: 12px 15px;
	border-radius: 8px;
	margin-bottom: 8px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	position: relative;
}

.sidebar .nav-link:hover {
	background-color: var(--sidebar-hover);
	color: #ffffff;
}

.sidebar .nav-link.active {
	background-color: var(--sidebar-hover);
	color: #ffffff;
	font-weight: 600;
}

/* Efek garis neon di sebelah kiri menu aktif */
.sidebar .nav-link.active::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 4px;
	background: var(--sidebar-active);
	border-radius: 0 4px 4px 0;
	box-shadow: 0 0 10px var(--sidebar-active);
}

.sidebar .nav-link i {
	width: 30px;
	font-size: 1.1rem;
}

/* --- TOP NAVBAR (GLASSMORPHISM) --- */
.top-navbar {
	height: 70px;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	position: sticky;
	top: 0;
	z-index: 1020;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.toggle-btn {
	background: transparent;
	border: none;
	font-size: 1.2rem;
	color: var(--text-main);
	cursor: pointer;
	padding: 5px;
	transition: 0.2s;
}
.toggle-btn:hover {
	color: var(--primary-neon);
}

/* --- MAIN CONTENT & MOBILE RESPONSIVE --- */
.main-wrapper {
	margin-left: var(--sidebar-width);
	transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-content {
	padding: 30px;
	flex: 1;
}

/* Mobile Overlay (Gelap saat menu terbuka di HP) */
.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(3px);
	z-index: 1030;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s;
}

@media (max-width: 992px) {
	.sidebar {
		transform: translateX(-100%);
	} /* Sembunyikan sidebar di mobile */
	.sidebar.show {
		transform: translateX(0);
	} /* Tampilkan saat class 'show' aktif */
	.main-wrapper {
		margin-left: 0;
	}
	.sidebar-overlay.show {
		opacity: 1;
		visibility: visible;
	}
	.top-navbar {
		padding: 0 15px;
	}
	.main-content {
		padding: 15px;
	}
}

/* --- KARTU FUTURISTIK (INTERAKTIF) --- */
.stat-card-interactive {
	background: var(--card-bg);
	border: none;
	border-radius: 16px;
	padding: 24px;
	box-shadow:
		0 10px 25px -5px rgba(0, 0, 0, 0.02),
		0 8px 10px -6px rgba(0, 0, 0, 0.01);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	height: 100%;
}

.stat-card-interactive:hover {
	transform: translateY(-5px);
	box-shadow:
		0 20px 25px -5px rgba(0, 0, 0, 0.05),
		0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

.stat-card-interactive::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.stat-card-interactive:hover::before {
	opacity: 1;
}

.card-total:hover::before {
	background: var(--primary-neon);
	box-shadow: 0 4px 15px rgba(59, 130, 246, 0.5);
}
.card-judol:hover::before {
	background: var(--danger-neon);
	box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}
.card-ssl:hover::before {
	background: var(--warning-neon);
	box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}
.card-deface:hover::before {
	background: var(--text-main);
	box-shadow: 0 4px 15px rgba(15, 23, 42, 0.5);
}

.icon-box {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
}

/* --- TABEL & ELEMEN LAIN --- */
.card {
	border: none;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.02);
}
.card-header {
	background: transparent;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	padding: 20px;
}
.table-custom th {
	font-size: 0.75rem;
	text-transform: uppercase;
	color: var(--text-muted);
	background: #f8fafc;
	padding: 15px;
	letter-spacing: 0.5px;
	border-top: none;
}
.table-custom td {
	padding: 15px;
	vertical-align: middle;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.9rem;
}

/* Kustomisasi Scrollbar */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}
