/* =========================
   LIST ITEM ALIGNMENT
========================= */

.mode-toggle-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Font Awesome icon */
.mode-fa-icon {
	font-size: 18px;
	cursor: pointer;
}

/* =========================
   SWITCH CONTAINER
========================= */

.mode-switch {
	position: relative;
	width: 84px;
	height: 34px;
	border-radius: 50px;
	cursor: pointer;
	background: #ddd;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	box-sizing: border-box;
}

	/* =========================
   ICONS
========================= */

	.mode-switch .icon {
		font-size: 15px;
		z-index: 2;
		pointer-events: none;
	}

	.mode-switch .sun {
		color: #f5b301;
	}

	.mode-switch .moon {
		color: #555;
	}

/* =========================
   SLIDER
========================= */

.switch-slider {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 36px;
	height: 28px;
	border-radius: 50px;
	background: #fff;
	transition: left 0.3s ease;
	z-index: 1;
}

/* Disable animation on initial load */
body.no-transition .switch-slider {
	transition: none;
}

/* =========================
   LIGHT MODE
========================= */

body.light .mode-switch {
	background: #ddd;
}

body.light .switch-slider {
	left: 3px;
	background: #ffffff;
}

/* =========================
   DARK MODE
========================= */

body.dark .mode-switch {
	background: #333;
}

body.dark .switch-slider {
	left: 45px;
	background: #111;
}
