.main-color{
  background-color: #6F9781 !important;
}

.secondary-color{
  background-color: #FEF5E1 !important;
}

.sidebar-bg-color{
  background-color: #36454F !important;
  color: #ffffff !important;
}

.font-color{
  color: #442927 !important;
}

.primary-text{
  color: #6F9781 !important;
}

.button-color{
  background-color: #D36B46 !important;
  color: #ffffff !important;
}

.button-secondary{
  background-color: #6F9781 !important;
  color: #ffffff !important;
}

th{
  background-color: #94724F !important;
  color: #ffffff !important;
}

tbody{
  background-color: #FEF5E1 !important;
  color: #442927 !important;
}

.pagination > .active > a {
    color: white;
    background-color: #6F9781 !Important;
    border: solid 1px #6F9781 !Important;
}

.pagination > .page-item > a {
    color: #6F9781;
}

a {
  font-weight: bold;
  color: #6F9781;
}

.dropdown-item:active{
  background-color: #6F9781;
  color: white;
}

.hidden-menu{
  display: none;
}

.select2-selection__choice{
  background-color: #6F9781 !important;
  border-color: #6F9781 !important;
}

.nav-link.active{
  background-color: #6F9781 !important;
}

.navbar-primary{
  background-color: #6F9781 !important;
}

.table{
  width: 99%;
}

.swal2-icon img {
  margin-right: 10px; /* Adjust the margin value as needed */
}

.btn {
  border: none;
}

.btn-primary, .badge-primary {
  color: white;
  background-color: #6F9781;
}

.btn-primary:hover {
  color: white;
  background-color: black;
}

.dropdown-item:hover {
  color: white;
  background-color: #6F9781;
}

.nav-item:hover, .nav-item:active{
  background-color: #6F9781 !important;
}

.nav-link:hover {
  color: white !important;
}

.nav-link.active {
  color: white !important;
}

.nav-treeview>.nav-item>.nav-link {
  color: white !important;
}

.nav-treeview>.nav-item>.nav-link:hover {
  color: white !important;
}

.nav-treeview>.nav-item>.nav-link.active {
  color: white !important;
}

.tagify {
  width: 100%;
}

.swal2-icon {
  margin-right: 10px !important; /* Adjust the margin value as needed */
}

.sidebar-light-primary, .brand-link{
  background-color: #36454F !important;
  color: #ffffff !important;
}

.sidebar-light-primary > .nav-link{
  color: #ffffff !important;
}

.sidebar-light-primary > .nav-link:hover{
  color: #ffffff !important;
}

.sidebar-light-primary > .nav-link.active{
  color: #ffffff !important;
}
.sidebar a {
  color: #ffffff !important;
}

/* Remove spacing between brand-link and sidebar menu */
.brand-link {
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

/* Brand link collapsed state - show only icon */
.sidebar-collapse .brand-link .brand-text {
  display: none !important;
}

.sidebar-collapse .brand-link .brand-icon {
  display: inline-block !important;
  font-size: 1.5rem !important;
}

.sidebar-collapse .brand-link {
  text-align: center !important;
  padding: 0.5rem !important;
}

.content-wrapper {
  padding-top: 25px !important;
}

/* Mobile-specific column width for admin table */
@media (max-width: 768px) {
  .table-responsive .dt-body-right {
    width: 120px !important;
    min-width: 120px !important;
  }
  
  .table-responsive .dt-body-right .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
  }
}

/* Read-only dropify styling */
.dropify-wrapper.disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

.dropify-wrapper.disabled .dropify-message {
  display: none !important;
}

.dropify-wrapper.disabled .dropify-clear {
  display: none !important;
}

/* Make Dropify responsive */
.dropify-wrapper {
  max-width: 100%;
  height: auto;
  min-height: 150px;  /* adjust as you like */
  box-sizing: border-box;
}

.dropify-wrapper .dropify-message span.file-icon {
  font-size: 32px; /* smaller icon for mobile */
}

.img-gallery {
  width: 100px;
  object-fit: cover;
}

blockquote {
  background-color: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Custom sidebar submenu icon rotation */
.nav-item.menu-open .nav-link .right.fas.fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.nav-item .nav-link .right.fas.fa-chevron-down {
  transition: transform 0.3s ease;
}

/* Upload progress bar styling */
.upload-progress-container {
  margin-top: 10px;
}

.upload-progress-container .progress {
  height: 20px;
  border-radius: 10px;
  background-color: #e9ecef;
}

.upload-progress-container .progress-bar {
  background-color: #28a745;
  border-radius: 10px;
  transition: width 0.3s ease;
}

.upload-progress-container .progress-text {
  color: white;
  font-weight: bold;
  font-size: 12px;
}

/* Family tree node text styling */
@media (min-width: 768px) {
  .jstree-default .jstree-anchor {
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  .jstree-default .jstree-anchor .jstree-icon {
    font-size: 16px !important;
  }
}

@media (max-width: 768px) {
  .jstree-default .jstree-anchor {
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  .jstree-default .jstree-anchor .jstree-icon {
    font-size: 14px !important;
  }
}

/* Make ancestors (first level) display side by side */
#silsilah-tree-container > ul.jstree-children {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0px !important;
  align-items: flex-start !important;
}

#silsilah-tree-container > ul.jstree-children > li.jstree-node {
  flex: 0 0 auto !important;
  min-width: auto !important;
  max-width: none !important;
  margin-bottom: 20px !important;
  margin-right: 10px !important;
  position: relative !important;
}

/* Fix wholerow hover overlap issue */
#silsilah-tree-container > ul.jstree-children > li.jstree-node > .jstree-wholerow {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Ensure children of ancestors still display vertically */
#silsilah-tree-container > ul.jstree-children > li.jstree-node ul.jstree-children {
  display: block !important;
  flex-direction: column !important;
}

/* .main-sidebar {
  width: 200px !important;
}

.sidebar-collapse .main-sidebar, .sidebar-collapse .main-sidebar::before {
  margin-left: -200px;
}

.sidebar-mini .main-sidebar .nav-link, .sidebar-mini-md .main-sidebar .nav-link, .sidebar-mini-xs .main-sidebar .nav-link {
  width: calc(200px - .5rem * 2);
}

@media (min-width: 768px) {
  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
      transition: margin-left .3s 
ease-in-out;
      margin-left: 200px;
  }
}

@media (min-width: 768px) {
  body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .content-wrapper, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-footer, body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav) .main-header {
      transition: margin-left .3s 
ease-in-out;
      margin-left: 200px;
  }
} */