﻿.sidebar {
    animation: none !important;
}

.navbar.navbar-expand-md {
  position: sticky;
  top: 0;
  z-index: 101;
}

.bottom-divider {
  height: 1px;
  background: #D3D3D3;
  margin-bottom: 2px;
}

#sidemenu-btn {
  margin-top: 2px;
  font-size: 30px;
  margin-right: 20px;
}

.sidebar {
  position: fixed;
  top: 65px;
  left: 0;
  height: calc(100vh - 66px);
  width: 260px;
  background: white;
  z-index: 100;
}

.sidebar .nav-links {
  height: 100%;
  overflow: auto;
}

.sidebar.close .nav-links {
  overflow: visible;
}

.sidebar .nav-links::-webkit-scrollbar {
  display: none;
}

.sidebar .nav-links  {
  position: relative;
  list-style: none;
  text-shadow: none !important;
  line-height: 30px;
  padding-top:10px;
}

    .sidebar .nav-links .iocn-link,
    .sidebar .nav-links .sub-menu {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }



.sidebar .nav-links i {
  height: 50px;
  min-width: 78px;
  text-align: center;
  line-height: 50px;
  color: black;
  font-size: 24px;
  cursor: pointer;
}

.sidebar .nav-links .showMenu i.arrow {
  transform: rotate(-180deg);
}

.sidebar.close .nav-links i.arrow {
  display: none;
}

.sidebar .nav-links  a {
  display: flex;
  align-items: center;
  text-decoration: none;
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar .nav-links  a .link_name {
  font-size: 15px;
  font-weight: 400;
  color: black;
}

.sidebar.close .nav-links  a .link_name {
  opacity: 0;
  pointer-events: none;
} 
.sidebar .profile-details {
        position: fixed;
        bottom: 0;
        width: 260px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: var(--company-secondary);
        padding: 12px 0;
    }

.sidebar.close .profile-details {
  background: none;
}

.sidebar.close .profile-details {
  width: 78px;
}

.sidebar .profile-details .profile-content {
  display: flex;
  align-items: center;
}

    .sidebar .profile-details img {
        height: 52px;
        width: 52px;
        object-fit: cover;
        border-radius: 16px;
        margin: 0 14px 0 12px;
        background: var(--company-secondary);
    }

.sidebar.close .profile-details img {
  padding: 10px;
}

.sidebar .profile-details .profile_name,
.sidebar .profile-details .job {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.sidebar.close .profile-details i,
.sidebar.close .profile-details .profile_name,
.sidebar.close .profile-details .job {
  display: none;
}

.sidebar .profile-details .job {
  font-size: 12px;
}

.home-section {
  position: relative;
  /*height: 100vh;*/
  left: 260px;
  width: calc(100% - 260px);
}

.sidebar.close ~ .home-section {
  left: 78px;
  width: calc(100% - 78px);
}


.sidebar .nav-links i.arrow {
    font-size: 24px;
}
/* Main Menu Links */
.sidebar .nav-links a .link_name {
    font-size: 15px;
    font-weight: 400;
    color: var(--company-primary); /* Set main menu text color */
}
/* Hover States - IMPORTANT FIX */
.sidebar .iocn-link:hover,
.sidebar .sub-menu-iocn-link:hover,
.sidebar .iocn-link.Menuactive,
.sidebar .sub-menu-iocn-link.Menuactive {
    background: var(--company-secondary);
    color: white !important;
}




/*/* Active State */
.sidebar-main-menu.Menuactive > a { /* Only style the active main link */
    background-color: var(--company-secondary);
    color: white !important;
}

    .sidebar-main-menu.Menuactive > a .link_name {
        color: white !important;
    }

.iocn-link, .sub-menu-iocn-link {
    padding-left: 10px;
}
.sub-menu-icon {
    margin-right: 15px;
    width: 24px;
    height: 24px;
}
.side-menu-padding {
    padding: 5px 5px 5px 0;
}
.sub-menu-childern {
    padding-left: 40px;
}

/* Styling for the active menu item */
/*.iocn-link.active,
.sub-menu-iocn-link.active {
    position: relative;
    background-color: #2c3e50;*/ /* Adjust based on theme */
    /*color: #fff;
}*/

.iocn-link::before,
.sub-menu-iocn-link::before {
    content: "";
    position: absolute;
    left: 0px;
    transform: translateY(-50%) rotate(180deg);
    width: 8px;
    height: 28px;
    background-color: transparent;
    border-radius: 7px 0 0 7px;
    margin-top: 22px;
}

.Menuactive::before {
    background-color: #D3670D; /* Show indicator when active */
}

.secondary-Menu {
    font-family: Inter;
    font-weight: 700;
    font-size: 12px;
    line-height: 130%;
    vertical-align: middle;
    color: var( --company-primary)
}

@media (max-width: 768px) {

    .sidebar {
        left: -340px;
        transition: left 0.3s ease;
    }

        .sidebar.open {
            left: 0;
            width: 100vw !important;
        }

    #hamBurger {
        display: block;
    }

    #sidemenu-btn {
        display: block;
        cursor: pointer;
    }

    #close-btn {
        display: none;
    }
}


