:root {
	--main-bg-color: #1acf93;
	--second-bg-color: #02a071;
	--font-color: #222;
}

body {
	color: var(--font-color) !important;
}

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

.carousel-control-next,
.carousel-control-prev {
	z-index: unset;
}
.navbar-nav {
	border-radius: 0px 30px 0px 0px;
	transition: all 0.3s ease;
}

.field-icon {
	float: right;
	bottom: 32px;
	right: 15px;
	position: relative;
	z-index: 2;
}

#page-content {
	flex: 1 0 auto;
}

/* Custom base Color */
.page-item.active .page-link {
	background-color: var(--main-bg-color);
	border-color: var(--main-bg-color);
}
.page-link {
	color: var(--main-bg-color);
}
.page-link:hover {
	background-color: #02a07170;
	color: #fff;
}
.bg-gradient-success {
	background-color: var(--main-bg-color) !important;
	background-image: linear-gradient(
		180deg,
		#1acf93 10%,
		#02a071 100%
	) !important;
}

.btn-success {
	background-color: var(--main-bg-color);
	border-color: var(--second-bg-color);
}

.btn-success:hover {
	background-color: var(--second-bg-color);
	border-color: var(--main-bg-color);
}

.btn-outline-success {
	border-color: var(--main-bg-color);
	color: var(--main-bg-color);
}

.btn-outline-success:hover {
	background-color: var(--second-bg-color);
	border-color: var(--main-bg-color);
}

/* Custom Sidebar */
.sidebar-dark .sidebar-brand {
	color: var(--font-color);
	/* margin: 20px !important; */
}

.sidebar-dark .nav-item.active .nav-link {
	color: var(--font-color);
}
.sidebar-dark .nav-item.active .nav-link i {
	color: var(--font-color);
}

.sidebar-dark .nav-item .nav-link {
	color: var(--font-color) !important;
}
.sidebar-dark .nav-item .nav-link i {
	color: var(--font-color);
}

.sidebar-dark .sidebar-heading {
	color: var(--font-color);
}

.sidebar-dark #sidebarToggle {
	background-color: #22222280;
	/* color: var(--font-color); */
}
/* Custom Login */
.bg-login-image {
	background-size: cover !important;
}

.custom-form-login {
	padding: 30px 0px !important;
}

/* Carousel */
.carousel-item {
	/* width: 1200px; */
	height: 500px;
}
.carousel_img {
	width: 100%;
	height: 500px;
	object-fit: cover;
}

img {
	border-radius: 10px;
}

.caption {
	display: flex;
	align-items: center;
	justify-content: center;

	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
}

/* ================================== */

/* Sponsor Tree */
.icon {
	padding: 0px 10px;
	width: 80px;
}
#loading-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.list-group {
	list-style-type: none; /* Remove list item bullets */
	padding-left: 0; /* Remove default left padding */
}

.list-group-item.folder {
	position: relative;
	margin-bottom: 10px; /* Add some space between folder items */
	border: none; /* Remove the border */
}

.list-group-item.folder > a {
	text-decoration: none; /* Remove the underline */
	display: block;
	padding: 10px; /* Add padding for better appearance */
}

.list-group-item.folder:before {
	content: "";
	position: absolute;
	top: 0;
	left: 5px; /* Adjust the position based on your design */
	width: 4px; /* Adjust the thickness of the line */
	height: 100%;
	background-color: var(--main-bg-color); /* Adjust the color of the line */
}

.list-group-item.file {
	position: relative;
	margin-bottom: 5px; /* Add some space between file items */
	border: none; /* Remove the border */
	margin-left: 50px;
}

.list-group-item.file > a {
	text-decoration: none; /* Remove the underline */
	display: block;
	padding: 5px; /* Add padding for better appearance */
}

.list-group-item.file:before {
	content: "";
	position: absolute;
	top: 50%;
	left: -65px; /* Adjust the position based on your design */
	height: 4px; /* Adjust the thickness of the line */
	width: 150px; /* Adjust the length of the line */
	background-color: var(--main-bg-color); /* Adjust the color of the line */
}
.node-link {
	text-decoration: none !important;
	width: 100%;
	cursor: pointer;

	border: 1px solid #098b5b;
	color: var(--font-color);
	font-family: arial, verdana, tahoma;
	display: inline-block;
	background: var(--main-bg-color);
	border-radius: 5px;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.node-link .row {
	align-items: center;
}

.node-link:hover {
	background: var(--second-bg-color);
	color: #fff !important;
	border: 1px solid var(--main-bg-color);
}

.table.table-sponsor {
	color: var(--font-color) !important;
}
.table.table-sponsor:hover {
	color: #fff !important;
}

.container-fluid.sponsor-tree {
	/* Set a max-width for the container */
	max-width: 100%;
	overflow: hidden;
}
#treeview {
	/* Add styles for the treeview container */
	overflow-x: auto;
}
/* ================================== */

/* Tree */
/* Tree */
/*Now the CSS*/
* {
	margin: 0;
	padding: 0;
}

