/* ===========================================================
// Fonts
=========================================================== */
@font-face {
	font-display: swap;
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/instrument-sans-v4-latin-regular.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 500;
	src: url('../fonts/instrument-sans-v4-latin-500.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 600;
	src: url('../fonts/instrument-sans-v4-latin-600.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/instrument-sans-v4-latin-700.woff2') format('woff2');
}
/* ===========================================================
// CSS Variables
=========================================================== */
:root {
	--primary: #1268df;
	--primary-hover: #064295;
	--primary-light: rgba(18, 104, 223, 0.12);
	--bg: #f1f3f5;
	--bg-2: #E9ECEF;
	--bg-card: #FFFFFF;
	--bg-card-hover: #F8F9FA;
	--border: rgba(0, 0, 0, 0.08);
	--border-strong: rgba(0, 0, 0, 0.14);
	--text: #1A1A2E;
	--text-muted: #5A5F6B;
	--text-subtle: #8B919C;
	--radius: 10px;
	--radius-lg: 16px;
	--font: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
	--container: 1200px;
	--sidebar-w: 250px;
	--navbar-h: 60px;
	--shadow: 0 2px 8px rgba(0, 0, 0, .08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
}
/* ===========================================================
// Base Reset
=========================================================== */
*, *::before, *::after {
	box-sizing: border-box;
}
body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	letter-spacing: 0.25px;
}
a {
	color: var(--primary);
	text-decoration: none;
}
a:hover {
	color: var(--primary-hover);
}
/* ===========================================================
// Bootstrap Overrides
=========================================================== */
.btn-primary {
	background: var(--primary);
	border-color: var(--primary);
	font-weight: 500;
	border-radius: var(--radius);
}
.btn-primary:hover, .btn-primary:focus {
	background: var(--primary-hover);
	border-color: var(--primary-hover);
}
.btn-outline-primary {
	color: var(--primary);
	border-color: var(--primary);
	border-radius: var(--radius);
}
.btn-outline-primary:hover {
	background: var(--primary);
	border-color: var(--primary);
}
.btn {
	font-family: var(--font);
	font-weight: 500;
}
.btn-sm {
	border-radius: 6px;
}
.form-control, .form-select {
	border-radius: var(--radius);
	border-color: var(--border-strong);
	font-family: var(--font);
	color: var(--text);
	background: var(--bg-card);
	font-size: 14.5px;
}
.form-control:focus, .form-select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-light);
}
.form-label {
	font-weight: 500;
	color: var(--text);
	margin-bottom: 5px;
	font-size: 14px;
}
.input-group-text {
	background: var(--bg-2);
	border-color: var(--border-strong);
	color: var(--text-muted);
}
.card {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	background: var(--bg-card);
}
.card-header {
	background: var(--bg-card);
	border-bottom: 1px solid var(--border);
	font-weight: 600;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
	padding: 16px 20px;
}
.badge {
	font-family: var(--font);
	font-weight: 500;
	border-radius: 6px;
}
.table {
	--bs-table-bg: transparent;
}
.table th {
	font-weight: 600;
	color: var(--text-muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.table td {
	vertical-align: middle;
}
.table-hover tbody tr:hover {
	background: var(--bg-card-hover);
}
.sort-th {
	color: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}
.sort-th:hover {
	color: var(--primary);
}
.alert {
	border-radius: var(--radius);
	border: none;
}
.modal-content {
	border-radius: var(--radius-lg);
	border: none;
	box-shadow: var(--shadow-md);
}
.modal-header {
	border-bottom: 1px solid var(--border);
}
.modal-footer {
	border-top: 1px solid var(--border);
}
/* Pagination */
.pagination .page-link {
	border-radius: 8px !important;
	margin: 0 2px;
	color: var(--primary);
	border-color: var(--border-strong);
}
.pagination .page-item.active .page-link {
	background: var(--primary);
	border-color: var(--primary);
}
/* ===========================================================
// AUTH PAGES
=========================================================== */
.auth-body {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0e4fa8 0%, var(--primary) 60%, #3a8ef5 100%);
	padding: 20px;
}
.auth-wrapper {
	width: 100%;
	max-width: 420px;
}
.auth-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 40px 36px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
}
.auth-brand {
	text-align: center;
	margin-bottom: 28px;
}
.auth-logo {
	width: 56px;
	height: 56px;
	background: var(--primary);
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}
.auth-logo i {
	font-size: 26px;
	color: #fff;
}
.auth-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text);
	margin: 0;
	letter-spacing: -.3px;
}
.auth-subtitle {
	font-size: 13px;
	color: var(--text-subtle);
	margin: 4px 0 0;
}
.auth-link {
	font-size: 14px;
	color: var(--primary);
}
.auth-link:hover {
	color: var(--primary-hover);
	text-decoration: underline;
}
/* ===========================================================
// MAIN LAYOUT
=========================================================== */
.app-wrapper {
	display: flex;
	min-height: 100vh;
}
/* Sidebar */
.sidebar {
	width: var(--sidebar-w);
	background: var(--bg-card);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 1000;
	transition: transform .25s ease;
	overflow-y: auto;
}
.sidebar-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
	font-weight: 700;
	font-size: 16px;
	color: var(--text);
	text-decoration: none;
}
.sidebar-brand-icon {
	width: auto;
	height: 40px;
	/* background: var(--primary); */
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	flex-shrink: 0;
}
.sidebar-brand-icon img {
	height: 40px;
	width: auto;
}
.sidebar-nav {
	padding: 12px 10px;
	flex: 1;
}
.sidebar-section {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: var(--text-subtle);
	padding: 10px 10px 4px;
}
.sidebar-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 8px;
	color: var(--text-muted);
	font-size: 14.5px;
	font-weight: 500;
	transition: background .15s, color .15s;
	margin-bottom: 2px;
}
.sidebar-link i {
	font-size: 16px;
	flex-shrink: 0;
}
.sidebar-link:hover {
	background: var(--bg);
	color: var(--text);
}
.sidebar-link.active {
	background: var(--primary-light);
	color: var(--primary);
	font-weight: 600;
}
.sidebar-footer {
	padding: 14px 16px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-subtle);
}
/* Navbar */
.app-navbar {
	height: var(--navbar-h);
	background: var(--bg-card);
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	position: sticky;
	top: 0;
	z-index: 900;
	box-shadow: 0 1px 0 var(--border);
}
.navbar-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}
.navbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.btn-notif {
	position: relative;
	background: none;
	border: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	font-size: 18px;
	cursor: pointer;
	transition: background .15s;
}
.btn-notif:hover {
	background: var(--bg);
	color: var(--text);
}
.notif-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	background: #dc3545;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}
.user-avatar-sm {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	cursor: pointer;
}
/* Page content */
.app-content {
	margin-left: var(--sidebar-w);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.page-body {
	padding: 24px;
	flex: 1;
}
.page-header {
	margin-bottom: 20px;
}
.page-header h2 {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
}
/* ===========================================================
// KPI CARDS
=========================================================== */
.kpi-card {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
}
.kpi-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	flex-shrink: 0;
}
.kpi-icon.blue {
	background: rgba(18, 104, 223, .12);
	color: var(--primary);
}
.kpi-icon.green {
	background: rgba(25, 135, 84, .12);
	color: #198754;
}
.kpi-icon.orange {
	background: rgba(253, 126, 20, .12);
	color: #fd7e14;
}
.kpi-icon.red {
	background: rgba(220, 53, 69, .12);
	color: #dc3545;
}
.kpi-icon.teal {
	background: rgba(32, 201, 151, .12);
	color: #20c997;
}
.kpi-number {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--text);
}
.kpi-label {
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 2px;
}
/* ===========================================================
// PRIORITY BADGES
=========================================================== */
.badge-priority-low {
	background: rgba(32, 201, 151, .15);
	color: #0f7a5a;
}
.badge-priority-medium {
	background: rgba(255, 193, 7, .18);
	color: #7a5800;
}
.badge-priority-high {
	background: rgba(253, 126, 20, .15);
	color: #8b4500;
}
.badge-priority-urgent {
	background: rgba(220, 53, 69, .15);
	color: #9a0f1c;
}
/* ===========================================================
// STATUS BADGE
=========================================================== */
.status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 5px;
	flex-shrink: 0;
}
/* ===========================================================
// TIMELINE (task detail)
=========================================================== */
.timeline {
	position: relative;
	padding-left: 28px;
}
.timeline::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border);
}
.timeline-item {
	position: relative;
	padding-bottom: 20px;
}
.timeline-dot {
	position: absolute;
	left: -28px;
	top: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--bg-card);
	border: 2px solid var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	color: var(--primary);
}
.timeline-body {
	background: var(--bg);
	border-radius: var(--radius);
	padding: 12px 14px;
}
.timeline-meta {
	font-size: 12px;
	color: var(--text-subtle);
	margin-top: 4px;
}
/* ===========================================================
// EMPTY STATE
=========================================================== */
.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
}
.empty-state i {
	font-size: 48px;
	opacity: .3;
	margin-bottom: 12px;
	display: block;
}
.empty-state h5 {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}
.empty-state p {
	font-size: 14px;
}
/* ===========================================================
// RESPONSIVE
=========================================================== */
@media (max-width: 768px) {
	.sidebar {
		transform: translateX(-100%);
	}
	.sidebar.open {
		transform: translateX(0);
	}
	.sidebar-overlay {
		display: block !important;
	}
	.app-content {
		margin-left: 0;
	}
	.app-navbar {
		padding: 0 16px;
	}
	.page-body {
		padding: 16px;
	}
	.kpi-card {
		padding: 14px 16px;
	}
}
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	z-index: 999;
}