/* ==========================================================================
   ArisanCore - App stylesheet
   Selaras dengan referensi desain: hijau utama, kartu rounded, mobile-first
   ========================================================================== */

:root {
	--primary: #0E7B54;
	--primary-dark: #0A5C40;
	--primary-deep: #064732;
	--primary-soft: #E7F4EE;
	--accent: #F5B301;
	--success: #1F9D66;
	--danger: #DC4C4C;
	--warning: #F5B301;
	--info: #3B82C4;
	--bg: #F1F6F3;
	--card: #FFFFFF;
	--text: #17251F;
	--muted: #64748B;
	--border: #E2EAE5;
	--radius: 16px;
	--radius-sm: 12px;
	--shadow: 0 6px 24px rgba(14, 84, 60, .08);
	--shadow-sm: 0 2px 8px rgba(14, 84, 60, .06);
	--topbar-h: 60px;
	--bottomnav-h: 64px;
	--font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

[data-bs-theme="dark"] {
	--bg: #0E1613;
	--card: #16211C;
	--text: #E8F0EC;
	--muted: #93A69D;
	--border: #243329;
	--primary-soft: #1B3A2E;
	--shadow: 0 6px 24px rgba(0, 0, 0, .35);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
}

* { -webkit-tap-highlight-color: transparent; }

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	font-size: 15px;
	line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }

.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-primary {
	background-color: var(--primary);
	border-color: var(--primary);
	font-weight: 600;
	border-radius: 12px;
	padding: .6rem 1.25rem;
}
.btn-primary:hover, .btn-primary:focus {
	background-color: var(--primary-dark);
	border-color: var(--primary-dark);
}
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }
.btn-success { background-color: var(--success); border-color: var(--success); }
.btn-success:hover, .btn-success:focus { background-color: var(--primary-dark); border-color: var(--primary-dark); }

.badge { font-weight: 600; padding: .4em .7em; border-radius: 999px; }
.badge.bg-success { background-color: var(--success) !important; }
.badge.bg-danger { background-color: var(--danger) !important; }
.badge.bg-warning { background-color: var(--warning) !important; }

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}
.card-header {
	background: transparent;
	border-bottom: 1px solid var(--border);
	font-weight: 700;
	padding: 1rem 1.25rem;
}

.form-control, .form-select {
	border-radius: 12px;
	border: 1px solid var(--border);
	padding: .65rem .9rem;
	background-color: var(--card);
	color: var(--text);
}
.form-control:focus, .form-select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 .2rem rgba(14, 123, 84, .15);
}
.form-label { font-weight: 600; font-size: .9rem; }

/* Parsley validation — pesan error tampil di BAWAH input (bukan di samping) */
.parsley-errors-list { margin: .35rem 0 0; padding: 0; list-style: none; }
.parsley-errors-list li {
	color: var(--danger);
	font-size: .78rem;
	line-height: 1.35;
	display: flex;
	align-items: flex-start;
	gap: .35rem;
}
.parsley-errors-list li::before {
	content: "\f071";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: .68rem;
	margin-top: .12rem;
}
.parsley-error { border-color: var(--danger) !important; }
.input-group .parsley-error { border-color: var(--danger) !important; }
/* error tidak boleh merusak tampilan input-group */
.input-group .parsley-errors-list { display: block; width: 100%; }

/* Select2 dark-mode friendly */
.select2-container--default .select2-selection--single {
	border-radius: 12px !important;
	border: 1px solid var(--border) !important;
	height: calc(2.5rem + 2px) !important;
	background-color: var(--card) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: calc(2.5rem) !important;
	color: var(--text) !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: calc(2.5rem) !important; }
.select2-dropdown { border-color: var(--border) !important; border-radius: 12px !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: var(--primary) !important;
}