.img-nodes {
	width: 7rem;
	object-fit: contain;
}
.img-nodes-2 {
	width: 5rem;
	object-fit: contain;
}

.tree ul {
	padding-top: 20px;
	position: relative;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

.tree li {
	float: left;
	text-align: center;
	list-style-type: none;
	position: relative;
	padding: 20px 5px 0 5px;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

/*We will use ::before and ::after to draw the connectors*/

.tree li::before,
.tree li::after {
	content: "";
	position: absolute;
	top: 0;
	right: 50%;
	border-top: 3px solid var(--second-bg-color);
	width: 50%;
	height: 20px;
}
.tree li::after {
	right: auto;
	left: 50%;
	border-left: 3px solid var(--second-bg-color);
}

/*We need to remove left-right connectors from elements without 
any siblings*/
.tree li:only-child::after,
.tree li:only-child::before {
	display: none;
}

/*Remove space from the top of single children*/
.tree li:only-child {
	padding-top: 0;
}

/*Remove left connector from first child and 
right connector from last child*/
.tree li:first-child::before,
.tree li:last-child::after {
	border: 0 none;
}
/*Adding back the vertical connector to the last nodes*/
.tree li:last-child::before {
	border-right: 3px solid var(--second-bg-color);
	border-radius: 0 5px 0 0;
	-webkit-border-radius: 0 5px 0 0;
	-moz-border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
	border-radius: 5px 0 0 0;
	-webkit-border-radius: 5px 0 0 0;
	-moz-border-radius: 5px 0 0 0;
}

/*Time to add downward connectors from parents*/
.tree ul ul::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	border-left: 3px solid var(--second-bg-color);
	width: 0;
	height: 20px;
}

.tree li a {
	width: 200px;
	margin: 0px 10px;
	border: 1px solid #098b5b;
	padding: 5px 10px 10px 10px;
	text-decoration: none;
	color: #000;
	font-family: arial, verdana, tahoma;
	font-size: 15px;
	display: inline-block;
	background: var(--main-bg-color);
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;

	transition: all 0.5s;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
}

/*Time for some hover effects*/
/*We will apply the hover effect the the lineage of the element also*/
.tree li a:hover,
.tree li a:hover + ul li a {
	background: var(--second-bg-color);
	color: #fff;
	border: 1px solid var(--main-bg-color);
}
/*Connector styles on hover*/
.tree li a:hover + ul li::after,
.tree li a:hover + ul li::before,
.tree li a:hover + ul::before,
.tree li a:hover + ul ul::before {
	border-color: var(--second-bg-color);
}

.tree-container {
	display: flex;
	/* overflow: scroll; */
	justify-content: center;
}

/* .tree-child {
	width: 1300px;
} */

.tree-child-reg {
	width: 2000px;
}

.tree-up {
	overflow-x: scroll;
}

.tree-nodes {
	height: 100px;
	margin-bottom: 30px;
}

.downline {
	width: 200px !important;
	height: 125% !important;
}

.add-btn-tree {
	height: 100px !important;
	padding: 40px !important;
}

.dataTables_processing {
	background-color: #28a745; /* Green color */
	color: #fff; /* Text color, you can adjust this as needed */
	font-size: 1.2em; /* Adjust the font size as needed */
	opacity: 0.9; /* Adjust the opacity as needed */
	border-radius: 5px; /* Adjust the border radius as needed */
	padding: 10px; /* Adjust the padding as needed */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a box shadow */
}

.zoom-sett {
	transform: scale(0.8);
}

.active {
	background-color: var(--main-bg-color) !important;
}
.inactive {
	background-color: #ff0000 !important;
	color: #fff !important;
}

@media (max-width: 780px) {
	/* Sidebar */
	.sidebar .sidebar-brand .sidebar-brand-text {
		display: inline !important;
		font-size: 13px !important;
	}
	.sidebar .sidebar-brand .sidebar-brand-text h1 {
		font-size: 13px !important;
	}
	/* Trinary */
	.zoom-sett {
		transform: scale(0.5);
	}

	.container-fluid.sponsor-tree {
		width: 2000px;
	}

	/* Carousel */
	.carousel-item {
		/* width: 1200px; */
		height: 200px;
	}
	.carousel_img {
		width: 100%;
		height: 200px;
		object-fit: contain;
	}
}
.sponsor-tree {
	overflow-x: scroll;
	width: 3000px;
}

.hr-custom-or {
	overflow: visible; /* For IE */
	padding: 0;
	border: none;
	border-top: medium double #333;
	color: #333;
	text-align: center;
}

hr.hr-custom-or:after {
	content: "atau";
	display: inline-block;
	position: relative;
	top: -0.7em;
	font-size: 1em;
	padding: 0 0.25em;
	background: white;
}

@media (min-width: 768px) {
	/* Sidebar */
	.sidebar.toggled .sidebar-brand h1 {
		font-size: 13px !important;
	}
	.sidebar.toggled .sidebar-brand .sidebar-brand-text {
		display: inline !important;
	}
}

/* ================================== */
