.metismenu li.active > a {
	background: rgba(13,110,253,.12);
	color: #0d6efd;
	font-weight: 600;
	border-radius: 10px;
}

.metismenu li.active > a i {
	color: #0d6efd;
}


/* === STAT CARD === */
.stat-card {
    border-radius: 20px;
	padding-bottom: -10px;
    padding: 17px;
    height: 100%;
    border: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
    transition: all .3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

/* ICON */
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

/* TEXT */
.stat-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

/* WARNA */
.stat-blue { background: #eef2ff; }
.stat-blue .stat-icon { background: #6366f1; color: #fff; }

.stat-yellow { background: #fef3c7; }
.stat-yellow .stat-icon { background: #f59e0b; color: #fff; }

.stat-green { background: #dcfce7; }
.stat-green .stat-icon { background: #22c55e; color: #fff; }

.stat-purple { background: #f3e8ff; }
.stat-purple .stat-icon { background: #a855f7; color: #fff; }

/* ================= PROGRESS CARD (HIJAU) ================= */
.stah-card {
	position: relative;
	background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,.04);
	transition: all .3s ease;
	overflow: hidden;
}

/* AKSEN HIJAU KIRI */
.stah-card-success::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 100%;
	/* background: linear-gradient(180deg, #22c55e, #86efac); */
	border-radius: 12px 0 0 12px;
}

/* BACKGROUND HIJAU SOFT */
.stah-card-success {
	background: linear-gradient(
		135deg,
		rgba(34,197,94,.08),
		#ffffff 45%
	);
}

/* HEADER */
.stah-card-success .card-header {
	background: linear-gradient(
		135deg,
		rgba(21, 167, 75, 0.12),
		#ffffff
	);
}

/* HOVER CARD */
.stah-card-success:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 30px rgba(0, 255, 30, 0.323);
}

/* ROW */
.indikator-row-h {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0,0,0,.04);
	transition: all .25s ease;
}

.indikator-row-h:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(13, 253, 153, 0.12);
}

/* CELL */
.indikator-row-h td {
	padding: 14px 16px;
	vertical-align: middle;
	border: none;
}

/* HOVER CARD */
.stai-card-:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px 	rgba(34,197,94,.12),;
}


/* ================= CARD UTAMA ================= */
.stai-card {
	margin-bottom: 5px;
	position: relative;
	background: #ffffff;
	transition: all .3s ease;
	overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,.04);
}

/* AKSEN BIRU KIRI */
.stai-card-primary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 6px;
	height: 100%;
	/* background: linear-gradient(280deg, #0d6efd, #5aa7ff); */
	border-radius: 12px 0 0 12px;
}

/* BACKGROUND SOFT */
.stai-card-primary {
	background: linear-gradient(
		135deg,
		rgba(13,110,253,.06),
		#ffffff 45%
	);
}

/* HEADER */
.stai-card-primary .card-header {
	background: linear-gradient(
		135deg,
		rgba(13,110,253,.08),
		#ffffff
	);
}

/* HOVER CARD */
.stai-card-primary:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 45px rgba(13,110,253,.18);
}

/* ================= TAB ================= */
.nav-tabs-custom {
	border-bottom: none;
}

.nav-tabs-custom .nav-link {
	border: none;
	/* color: #6b7280; */
	font-weight: 500;
	padding: 6px 12px;
}

.nav-tabs-custom .nav-link.active {
	color: #0d6efd;
	background: rgba(13,110,253,.12);
	border-radius: 8px;
}

/* ================= INDIKATOR ================= */
.indikator-scroll {
	max-height: 510px;
}

/* TABLE CARD STYLE */
.indikator-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 10px;
}

/* ROW */
.indikator-row-b {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(0,0,0,.04);
	transition: all .25s ease;
}

.indikator-row-b:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 30px rgba(13,110,253,.12);
}

/* CELL */
.indikator-row-b td {
	padding: 14px 16px;
	vertical-align: middle;
	border: none;
}

/* ICON */
.icon-wrap {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.icon-wrap.success {
	background: #dcfce7;
	color: #22c55e;
}

.icon-wrap.warning {
	background: #fef3c7;
	color: #f59e0b;
}

.icon-wrap.danger {
	background: #fee2e2;
	color: #ef4444;
}

/* TEXT */
.indikator-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 2px;
}

.indikator-sub {
	font-size: 12px;
	color: #6b7280;
}

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

.meta-unit {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
}

.meta-time {
	font-size: 11px;
	color: #9ca3af;
}

