* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Poppins", sans-serif;
}

:root {
	/* ===== Colors ===== */
	--body-color: #fafafa;
	--sidebar-color: #fff;
	--primary-color: #034e94;
	--primary-color-light: #f5f5f5;
	--toggle-color: #ffffff;
	--text-color: #2e2e2e;

	/* ====== Transition ====== */
	--tran-03: all 0.2s ease;
	--tran-03: all 0.3s ease;
	--tran-04: all 0.3s ease;
	--tran-05: all 0.3s ease;
}

body {
	min-height: 100dvh;
	background-color: var(--body-color);
	transition: var(--tran-05);
	overflow-x: hidden !important;
}

::selection {
	background-color: var(--primary-color);
	color: #fff;
}

body.dark {
	--body-color: #18191a;
	--sidebar-color: #242526;
	--primary-color: #034e94;
	--primary-color-light: #3a3b3c;
	--toggle-color: #fff;
	--text-color: rgb(255, 255, 255);
}

/* ===== Sidebar ===== */
.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	width: 250px;
	padding: 10px 14px;
	background: var(--sidebar-color);
	transition: var(--tran-05);
	z-index: 100;
}
.sidebar.close {
	width: 88px;
}

/* ===== Reusable code - Here ===== */
.sidebar li {
	height: 50px;
	list-style: none;
	display: flex;
	align-items: center;
	margin-top: 10px;
}

.text-color {
	color: var(--text-color) !important;
}

.sidebar header .image,
.sidebar .icon {
	min-width: 60px;
	border-radius: 6px;
}

.sidebar .icon {
	font-size: 28px !important;
	min-width: 60px;
	border-radius: 6px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}

.sidebar .text,
.sidebar .icon {
	color: var(--text-color);
	transition: var(--tran-03);
}

.sidebar .text {
	font-size: 17px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 1;
}
.sidebar.close .text {
	opacity: 0;
}
/* =========================== */
/* =========SideBar=========== */
.sidebar header {
	position: relative;
}

.sidebar header .image-text {
	display: flex;
	align-items: center;
}
.sidebar header .logo-text {
	display: flex;
	flex-direction: column;
}
header .image-text .name {
	margin-top: 2px;
	font-size: 18px;
	font-weight: 600;
}

header .image-text .profession {
	font-size: 16px;
	margin-top: -2px;
	display: block;
}

.sidebar header .image {
	display: flex;
	align-items: center;
	justify-content: center;
}

.sidebar header .image img {
	width: 40px;
	border-radius: 6px;
}

.sidebar .menu {
	margin-top: 40px;
}

.sidebar .menu .menu-links {
	padding: 0;
}

.sidebar li a {
	list-style: none;
	height: 100%;
	background-color: transparent;
	display: flex;
	align-items: center;
	height: 100%;
	width: 100%;
	border-radius: 6px;
	text-decoration: none;
	transition: var(--tran-03);
}

.sidebar li a:hover {
	background-color: var(--primary-color);
}

.sidebar li.active a {
	background-color: var(--primary-color);
}

.sidebar li.active a .icon,
.sidebar li.active a .text {
	color: #ffffff;
}

.sidebar li a:hover .icon,
.sidebar li a:hover .text {
	color: var(--sidebar-color);
}
body.dark .sidebar li a:hover .icon,
body.dark .sidebar li a:hover .text {
	color: var(--text-color);
}

.sidebar .menu-bar {
	height: calc(100% - 55px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-y: scroll;
}
.menu-bar::-webkit-scrollbar {
	display: none;
}
.sidebar .menu-bar .mode {
	border-radius: 6px;
	background-color: var(--primary-color-light);
	position: relative;
	transition: var(--tran-05);
}

.menu-bar .mode .sun-moon {
	height: 50px;
	width: 60px;
	opacity: 1;
}

.mode .sun-moon i {
	position: absolute;
}
.mode .sun-moon i.sun {
	opacity: 0;
}
body.dark .mode .sun-moon i.sun {
	opacity: 1;
}
body.dark .mode .sun-moon i.moon {
	opacity: 0;
}

.menu-bar .bottom-content .toggle-switch {
	position: absolute;
	right: 0;
	height: 100%;
	min-width: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	cursor: pointer;
}
.toggle-switch .switch {
	position: relative;
	height: 22px;
	width: 40px;
	border-radius: 25px;
	background-color: var(--toggle-color);
	transition: var(--tran-05);
}

.switch::before {
	content: "";
	position: absolute;
	height: 15px;
	width: 15px;
	border-radius: 50%;
	top: 50%;
	left: 5px;
	transform: translateY(-50%);
	background-color: var(--text-color);
	transition: var(--tran-04);
}

body.dark .switch::before {
	left: 20px;
	background-color: #2e2e2e;
}

.home {
	position: absolute;
	top: 0;
	padding: 25px 30px;
	left: 250px;
	height: auto;
	min-height: 100dvh;
	width: calc(100% - 250px);
	background-color: var(--body-color);
	transition: var(--tran-05);
}
.home .text {
	font-size: 30px;
	font-weight: 500;
	color: var(--text-color);
	padding: 12px 60px;
}

.sidebar.close ~ .home {
	left: 78px;
	min-height: 100dvh;
	width: calc(100% - 78px);
}
body.dark .home .text {
	color: var(--text-color);
}

.sidebar.close .sun-moon {
	opacity: 0;
}

.sidebar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100dvh;
	max-height: 100dvh;
	padding: 10px 14px;
	width: 250px;
	background: var(--sidebar-color);
}

.sidebar .image-text img {
	width: 40px;
	border-radius: 6px;
}

.sidebar header .image-text {
	display: flex;
	align-items: center;
}

header .image-text .header-text {
	display: flex;
	flex-direction: column;
}

.home .flex-container .card {
	background-color: var(--primary-color-light) !important;
	color: var(--text-color);
}

.card {
	background-color: var(--sidebar-color) !important;
	color: var(--text-color);
}

.input-btn {
	background-color: white !important;
}
/* ================================ */

/* =========Horizontal Bar========== */
.horizontal-bar {
	position: fixed;
	top: 0;
	left: 250px;
	height: 55px;
	width: calc(100% - 250px);
	background-color: var(--sidebar-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 30px;
	transition: var(--tran-05);
}

.sidebar.close .horizontal-bar {
	left: 78px;
	width: calc(100% - 78px);
}

.horizontal-bar .toggle {
	font-size: 28px !important;
	position: absolute;
	top: 50%;
	left: 25px;
	transform: translateY(-50%);
	color: var(--text-color);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	cursor: pointer;
	transition: var(--tran-05);
}

body.dark .horizontal-bar .toggle {
	color: var(--text-color);
}

.sidebar.close .toggle {
	transform: translateY(-50%) rotate(0deg);
}
/* ================================ */
