/* ----------------------------
   Base Styles
---------------------------- */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Nunito Regular' !important;
  padding-top: env(safe-area-inset-top);
  /* scrollbar-width: thin;
  scrollbar-color: #4A90E2 #F0F0F0; */
}

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: #F0F0F0; }
body::-webkit-scrollbar-thumb {
  background-color: #4A90E2;
  border-radius: 6px;
  border: 1px solid #F0F0F0;
}

/* ----------------------------
   Utility
---------------------------- */
.no-transition { transition: none !important; }

/* ----------------------------
   Sidebar Collapsed State
---------------------------- */
.sidebar-collapsed { width: 5rem !important; }
.sidebar-collapsed #contentWrapper { margin-left: 5rem !important; }
.sidebar-collapsed #topbar { left: 5rem !important; }
.sidebar-collapsed nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}
.sidebar-collapsed .sidebar-text { display: none; pointer-events: none; }
.sidebar-collapsed a .sidebar-text {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  box-shadow: 0 4px 12px #fffffff4;
  color: #fff;
  background-color: #3b82f6;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  display: flex;
}
.dark .sidebar-collapsed a .sidebar-text {
  background-color: #000000;
}
.sidebar-collapsed a:hover .sidebar-text {
  opacity: 1 !important;
  pointer-events: auto;
}

.sidebar-collapsed a:hover .sidebar-text {
  opacity: 1 !important;
  pointer-events: auto;
}
.sidebar-collapsed nav a { position: relative; }

/* ----------------------------
   Sidebar Links
---------------------------- *//* ---------------------- Hover Effects ---------------------- */

/* Parent menu hover */
.parentmenu:hover {
    background-color: #1e44b6 !important; /* Tailwind blue-500 */  
    border-left: 8px solid #dde4fa;   /* accent border */
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
    transform: translateX(2px);
}

/* Child link hover */
.menu-link:hover {
    background-color: #1e44b6 !important; /* Tailwind blue-500 */    
    border-left: 8px solid #dde4fa;   /* accent border */
    color: white;
    transition: background-color 0.2s ease, transform 0.2s ease;
    transform: translateX(2px);
}

/* ---------------------- Active States ---------------------- */

/* Active parent menu */
.menu-link.active-link  {
    border-bottom: 1px solid #dde4fa;        /* full button border */
    border-left: 8px solid #1e44b6;   /* accent border */
    border-radius: 10px;               /* rounded edges */
    font-weight: 500;
    padding-left: 1rem;               /* extra space for bullet */
}


/* Active child link */
.parentmenu.active-parent {
    border-left: 5px solid #fff; 
    background: #3056c5;
    font-weight: 500; 
    padding-left: 1rem; /* extra space for bullet */
}
 

/* Rotate chevron for open parent */
/* .parentmenu .fas.fa-chevron-down.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
} */

/* ---------------------- Submenu ---------------------- */
.submenu {
    display: none;
}

.submenu.show {
    display: block;
    transition: all 0.2s ease;
}

/* Optional: Smooth slide effect using max-height */
.submenu-slide {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu-slide.show {
    max-height: 500px; /* large enough for all children */
}

/* small helper for height transition (Tailwind-friendly) */
.submenu.slide {
  overflow: hidden;
  transition: height 220ms ease;
}

/* ----------------------------
   Nav Scrollbar Hidden
---------------------------- */
nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
nav::-webkit-scrollbar { display: none; }

/* ----------------------------
   Scrollbar Hidden
---------------------------- */

.scrollbar-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scrollbar-hidden::-webkit-scrollbar { display: none; }


#searchInput:not(:placeholder-shown) {
  box-shadow: inset 0 0 0 1px #155dfc;
}

/* Optional: for icon color, add data attr via JS */
#searchInput:not(:placeholder-shown) + i {
  color: #155dfc;
}