/* ===============================
   STARCARD BASE
================================ */
.star-card {
	position: relative;
	border-radius: 24px;
	padding: 26px;
	height: 100%;
	color: #fff;
	cursor: pointer;

	display: flex;
	align-items: center;
	gap: 20px;

	overflow: visible;
	z-index: 1;

	transition:
		transform .35s ease,
		box-shadow .35s ease;
}

/* ===============================
   ICON
================================ */
.star-icon {
	width: 68px;
	height: 68px;
	border-radius: 20px;

	display: flex;
	align-items: center;
	justify-content: center;

	font-size: 36px;
	color: #fff;
	background: rgba(255, 255, 255, 0.18);

	box-shadow: 0 10px 25px rgba(0,0,0,.12);
	flex-shrink: 0;
}

/* ===============================
   TEXT
================================ */
.star-text {
	display: flex;
	flex-direction: column;
}

.star-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .3px;
	color: rgba(255,255,255,.9);
	margin-bottom: 6px;
}

.star-card h3 {
	font-size: 34px;
	font-weight: 800;
	margin: 0;
	line-height: 1.1;
	color: #fff;
	text-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* ===============================
   HOVER EFFECT
================================ */
/* ===== HOVER EFFECT ===== */
.star-card:hover {
	transform: translateY(-6px);
	animation: waveGlow 1.5s ease-in-out infinite;
}

/* ===== WAVE GLOW ANIMATION ===== */
@keyframes waveGlow {
	0% {
		box-shadow:
			0 0 0 rgba(var(--glow), 0),
			0 0 0 rgba(var(--glow), 0);
	}
	50% {
		box-shadow:
			0 0 22px rgba(var(--glow), .45),
			0 0 46px rgba(var(--glow), .25);
	}
	100% {
		box-shadow:
			0 0 0 rgba(var(--glow), 0),
			0 0 0 rgba(var(--glow), 0);
	}
}

/* ===============================
   ACTIVE STATE
================================ */
.star-card.active {
	transform: translateY(-8px);
	animation: waveGlow 1.5s ease-in-out infinite;
	box-shadow: 0 0 0 3px rgba(255,255,255,.45);
}

/* ===============================
   GLOW OVERLAY
================================ */
.star-card::after {
	content: "";
	position: absolute;
	inset: -18px;
	border-radius: inherit;

	background: radial-gradient(
		circle at center,
		rgba(var(--glow), .9) 0%,
		rgba(var(--glow), .6) 30%,
		rgba(var(--glow), .25) 55%,
		transparent 70%
	);

	filter: blur(16px);
	opacity: 0;
	z-index: -1;
	transition: opacity .35s ease;
}

/* ===============================
   COLOR VARIANTS
================================ */
.star-primary {
	background: linear-gradient(135deg, #a5b4fc, #818cf8);
	--glow: 99, 102, 241;
}

.star-info {
	background: linear-gradient(135deg, #7dd3fc, #60a5fa);
	--glow: 59, 130, 246;
}

.star-success {
	background: linear-gradient(135deg, #86efac, #4ade80);
	--glow: 34, 197, 94;
}

.star-warning {
	background: linear-gradient(135deg, #fde68a, #facc15);
	--glow: 234, 179, 8;
}

.star-danger {
	background: linear-gradient(135deg, #f8718c, #ec4c6a);
	--glow: 225, 29, 72;
}

/* FLOATING CS */
/* ================= FLOATING AI ================= */
.cs-floating {
	--cs-size: 110px;

	position: fixed;
	right: 20px;
	bottom: 90px;
	width: var(--cs-size);
	height: var(--cs-size);

	display: flex;
	align-items: center;
	justify-content: center;

	border-radius: 50%;
	cursor: pointer;
	user-select: none;

	background: linear-gradient(90deg, #1b7bce, #1fa7b9);

	box-shadow:
		0 12px 34px rgba(67, 147, 251, 0.35),
		inset 0 0 0 2px rgba(159, 186, 255, 0.15);

	box-sizing: border-box;
	z-index: 1080;

	/* animation: csFloat 4s ease-in-out infinite;
	transition: transform .25s ease, box-shadow .25s ease; */
}

.cs-floating:hover {
	transform: translateY(-8px) scale(1.05);
	box-shadow:
		0 20px 40px rgba(79, 142, 224, 0.45),
		inset 0 0 0 2px rgba(255,255,255,.2);
}

.cs-floating:active {
	transform: scale(.96);
	cursor: grabbing;
}

.cs-floating img {
	width: calc(100% - 18px);
	height: calc(100% - 18px);
	border-radius: 50%;
	object-fit: cover;

	background: linear-gradient(90deg, #1E88E5, #26C6DA);
	/* border: 2px solid #fff; */
	padding: 4px;
	box-sizing: border-box;

	pointer-events: none;
}

.cs-floating::before {
	content: "";
	position: absolute;
	inset: -14px;
	border-radius: 50%;

	background: radial-gradient(circle,
		rgba(79,195,247,.28),
		rgba(30,136,229,.18),
		rgba(38,198,218,0)
	);

	filter: blur(10px);
	animation: csPulse 2.8s ease-out infinite;
	z-index: -1;
	pointer-events: none;
}

.cs-floating::after {
	content: "SAMBANG AI";
	position: absolute;
	bottom: calc(var(--cs-size) * -0.38);
	left: 50%;
	transform: translateX(-50%);

	font-size: 13px;
	font-weight: 600;
	letter-spacing: .3px;

	color: #fff;
	background: linear-gradient(90deg, #1E88E5, #26C6DA);
	padding: 6px 10px;
	border-radius: 999px;

	box-shadow: 0 6px 16px rgba(11,116,255,.18);
	white-space: nowrap;
	pointer-events: none;
	z-index: 1081;
}

.sparkle-container {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1082;
}

.sparkle-container span {
	position: absolute;
	width: 6px;
	height: 6px;
	background: #FFD700;
	border-radius: 50%;
	opacity: 0;
	filter: blur(.5px);
	animation: sparklingMix 3s infinite ease-in-out;
}

/* LUAR */
.sparkle-container span:nth-child(1) { top:-22px; left:40%; animation-delay:0s; }
.sparkle-container span:nth-child(2) { top:12%; right:-26px; animation-delay:.5s; }
.sparkle-container span:nth-child(3) { bottom:-18px; left:20%; animation-delay:1.2s; }
.sparkle-container span:nth-child(4) { bottom:40%; left:-22px; animation-delay:1.8s; }

/* DALAM */
.sparkle-container span:nth-child(5) { top:26%; left:26%; width:4px; height:4px; animation-delay:.3s; }
.sparkle-container span:nth-child(6) { top:22%; right:30%; animation-delay:.9s; }
.sparkle-container span:nth-child(7) { bottom:30%; right:25%; animation-delay:1.5s; }
.sparkle-container span:nth-child(8) { bottom:22%; left:35%; width:5px; height:5px; animation-delay:2.1s; }

@keyframes csFloat {
	0%   { transform: translateY(0); }
	50%  { transform: translateY(-8px); }
	100% { transform: translateY(0); }
}

@keyframes csPulse {
	0%   { opacity:.85; transform: scale(.9); }
	70%  { opacity:.2; transform: scale(1.25); }
	100% { opacity:0; transform: scale(1.45); }
}

@keyframes sparklingMix {
	0%   { transform: scale(0) rotate(0); opacity:0; }
	50%  { transform: scale(1.3) rotate(180deg); opacity:1; box-shadow:0 0 10px #FFD700; }
	100% { transform: scale(0) rotate(360deg); opacity:0; }
}

@media (max-width: 480px) {
	.cs-floating {
		--cs-size: 72px;
		right: 12px;
		bottom: 12px;
	}

	.cs-floating::after {
		font-size: 11px;
		padding: 4px 8px;
		bottom: calc(var(--cs-size) * -0.25);
	}

	.cs-floating::before {
		inset: -10px;
	}
}

/* CHAT BOX */
.chat-box {
	position: fixed;
	right: 20px;
	bottom: calc(20px + 56px + 12px);
	width: 340px;
	max-width: 92vw;
	height: 480px;
	display: none;
	flex-direction: column;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(30, 136, 229, 0.25);
	overflow: hidden;
	z-index: 1090;
}

.chat-box.open { display: flex; }

/* Header */
.chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	background: linear-gradient(90deg, #1E88E5, #26C6DA);
	color: #ffffff;
	font-weight: 600;
}

.chat-header button {
	background: rgba(255,255,255,0.2);
	border: none;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	border-radius: 8px;
	padding: 4px 8px;
}

/* Body */
.chat-body {
	flex: 1;
	padding: 12px;
	overflow-y: auto;
	background: #f8fafc;
}

/* Footer */
.chat-footer {
	display: flex;
	padding: 10px;
	gap: 8px;
	border-top: 1px solid #e5e7eb;
	background: #ffffff;
}

.chat-footer input[type="text"] {
	flex: 1;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	outline: none;
	background: #f9fafb;
	transition: border-color .2s, box-shadow .2s;
}

.chat-footer input[type="text"]:focus {
	border-color: #1E88E5;
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

.chat-footer button {
	background: linear-gradient(90deg, #1E88E5, #26C6DA);
	border: none;
	color: #fff;
	padding: 0 16px;
	border-radius: 999px;
	cursor: pointer;
	height: 40px;
	min-width: 40px;
	transition: transform .15s ease, box-shadow .15s ease;
}

.chat-footer button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(30, 136, 229, 0.45);
}

/* Messages */
.chat-message {
	margin-bottom: 10px;
	display: flex;
}

.chat-message.ai { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.bubble {
	max-width: 78%;
	padding: 10px 14px;
	border-radius: 16px;
	background: #e5e7eb;
	color: #0f172a;
	line-height: 1.4;
}

/* User bubble */
.chat-message.user .bubble {
	background: linear-gradient(90deg, #1E88E5, #26C6DA);
	color: #ffffff;
}

/* Mobile */
@media (max-width: 480px) {
	.chat-box {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: calc(12px + 56px + 12px);
		height: 60vh;
	}
	.cs-floating {
		right: 12px;
		bottom: 12px;
	}
}

/* ================================
   FILTER CARD (BLUE GRADIENT)
================================ */
.filter-card {
    width: 100%;
    border-radius: 20px;
    padding: clamp(14px, 1.8vw, 20px);
    background: linear-gradient(
        135deg,
        #eff6ff 0%,
        #dbeafe 45%,
        #bfdbfe 100%
    );
    box-shadow:
        /* 0 14px 32px rgba(37, 99, 235, 0.22), */
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

/* Light glow */
.filter-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,.45),
        rgba(255,255,255,0)
    );
    opacity: .6;
    pointer-events: none;
}

/* Hover */
.filter-card:hover {
    transform: translateY(-2px);
    box-shadow:
        /* 0 22px 48px rgba(37, 99, 235, 0.32), */
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* ================================
   LABEL
================================ */
.filter-label {
    display: block;
    font-size: clamp(12px, 1vw, 14px);
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

/* ================================
   SELECT2 BASE
================================ */
.select2-container {
    width: 100% !important;
}

/* Select box */
.select2-container .select2-selection--single {
    min-height: 46px;
    height: auto !important;
    padding: 6px 16px;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    transition: all .25s ease;
}

/* Text */
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    white-space: normal;
}

/* Arrow */
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
}

/* Focus */
.select2-container--default.select2-container--focus
.select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
    background: #ffffff;
}

/* ================================
   DROPDOWN
================================ */
.select2-dropdown {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

/* Option */
.select2-results__option {
    font-size: clamp(13px, 1vw, 14px);
    padding: 12px 16px;
}

/* Hover option */
.select2-results__option--highlighted {
    background: #eff6ff !important;
    color: #1e3a8a !important;
}

/* Selected option */
.select2-results__option[aria-selected="true"] {
    background: #dbeafe !important;
    font-weight: 600;
}

/* ================================
   PROGRESS MODERN CARD
================================ */
.progress-modern-card {
    width: 100%;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        #eff6ff 0%,
        #dbeafe 40%,
        #bfdbfe 100%
    );
    box-shadow:
        /* 0 18px 44px rgba(37, 99, 235, 0.22), */
        inset 0 1px 0 rgba(255,255,255,.7);
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
}

/* Glow */
.progress-modern-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,.45),
        rgba(255,255,255,0)
    );
    opacity: .55;
    pointer-events: none;
}

/* Hover */
.progress-modern-card:hover {
    transform: translateY(-3px);
    box-shadow:
        /* 0 28px 64px rgba(37, 99, 235, 0.35), */
        inset 0 1px 0 rgba(255,255,255,.8);
}

/* ================================
   CARD BODY
================================ */
.progress-modern-body {
    padding: clamp(18px, 2vw, 26px);
    position: relative;
    z-index: 1;
}

/* ================================
   TITLE
================================ */
.progress-modern-title {
    font-size: clamp(16px, 1.4vw, 20px);
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 20px;
}

/* ================================
   PROGRESS BAR
================================ */
.progress-modern-track {
    height: 12px;
    border-radius: 500px;
    background: rgba(255,255,255,.55);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
    overflow: hidden;
}

.progress-modern-bar {
    height: 100%;
    border-radius: 500px;
    background: linear-gradient(
        90deg,
        #3b82f6,
        #2563eb,
        #1d4ed8
    );
    box-shadow: 0 4px 10px rgba(37,99,235,.45);
    transition: width .6s ease-in-out;
}

/* ================================
   BUTTON
================================ */
.progress-modern-btn {
    padding: 10px 22px;
    border-radius: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );
    border: none;
    /* box-shadow: 0 10px 28px rgba(37, 100, 235, 0.193); */
    transition: all .25s ease;
}

.progress-modern-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 100, 235, 0.405);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .progress-modern-title {
        text-align: center;
    }

    .progress-modern-track {
        height: 12px;
    }
}
