:root {
	--sidebar-width: 180px;
	--sidebar-collapsed-width: 50px;
}

body {
	font-family: "Arimo", sans-serif;
	font-optical-sizing: auto;
	font-weight: normal;
	font-style: normal;
	font-size: 14px;
	line-height: 1.3;
}

/* Custom Dark Mode - Natural System Colors */
[data-bs-theme="dark"] {
	color-scheme: dark;
	--bs-body-bg: #282828;
	--bs-body-color: #e5e5e5;
	--bs-emphasis-color: #ffffff;
	--bs-secondary-color: #adb5bd;
	--bs-tertiary-color: #6c757d;
	--bs-border-color: #404040;
	--bs-border-color-translucent: rgba(255, 255, 255, 0.15);
	--bs-heading-color: #ffffff;
	--bs-link-color: #66b3ff;
	--bs-link-hover-color: #99ccff;
}

[data-bs-theme="dark"] body {
	background-color: #282828 !important;
	color: #e5e5e5 !important;
}

[data-bs-theme="dark"] .bg-light {
	background-color: #2d2d2d !important;
}

[data-bs-theme="dark"] .bg-white {
	background-color: #282828 !important;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-light,
[data-bs-theme="dark"] .border-end {
	border-color: #404040 !important;
}

[data-bs-theme="dark"] .text-dark {
	color: #e5e5e5 !important;
}

[data-bs-theme="dark"] .text-muted {
	color: #adb5bd !important;
}

/* Sidebar Link Colors - Twitter Style */
.sidebar {
	font-size: 14px;
}

.sidebar ul div {
	font-size: 13px !important;
}

.sidebar a,
.sidebar .nav-link {
	color: #000000 !important;
	text-decoration: none;
}


.sidebar a:hover,
.sidebar .nav-link:hover {
	color: #333333 !important;
}

.sidebar a.btn {
	color: #f5f5f5 !important;
}

.sidebar a.btn:hover {
	color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar a,
[data-bs-theme="dark"] .sidebar .nav-link {
	color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar a:hover,
[data-bs-theme="dark"] .sidebar .nav-link:hover {
	color: #e5e5e5 !important;
}

[data-bs-theme="dark"] .sidebar .nav-link.active {
	background-color: #404040 !important;
	color: #ffffff !important;
}

[data-bs-theme="dark"] .sidebar .accordion-button.active,
[data-bs-theme="dark"] .sidebar .accordion-header.active,
[data-bs-theme="dark"] .sidebar .accordion-button.active:focus {
	background-color: #404040 !important;
}


/* Active state for light mode */
.sidebar .nav-link.active {
	background-color: #f1f3f4 !important;
	color: #000000 !important;
}

.sidebar .accordion-button.active {
	background-color: #f1f3f4 !important;
}

.sidebar .accordion-button.active:not(.collapsed) {
	background-color: transparent !important;
}

.sidebar .accordion-button.active:focus {
	background-color: #f1f3f4 !important;
	outline: none !important;
	box-shadow: none !important;
}


.sidebar .accordion-button:not(.collapsed) {
	background-color: transparent !important;
}

.sidebar .accordion-header.active {
	background-color: #f1f3f4 !important;
}

.accordion-button:focus,
.accordion-button.active:focus,
.accordion-button:not(.collapsed),
.accordion-button.active:not(.collapsed) {
	outline: none !important;
	box-shadow: none !important;
	background-color: transparent !important;
}

/*
.sidebar ul div .nav-link.active {
	background-color: transparent !important;
	color: #0D6EFD !important;
}
*/

/* Header Dropdown Styling */
.navbar-nav .nav-link {
	color: #000000 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
	color: #ffffff !important;
}

/* Color Mode Icon Colors */
.theme-icon-active,
.theme-icon {
	color: #000000 !important;
	fill: #000000 !important;
}

[data-bs-theme="dark"] .theme-icon-active,
[data-bs-theme="dark"] .theme-icon {
	color: #ffffff !important;
	fill: #ffffff !important;
}

/* Specific SVG styling for theme icons */
svg.theme-icon-active,
svg.theme-icon {
	fill: currentColor !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
	border: 1px solid #e0e0e0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
	color: #000000 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
	background-color: #f8f9fa !important;
	color: #000000 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
	background-color: #2d2d2d !important;
	border-color: #404040 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .dropdown-item {
	color: #e5e5e5 !important;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
	background-color: #404040 !important;
	color: #ffffff !important;
}

/* Active dropdown item styling */
.dropdown-item.active {
	background-color: #f8f8f8 !important;
	color: #000000 !important;
}

[data-bs-theme="dark"] .dropdown-item.active {
	background-color: #404040 !important;
	color: #ffffff !important;
}

/* Status dropdown disabled state */
.dropdown-item.disabled {
	color: #6c757d;
	background-color: transparent;
	pointer-events: none;
	opacity: 0.65;
}

.dropdown-item.disabled:hover {
	background-color: transparent;
	color: #6c757d;
}

.main-header {
	min-height: 40px;
	max-height: 42px;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
}

.sidebar {
	position: fixed;
	top: 40px;
	left: 0;
	bottom: 0;
	width: var(--sidebar-width);
	overflow-x: visible;
	overflow-y: auto;
	transition: all 0.3s ease;
	z-index: 1020;
}

.sidebar.collapsed {
	width: var(--sidebar-collapsed-width);
}

.sidebar-text {
	opacity: 1;
	transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-text {
	opacity: 0;
}

/* .sidebar .active {
	background-color: #f1f3f4;
} */

.main-content {
	margin-left: var(--sidebar-width);
	margin-top: 40px;
	transition: margin-left 0.3s ease;
	min-height: calc(100vh - 52px);
}

.main-footer {
	margin-left: var(--sidebar-width);
	margin-top: 52px;
	transition: margin-left 0.3s ease;
}

.main-content.expanded,
.main-footer.expanded {
	margin-left: var(--sidebar-collapsed-width);
}

@media (max-width: 768px) {
	.sidebar {
		transform: translateX(-100%);
		background-color: #ffffff !important;
	}

	.sidebar.show {
		transform: translateX(0);
	}

	.main-content,
	.main-footer {
		margin-left: 0;
	}

	.sidebar-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1010;
		display: none;
	}

	.sidebar-overlay.show {
		display: block;
	}

	.sidebar-footer {
		margin-top: auto;
		padding: 0.5rem 1rem;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}
}

/* Mobile Dark Mode Sidebar */
@media (max-width: 768px) {
	[data-bs-theme="dark"] .sidebar {
		background-color: #282828 !important;
	}
}

.bottom-10 {
	bottom: 10% !important
}

/* Border bottom hanya di mobile (< 768px) */
@media (max-width: 767.98px) {
	.border-sm-bottom {
		border-bottom: 1px solid #dee2e6 !important;
	}
}

/* Border bottom hanya di tablet (768px - 991.98px) untuk kolom ke-3, ke-6 */
@media (min-width: 768px) and (max-width: 991.98px) {
	.border-md-bottom {
		border-bottom: 1px solid #dee2e6 !important;
	}
}

.alert-dismissible .btn-close {
	position: absolute;
	padding: 0.75rem 1rem;
}

.sidebar {
	height: 100vh;
	overflow-y: auto;
}

.bg-dark {
	background-color: #3C3C3C !important;
}

.rounded-5 {
	border-radius: .9rem !important;
}

.rounded-5-top {
	border-top-left-radius: .9rem !important;
	border-top-right-radius: .9rem !important;
}

.form-control.rounded-0 {
	border-radius: 0 !important;
}

.site-branding .site-title {
	font-size: 18px;
	line-height: 1 !important;
}

.site-branding .site-description {
	font-size: 13px;
	line-height: 1 !important;
}

/* Timeline Styling */
.timeline-connector {
	flex: 1;
	height: 2px;
	background-color: #dee2e6;
	margin: 0 10px;
}

.timeline-connector.completed {
	background-color: #198754;
}

.step-icon {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.step-content {
	text-align: center;
	margin-top: 8px;
}

/* Vertical Tabs Styling */
[data-bs-theme="dark"] #v-pills-tab .nav-link,
[data-bs-theme="dark"] #v-pills-tab .nav-link .badge {
	color: #adb5bd !important;
}

[data-bs-theme="dark"] #v-pills-tab .nav-link.active {
	color: #66b3ff !important;
}

[data-bs-theme="dark"] #v-pills-tab .nav-link .badge {
	background-color: #595C5F !important;
	color: #fff !important;
}

[data-bs-theme="dark"] #v-pills-tab .nav-link.active .badge {
	background-color: transparent !important;
	color: #595C5F;
}

