$cadmin-sidebar-padding-bottom: 16px !default; // 16px
$cadmin-sidebar-padding-left: 16px !default; // 16px
$cadmin-sidebar-padding-right: 16px !default; // 16px
$cadmin-sidebar-padding-top: 16px !default; // 16px

// Sidebar Header Title

$cadmin-sidebar-header-component-title: () !default;
$cadmin-sidebar-header-component-title: map-deep-merge(
	(
		font-size: 20px,
		font-weight: $cadmin-font-weight-semi-bold,
		href: (
			color: $cadmin-gray-900,
		),
	),
	$cadmin-sidebar-header-component-title
);

// Sidebar Header Subtitle

$cadmin-sidebar-header-component-subtitle: () !default;
$cadmin-sidebar-header-component-subtitle: map-deep-merge(
	(
		font-size: 12px,
		font-weight: $cadmin-font-weight-normal,
		margin-bottom: 0,
	),
	$cadmin-sidebar-header-component-subtitle
);

// Sidebar DT

$cadmin-sidebar-dt: () !default;
$cadmin-sidebar-dt: map-deep-merge(
	(
		font-size: 12px,
		font-weight: $cadmin-font-weight-semi-bold,
		margin-bottom: 4px,
		text-transform: uppercase,
	),
	$cadmin-sidebar-dt
);

// Sidebar DD

$cadmin-sidebar-dd: () !default;
$cadmin-sidebar-dd: map-deep-merge(
	(
		font-size: 14px,
		margin-bottom: 12px,
	),
	$cadmin-sidebar-dd
);

// Sidebar Panel

$cadmin-sidebar-panel-margin-bottom: 16px !default; // 16px

// Sidebar List Group

$cadmin-sidebar-list-group-bg: transparent !default;
$cadmin-sidebar-list-group-border-color: $cadmin-gray-300 !default;
$cadmin-sidebar-list-group-font-size: 14px !default; // 14px
$cadmin-sidebar-list-group-type: list-group-flush !default;

$cadmin-sidebar-list-group-item-padding: 0 !default;

$cadmin-sidebar-list-group-autofit-col-padding-x: 8px !default; // 8px
$cadmin-sidebar-list-group-autofit-col-padding-y: 16px !default; // 16px

$cadmin-sidebar-list-group-sticker-size: () !default;
$cadmin-sidebar-list-group-sticker-size: map-deep-merge(
	$cadmin-sticker-sm,
	$cadmin-sidebar-list-group-sticker-size
);

// Sidebar Light

$cadmin-sidebar-light-navigation-bar: () !default;
$cadmin-sidebar-light-navigation-bar: map-deep-merge(
	(
		background-color: $cadmin-white,
		border-color: $cadmin-secondary-l2,
		navbar-nav: (
			nav-link: (
				color: $cadmin-navbar-light-color,
				hover: (
					color: $cadmin-navbar-light-hover-color,
				),
				active: (
					color: $cadmin-navbar-light-active-color,
				),
				disabled: (
					color: $cadmin-navbar-light-disabled-color,
				),
			),
		),
		media-breakpoint-down: (),
		media-breakpoint-up: (),
	),
	$cadmin-sidebar-light-navigation-bar
);

$cadmin-sidebar-light: () !default;
$cadmin-sidebar-light: map-deep-merge(
	(
		background-color: $cadmin-white,
		border-color: $cadmin-gray-300,
		border-left-width: 0,
		box-shadow: -4px 0 8px -4px rgba(0, 0, 0, 0.1),
		color: $cadmin-gray-900,
		sidenav-start: (
			box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.1),
		),
		sidebar-dt: (
			color: $cadmin-gray-600,
		),
		sidebar-dd: (
			href: (
				color: $cadmin-gray-900,
			),
		),
		sidebar-panel: (
			background-color: $cadmin-gray-200,
		),
		panel-unstyled: (
			header: (
				link: (
					focus: (
						box-shadow: #{0 0 0 4px $cadmin-white,
						0 0 0 6px $cadmin-primary-l1},
					),
				),
			),
		),
		sidebar-list-group: (
			component-title: (
				font-size: 16px,
				href: (
					color: $cadmin-gray-900,
				),
			),
		),
		component-navigation-bar: $cadmin-sidebar-light-navigation-bar,
	),
	$cadmin-sidebar-light
);

// Sidebar Dark

$cadmin-sidebar-dark: () !default;
$cadmin-sidebar-dark: map-deep-merge(
	(
		background-color: $cadmin-dark,
		color: $cadmin-white,
		sidebar-header: (
			component-title: (
				color: inherit,
				href: (
					color: inherit,
				),
			),
			component-subtitle: (
				color: inherit,
				href: (
					color: inherit,
				),
			),
		),
		close: (
			color: $cadmin-secondary-l1,
			hover: (
				color: $cadmin-white,
			),
		),
		nav-nested: (
			nav-link: (
				border-radius: $cadmin-border-radius,
				color: $cadmin-secondary-l1,
				transition: box-shadow 0.15s ease-in-out,
				hover: (
					color: $cadmin-white,
				),
				focus: (
					box-shadow: $cadmin-component-focus-box-shadow,
					outline: 0,
				),
				active: (
					color: $cadmin-white,
				),
				disabled: (
					box-shadow: none,
					color: $cadmin-secondary-l1,
					opacity: 0.65,
					active: (
						pointer-events: none,
					),
				),
			),
		),
	),
	$cadmin-sidebar-dark
);

$cadmin-sidebar-palette: () !default;
$cadmin-sidebar-palette: map-deep-merge(
	(
		sidebar-light: $cadmin-sidebar-light,
		sidebar-dark: $cadmin-sidebar-dark,
		sidebar-dark-l2: (
			background-color: $cadmin-dark-l2,
			color: $cadmin-white,
			sidebar-header: (
				component-title: (
					color: inherit,
					href: (
						color: inherit,
					),
				),
				component-subtitle: (
					color: inherit,
					href: (
						color: inherit,
					),
				),
			),
			close: (
				color: $cadmin-secondary-l1,
				hover: (
					color: $cadmin-white,
				),
			),
			nav-nested: (
				nav-link: (
					border-radius: $cadmin-border-radius,
					color: $cadmin-secondary-l1,
					transition: box-shadow 0.15s ease-in-out,
					hover: (
						color: $cadmin-white,
					),
					focus: (
						box-shadow: $cadmin-component-focus-box-shadow,
						outline: 0,
					),
					active: (
						color: $cadmin-white,
					),
					disabled: (
						box-shadow: none,
						color: $cadmin-secondary-l1,
						opacity: 0.65,
						active: (
							pointer-events: none,
						),
					),
				),
			),
		),
	),
	$cadmin-sidebar-palette
);
