:root {
	--bg-0: #f5f8ff;
	--bg-1: #eaf0ff;
	--text-main: #15233f;
	--text-muted: #607093;
	--brand: #0d6efd;
	--brand-2: #0b4db2;
	--success: #1ea97c;
	--warn: #f6a300;
	--danger: #d9485f;
	--glass: rgba(255, 255, 255, 0.7);
	--glass-border: rgba(255, 255, 255, 0.85);
	--shadow-soft: 0 14px 40px rgba(24, 42, 89, 0.12);
	--radius-lg: 1rem;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: 'Inter', sans-serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at 0% 0%, #cbdcff 0, transparent 30%),
		radial-gradient(circle at 100% 10%, #ffe7d0 0, transparent 26%),
		linear-gradient(150deg, var(--bg-0) 0%, var(--bg-1) 100%);
}

.wrapper {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 285px;
	padding: 1rem;
	background: linear-gradient(200deg, #111d37 0%, #0b1325 100%);
	color: #d9e5ff;
	box-shadow: 12px 0 35px rgba(9, 14, 28, 0.22);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
}

.sidebar-header {
	margin-bottom: 1rem;
}

.sidebar-header h5 {
	margin: 0;
	color: #fff;
	font-weight: 700;
}

.sidebar-header .badge {
	margin-top: 0.55rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12) !important;
}

.sidebar .nav {
	gap: 0.45rem;
}

.sidebar .nav-link {
	color: #d0dcfa;
	border-radius: 0.75rem;
	padding: 0.68rem 0.78rem;
	font-weight: 500;
	transition: 0.2s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.11);
	transform: translateX(4px);
}

.sidebar .nav-link i {
	width: 18px;
	margin-right: 0.45rem;
}

.sidebar-footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.user-info {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.8rem;
}

.user-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #1b66ff 0%, #0d3da4 100%);
	color: #fff;
	font-weight: 700;
}

.main-content {
	flex: 1;
	min-width: 0;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	padding: 1rem 1.3rem;
	background: rgba(245, 248, 255, 0.8);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(21, 35, 63, 0.08);
}

.topbar h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
}

.container-fluid {
	padding: 1.1rem !important;
}

.glass-card {
	background: var(--glass);
	border: 1px solid var(--glass-border);
	box-shadow: var(--shadow-soft);
	border-radius: var(--radius-lg);
	backdrop-filter: blur(12px);
	padding: 1rem;
	height: 100%;
}

.glass-card h6 {
	margin: 0.3rem 0;
	color: var(--text-muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.glass-card h3,
.glass-card h5 {
	margin: 0;
	font-weight: 700;
	color: var(--text-main);
}

.card-icon {
	width: 40px;
	height: 40px;
	border-radius: 0.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-bottom: 0.5rem;
}

.table {
	--bs-table-bg: transparent;
}

.table thead th {
	border: 0;
	background: #eef3ff;
	color: #425171;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.table tbody td {
	border-color: rgba(68, 89, 135, 0.1);
	vertical-align: middle;
}

.btn {
	border-radius: 0.7rem;
	font-weight: 600;
}

.btn-primary {
	background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
	border: 0;
}

.modal-content {
	border: 0;
	border-radius: 1rem;
	box-shadow: 0 26px 55px rgba(25, 41, 76, 0.28);
}

.modal-header,
.modal-footer {
	border-color: rgba(21, 35, 63, 0.08);
}

.form-control,
.form-select {
	border-radius: 0.7rem;
	border-color: rgba(52, 74, 120, 0.2);
}

.mobile-bottom-nav {
	display: none;
}

@media (max-width: 991.98px) {
	.wrapper {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		height: auto;
		position: relative;
		box-shadow: 0 8px 24px rgba(9, 14, 28, 0.15);
		border-radius: 0 0 1rem 1rem;
	}

	.sidebar .nav {
		flex-direction: row !important;
		overflow-x: auto;
		gap: 0.5rem;
		padding-bottom: 0.2rem;
	}

	.sidebar .nav-link {
		white-space: nowrap;
		transform: none !important;
	}

	.sidebar-footer {
		display: none;
	}

	.topbar {
		padding: 0.75rem 0.9rem;
	}

	.topbar h2 {
		font-size: 1.05rem;
	}

	.container-fluid {
		padding: 0.85rem 0.85rem 5rem !important;
	}

	.table-responsive {
		font-size: 0.86rem;
	}

	.mobile-bottom-nav {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1050;
		background: rgba(11, 19, 37, 0.96);
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		backdrop-filter: blur(8px);
		padding: 0.45rem 0.6rem;
	}

	.mobile-bottom-nav .nav-wrap {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 0.4rem;
	}

	.mobile-bottom-nav a,
	.mobile-bottom-nav button {
		color: #e7efff;
		border: 0;
		text-decoration: none;
		border-radius: 0.65rem;
		background: rgba(255, 255, 255, 0.1);
		min-height: 42px;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.3rem;
		font-size: 0.76rem;
		font-weight: 600;
	}

	.mobile-bottom-nav .add {
		background: linear-gradient(150deg, var(--brand) 0%, var(--brand-2) 100%);
	}
}
