/* Enhanced sidebar styling for AdminLTE - Church Management System */

/* Main Navigation Item Styling */
.nav-sidebar > .nav-item {
  margin-bottom: 5px;
}

.nav-sidebar > .nav-item > .nav-link {
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Active Main Menu Item Styling */
.nav-sidebar > .nav-item > .nav-link.active {
  position: relative;
  border-left: 4px solid #3490dc;
  padding-left: calc(0.5rem - 4px);
}

.nav-sidebar > .nav-item > .nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #3490dc;
  display: none; /* Hidden because we're using border-left instead */
}

/* Submenu Container Styling */
.nav-treeview {
  padding-left: 15px;
  margin-top: 5px;
  margin-bottom: 5px;
  position: relative;
}

/* Vertical line for active submenu */
.nav-item.menu-open > .nav-treeview::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background-color: rgba(52, 144, 220, 0.3);
  z-index: 0;
}

/* Submenu Item Styling */
.nav-treeview > .nav-item > .nav-link {
  padding-left: 20px;
  margin-bottom: 3px;
  border-radius: 5px;
  position: relative;
  z-index: 1;
}

/* Horizontal line indicator for submenu items */
.nav-treeview > .nav-item > .nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 2px;
  background-color: rgba(52, 144, 220, 0.5);
  display: none; /* Hidden by default */
}

/* Show horizontal line for active submenu items */
.nav-treeview > .nav-item > .nav-link.active::before {
  display: block;
  background-color: #3490dc;
}

/* Active Submenu Item Styling */
.nav-treeview > .nav-item > .nav-link.active {
  background-color: rgba(52, 144, 220, 0.1);
  color: #3490dc;
  font-weight: 500;
}

/* Add more spacing between main menu categories */
.nav-header {
  margin-top: 15px;
  padding: 10px 5px 5px 5px;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: #939da7;
  letter-spacing: 0.5px;
}

/* Improved menu-open state visibility */
.nav-item.menu-open > .nav-link {
  font-weight: 500;
}

/* Hover effects */
.nav-sidebar .nav-link:hover {
  background-color: rgba(52, 144, 220, 0.05);
}

/* Dark mode adjustments */
body.dark-mode .nav-sidebar > .nav-item > .nav-link.active,
body.dark-mode .nav-treeview > .nav-item > .nav-link.active::before,
body.dark-mode .nav-item.menu-open > .nav-treeview::before {
  background-color: #3490dc;
}

body.dark-mode .nav-treeview > .nav-item > .nav-link.active {
  background-color: rgba(52, 144, 220, 0.2);
  color: #fff;
}

body.dark-mode .nav-header {
  color: #adb5bd;
} 