#v-pills-tab .nav-link {
	border-radius: 0.375rem;
	margin-bottom: 0.3rem;
	border: 1px solid transparent;
	transition: all 0.2s ease-in-out;
	color: #595C5F;
	padding: 0.3rem 0rem;
}

#v-pills-tab .nav-link .badge {
	background-color: #f0f0f0 !important;
	color: #595C5F;
}

#v-pills-tab .nav-link:hover {
	background-color: transparent;
	border-color: transparent;
}

#v-pills-tab .nav-link.active {
	background-color: transparent;
	color: #0d6efd;
	border-color: transparent;
}

#v-pills-tab .nav-link.active .badge {
	background-color: #0d6efd !important;
	color: #fff;
}

/* Smooth tab content transition */
.tab-pane {
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Bootstrap custom */
/* Menghilangkan border dan outline pada input, textarea, dan select */
.form-control,
.form-select,
.btn,
textarea {
	box-shadow: none !important;
	outline: none !important;
}

.logo-text {
	font-size: 16px;
}

.navbar-nav {
	font-size: 1rem;
}

/* Menghilangkan border dan outline pada toggle icon (navbar-toggler) */
.navbar-toggler {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.btn:hover,
.btn:focus,
.form-control:focus,
.form-select:focus,
.navbar-toggler:focus {
	box-shadow: none !important;
}

.navbar {
	--bs-navbar-toggler-padding-y: 0.15rem;
	--bs-navbar-toggler-padding-x: 0.15rem;
}

.form-control::-moz-placeholder {
	font-size: 14px;
	opacity: .75;
}

.form-control::placeholder {
	font-size: 14px;
	opacity: .75;
}

/* .table> :not(:first-child) {
	border-top: 0;
} */

.table-responsive.border .table tr:last-child td {
	border-bottom: 0 !important;
}

/* Summernote */
.note-toolbar {
	background-color: #fbfbfb !important;
}

.note-toolbar .btn {
	color: #212121;
}

.note-toolbar .btn:hover {
	color: #000;
	background-color: #f0f0f0;
}

.btn-close.btn-close-sm {
	width: 0.7rem !important;
	height: 0.7rem !important;
	background-size: 0.7rem !important;
	margin-top: 1px;
}

.sidebar .accordion-button::after {
	margin-left: .25rem;
	/* jarak kecil dari judul */
	margin-right: 0;
	/* hapus margin kanan default */
	flex-shrink: 0;
	/* biar nggak ketarik */
	width: 1rem;
	height: 1rem;
	background-size: 1rem;
}

/* custom table */
.table-custom table th:first-child,
.table-custom table td:first-child {
	padding-left: 15px !important;
	border-left: 0 !important;
}

/* Kolom terakhir */
.table-custom table th:last-child,
.table-custom table td:last-child {
	padding-right: 15px !important;
	border-right: 0 !important;
}

.table .badge,
.card .badge,
.list-group .badge {
	border-radius: 1rem !important;
}

.no-caret .dropdown-toggle::after {
	display: none !important;
}

.text-number {
	font-size: 11px !important;
	line-height: 1.3 !important;
}

.start-90 {
	left: 90% !important
}


.start-95 {
	left: 95% !important
}

.start-80 {
	left: 80% !important
}


.start-74 {
	left: 74% !important
}