/* DataTables */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	border-radius: 10px;
	border: 1px solid var(--border);
	padding: .35rem .6rem;
	background-color: var(--card);
	color: var(--text);
}
table.dataTable { border-radius: var(--radius-sm); overflow: hidden; }
table.dataTable thead th {
	background: var(--primary-soft);
	color: var(--primary-dark);
	font-size: .8rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	border-bottom: 1px solid var(--border);
}
[data-bs-theme="dark"] table.dataTable thead th { color: #7FD1AE; color: color-mix(in srgb, var(--primary) 55%, white); }
table.dataTable tbody td { vertical-align: middle; }
.page-link { color: var(--primary); border-color: var(--border); }
.page-item.active .page-link { background-color: var(--primary); border-color: var(--primary); }

/* Flatpickr */
.flatpickr-calendar { border-radius: var(--radius) !important; box-shadow: var(--shadow) !important; border-color: var(--border) !important; }
.flatpickr-day.selected { background: var(--primary-soft) !important; border-color: var(--primary) !important; color: var(--text) !important; }
.flatpickr-day.today { border-color: var(--accent) !important; }

/* ==========================================================================
   App shell (sidebar + topbar + content + bottom nav)
   ========================================================================== */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
	width: 260px;
	background: linear-gradient(180deg, var(--primary-deep), var(--primary-dark));
	color: #fff;
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 1030;
}
.sidebar-brand {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: 1.1rem 1.25rem;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-brand .brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.sidebar-brand .brand-tag { color: rgba(255,255,255,.65); font-size: .72rem; }
.sidebar-nav { padding: .75rem .6rem; display: flex; flex-direction: column; gap: .2rem; }
.sidebar-link {
	display: flex;
	align-items: center;
	gap: .8rem;
	color: rgba(255,255,255,.8);
	text-decoration: none;
	padding: .65rem .9rem;
	border-radius: 12px;
	font-weight: 600;
	font-size: .93rem;
	transition: all .15s ease;
}
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-link.active { background: #fff; color: var(--primary-dark); }
.sidebar-user {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid rgba(255,255,255,.12);
}
.sidebar-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info .nama { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small { color: rgba(255,255,255,.6); font-size: .72rem; }

.app-main { flex: 1; min-width: 0; margin-left: 0; display: flex; flex-direction: column; min-height: 100vh; }
@media (min-width: 992px) { .app-main { margin-left: 260px; } }

.app-topbar {
	height: var(--topbar-h);
	background: var(--card);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1rem;
	position: sticky;
	top: 0;
	z-index: 1020;
}
.topbar-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--primary-dark); text-decoration: none; font-size: 1.05rem; }
[data-bs-theme="dark"] .topbar-brand { color: #7FD1AE; color: color-mix(in srgb, var(--primary) 55%, white); }
.topbar-title { font-size: 1.05rem; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: .4rem; }

.btn-icon {
	width: 40px; height: 40px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.btn-icon:hover { background: var(--primary-soft); color: var(--primary); }

.notif-badge {
	position: absolute;
	top: -4px; right: -4px;
	background: var(--danger);
	color: #fff;
	font-size: .62rem;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border: 2px solid var(--card);
}

.btn-user {
	display: flex;
	align-items: center;
	gap: .5rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: .25rem .8rem .25rem .3rem;
	color: var(--text);
	font-weight: 600;
	font-size: .88rem;
}
.btn-user img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.btn-user:hover { background: var(--primary-soft); }

.notif-dropdown { width: 340px; max-width: 92vw; padding: 0; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.notif-dropdown-header {
	display: flex; justify-content: space-between; align-items: center;
	padding: .8rem 1rem; font-weight: 700; border-bottom: 1px solid var(--border);
}
.notif-dropdown-body { max-height: 320px; overflow-y: auto; }
.notif-item {
	display: block; padding: .7rem 1rem; text-decoration: none; color: var(--text);
	border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--primary-soft); }
.notif-item.unread { background: rgba(14, 123, 84, .06); }
.notif-item .judul { font-weight: 700; font-size: .88rem; }
.notif-item .pesan { font-size: .8rem; color: var(--muted); }
.notif-item .waktu { font-size: .7rem; color: var(--muted); }
.notif-dropdown-footer {
	display: block; text-align: center; padding: .6rem; font-weight: 600;
	color: var(--primary); text-decoration: none; border-top: 1px solid var(--border);
}
.notif-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: .85rem; }

.app-content {
	flex: 1;
	padding: 1rem;
	padding-bottom: calc(var(--bottomnav-h) + 1.5rem);
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
}
@media (min-width: 992px) {
	.app-content { padding: 1.5rem 2rem; padding-bottom: 2rem; }
}

.app-bottomnav {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	height: var(--bottomnav-h);
	background: var(--card);
	border-top: 1px solid var(--border);
	display: flex;
	z-index: 1030;
	padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav-link {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .15rem;
	color: var(--muted);
	text-decoration: none;
	font-size: .68rem;
	font-weight: 600;
}
.bottomnav-link i { font-size: 1.15rem; }
.bottomnav-link.active { color: var(--primary); }

/* ==========================================================================
   Components
   ========================================================================== */
.page-head { margin-bottom: 1rem; }
.page-head h2 { font-size: 1.3rem; margin: 0; }
.page-head p { color: var(--muted); margin: .15rem 0 0; font-size: .88rem; }

.stat-card {
	background: linear-gradient(135deg, var(--primary), var(--primary-dark));
	color: #fff;
	border: 0;
	border-radius: var(--radius);
	padding: 1.1rem 1.25rem;
	box-shadow: var(--shadow);
}
.stat-card .label { font-size: .8rem; opacity: .85; font-weight: 600; }
.stat-card .value { font-size: 1.55rem; font-weight: 800; line-height: 1.2; margin-top: .15rem; }
.stat-card .sub { font-size: .75rem; opacity: .8; }

.mini-stat {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: .9rem 1rem;
	display: flex;
	align-items: center;
	gap: .8rem;
}
.mini-stat .ikon {
	width: 42px; height: 42px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.05rem;
}
.mini-stat .ikon.hijau { background: var(--primary-soft); color: var(--primary); }
.mini-stat .ikon.kuning { background: #FEF4D7; color: #B07E00; }
.mini-stat .ikon.biru { background: #E3EEF9; color: #2B6CB0; }
.mini-stat .ikon.merah { background: #FBE7E7; color: var(--danger); }
.mini-stat .label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.mini-stat .value { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }

.grup-card {
	display: block;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	text-decoration: none;
	color: var(--text);
	box-shadow: var(--shadow-sm);
	transition: transform .15s ease, box-shadow .15s ease;
	height: 100%;
}
.grup-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.grup-card .grup-avatar {
	width: 46px; height: 46px; border-radius: 14px;
	background: var(--primary-soft); color: var(--primary);
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 1.1rem;
}
.grup-card .grup-nama { font-weight: 700; }
.grup-card .grup-meta { font-size: .78rem; color: var(--muted); }
.grup-card .grup-total { font-weight: 800; color: var(--primary); font-size: 1.02rem; }

.quick-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .6rem;
}
.quick-action {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: .7rem .4rem;
	text-align: center;
	text-decoration: none;
	color: var(--text);
	font-size: .74rem;
	font-weight: 600;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .35rem;
}
.quick-action .ikon {
	width: 42px; height: 42px; border-radius: 50%;
	background: var(--primary-soft); color: var(--primary);
	display: flex; align-items: center; justify-content: center;
	font-size: 1rem;
}
.quick-action:hover { background: var(--primary-soft); }

.progress-soft {
	background: var(--primary-soft);
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}
.progress-soft .progress-bar { background: var(--primary); border-radius: 999px; }

.list-ikon {
	display: flex; align-items: center; gap: .8rem;
	padding: .8rem 0;
	border-bottom: 1px solid var(--border);
}
.list-ikon:last-child { border-bottom: 0; }
.list-ikon .ikon {
	width: 42px; height: 42px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1rem; flex-shrink: 0;
}
.list-ikon .ikon.hijau { background: var(--primary-soft); color: var(--primary); }
.list-ikon .ikon.kuning { background: #FEF4D7; color: #B07E00; }
.list-ikon .ikon.merah { background: #FBE7E7; color: var(--danger); }
.list-ikon .ikon.biru { background: #E3EEF9; color: #2B6CB0; }
.list-ikon .ikon.abu { background: #EEF1F0; color: var(--muted); }

.menu-list .list-group-item {
	background: var(--card);
	border: 1px solid var(--border);
	border-bottom: 0;
	padding: .85rem 1rem;
	display: flex;
	align-items: center;
	gap: .8rem;
	color: var(--text);
	text-decoration: none;
	font-weight: 600;
	font-size: .92rem;
}
.menu-list .list-group-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.menu-list .list-group-item:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 1px solid var(--border); }
.menu-list .list-group-item:only-child { border-radius: var(--radius); border-bottom: 1px solid var(--border); }
.menu-list .list-group-item i:first-child { color: var(--primary); width: 20px; text-align: center; }
.menu-list .list-group-item .chevron { margin-left: auto; color: var(--muted); }
.menu-list .list-group-item.danger, .menu-list .list-group-item.danger i:first-child { color: var(--danger); }
.menu-list .list-group-item:active { background: var(--primary-soft); }

/* Setoran method picker (kartu radio seperti referensi) */
.metode-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .6rem;
}
.metode-item {
	position: relative;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	padding: .8rem;
	text-align: center;
	cursor: pointer;
	transition: all .15s ease;
	background: var(--card);
}
.metode-item input { position: absolute; opacity: 0; pointer-events: none; }
.metode-item .ikon { font-size: 1.4rem; color: var(--primary); margin-bottom: .3rem; }
.metode-item .nama { font-weight: 700; font-size: .85rem; }
.metode-item .ket { font-size: .7rem; color: var(--muted); }
.metode-item:has(input:checked) {
	border-color: var(--primary);
	background: var(--primary-soft);
	box-shadow: 0 0 0 3px rgba(14, 123, 84, .15);
}
.metode-item:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }

.upload-bukti {
	border: 2px dashed var(--border);
	border-radius: var(--radius-sm);
	padding: 1.4rem;
	text-align: center;
	cursor: pointer;
	color: var(--muted);
	background: var(--card);
	transition: all .15s ease;
}
.upload-bukti:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.upload-bukti.has-file { border-style: solid; border-color: var(--success); color: var(--success); }
.upload-bukti img { max-width: 100%; max-height: 180px; border-radius: 10px; margin-top: .5rem; }

/* Undian */
.trophy-wrap {
	width: 130px; height: 130px;
	margin: 0 auto;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, #FFE9A8, var(--accent));
	display: flex; align-items: center; justify-content: center;
	font-size: 3.4rem;
	color: #8A6100;
	box-shadow: 0 10px 30px rgba(245, 179, 1, .35);
}
.confetti {
	position: absolute;
	width: 8px; height: 8px;
	border-radius: 2px;
	animation: confetti-fall 2.4s ease-in infinite;
}
@keyframes confetti-fall {
	0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
	100% { transform: translateY(160px) rotate(360deg); opacity: 0; }
}

/* Jadwal / kalender */
.cal-legend-dot {
	width: 10px; height: 10px; border-radius: 50%;
	display: inline-block; margin-right: .35rem;
}
#jadwal-calendar .flatpickr-calendar { box-shadow: none !important; border: 1px solid var(--border) !important; width: 100% !important; }
#jadwal-calendar .flatpickr-months { margin-bottom: .4rem; }
#jadwal-calendar .flatpickr-day { position: relative; }
/* Hari yang diklik: highlight halus (bukan dot hijau pekat) */
#jadwal-calendar .flatpickr-day.selected,
#jadwal-calendar .flatpickr-day.selected:hover,
#jadwal-calendar .flatpickr-day.selected:focus {
	background: var(--primary-soft);
	border-color: var(--primary);
	color: var(--text);
}
#jadwal-calendar .flatpickr-day.today { border-color: var(--primary); }
#jadwal-calendar .flatpickr-day:hover { background: var(--primary-soft); }
.cal-dots {
	position: absolute;
	bottom: 2px; left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 2px;
	pointer-events: none;
}
.cal-dot {
	width: 5px; height: 5px;
	border-radius: 50%;
	flex: 0 0 auto;
}
.cal-dot.setor { background: var(--warning); }
.cal-dot.undian { background: var(--primary); }
.cal-dot.sudah { background: var(--success); }
.cal-dot.belum { background: var(--danger); }

/* Landing */
.landing-hero {
	background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 55%, #12996B 100%);
	background: linear-gradient(160deg, var(--primary-deep) 0%, var(--primary) 55%, color-mix(in srgb, var(--primary) 72%, white) 100%);
	color: #fff;
	border-radius: 0 0 32px 32px;
	padding: 2rem 1.25rem 2.5rem;
	position: relative;
	overflow: hidden;
}
.landing-hero::after {
	content: "";
	position: absolute;
	width: 260px; height: 260px;
	border-radius: 50%;
	background: rgba(255,255,255,.07);
	top: -80px; right: -80px;
	pointer-events: none;
}
.landing-hero::before {
	content: "";
	position: absolute;
	width: 180px; height: 180px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
	bottom: -60px; left: -60px;
	pointer-events: none;
}
.landing-hero .brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; }
.landing-hero h1 { font-size: 1.7rem; font-weight: 800; margin: 1.2rem 0 .5rem; line-height: 1.25; }
.landing-hero p { opacity: .9; font-size: .95rem; }
.landing-illust {
	display: flex; justify-content: center; gap: -10px;
	margin: 1.4rem 0 .4rem;
}
.landing-illust .orang {
	width: 54px; height: 54px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; color: #fff; font-size: 1.1rem;
	border: 3px solid rgba(255,255,255,.5);
	margin-left: -10px;
}
.landing-illust .orang:first-child { margin-left: 0; }
.landing-illust .o1 { background: var(--primary-dark); }
.landing-illust .o2 { background: var(--accent); color: #5C4300; }
.landing-illust .o3 { background: #E8734A; }
.landing-illust .o4 { background: #3B82C4; }

.auth-card {
	max-width: 420px;
	margin: -1.6rem auto 0;
	position: relative;
	z-index: 2;
}
.auth-card .card-body { padding: 1.5rem; }

/* Toast */
.toast {
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	box-shadow: var(--shadow);
	background: var(--card);
	color: var(--text);
}
.toast .toast-body { font-weight: 600; font-size: .88rem; }

/* Loading overlay */
.app-loading {
	position: fixed; inset: 0;
	background: rgba(10, 30, 22, .35);
	z-index: 3000;
	display: flex; align-items: center; justify-content: center;
	backdrop-filter: blur(2px);
}
.app-loading-box {
	background: var(--card);
	border-radius: var(--radius);
	padding: 1.4rem 1.8rem;
	display: flex; flex-direction: column; align-items: center; gap: .6rem;
	box-shadow: var(--shadow);
}
.app-loading-text { font-size: .85rem; font-weight: 600; color: var(--muted); }

/* PWA install banner */
.pwa-install-banner {
	position: fixed;
	left: .8rem; right: .8rem; bottom: calc(var(--bottomnav-h) + .8rem);
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: .7rem .9rem;
	display: flex;
	align-items: center;
	gap: .7rem;
	z-index: 1040;
}
.pwa-install-banner img { border-radius: 10px; }

/* Util */
.rounded-16 { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800; }
.fs-7 { font-size: .8rem; }
.fs-8 { font-size: .72rem; }
.text-muted { color: var(--muted) !important; }
.bg-soft { background: var(--primary-soft) !important; }
.hover-lift { transition: transform .15s ease, box-shadow .15s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state i { font-size: 2.6rem; color: var(--border); margin-bottom: .8rem; display: block; }
.avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.avatar-img.lg { width: 84px; height: 84px; }
.section-title {
	font-size: .95rem;
	font-weight: 800;
	margin: 1.4rem 0 .7rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.section-title a { font-size: .8rem; font-weight: 600; color: var(--primary); text-decoration: none; }

/* SweetAlert2 theme tweaks */
.swal2-popup { border-radius: var(--radius) !important; font-family: var(--font) !important; }
.swal2-confirm { background-color: var(--primary) !important; border-radius: 12px !important; }
.swal2-cancel { border-radius: 12px !important; }

/* Scrollbar tipis */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* Hero illustration on landing (gambar referensi) */
.landing-hero-img {
	max-width: 340px;
	width: 100%;
	margin: 0 auto;
	display: block;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
