/* Google Fonts Import Link */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


.sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 14.5%;
  background: #ffffff;
  z-index: 3;
  transition: all 0.5s ease;
  box-shadow: 5px 0px 35px #80808047;
}
.sidebar.close{
  width: 78px;
}
.sidebar .logo-details .bx img {
    margin-top: 33px;
    height: 120px;
}
.sidebar .close .logo-details .bx img{
    height: 10px; 
}
.sidebar .logo-details{
  height: 180px;
  width: 100%;
  display: flex;
  align-items: center;
}
.sidebar .logo-details i{
  font-size: 30px;
  color: #fff;
  height: 100%;
  min-width: 100%;
  text-align: center;
}
hr{
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    margin-top: 0!important; 
    margin-bottom: 0!important; 
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}
.sidebar .logo-details .logo_name{
    margin-top: 14px;
  font-size: 22px;
  color: #505056;
  font-weight: 600;
  transition: 0.3s ease;
  transition-delay: 0.1s;
}
.sidebar.close .logo-details .logo_name{
  transition-delay: 0s;
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links{
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  height: 100%;
  padding: 30px 0 150px 0;
  overflow: auto;
}
.sidebar.close .nav-links{
  overflow: visible;
}
.sidebar .nav-links::-webkit-scrollbar{
  display: none;
}
.sidebar .nav-links li{
  position: relative;
  list-style: none;
  transition: all 0.4s ease;
}
.sidebar .nav-links li:hover{
  background: #E6E6E6;
}
.sidebar .nav-links li .iocn-link{
  height: 100%;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar.close .nav-links li .iocn-link{
  display: block;
}
.sidebar .nav-links li i{
  min-width: 60px;
  text-align: center;
  line-height: 50px;
  color: #505056;
  font-size: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sidebar .nav-links li.showMenu i.arrow{
  transform: rotate(-180deg);
}
.sidebar.close .nav-links i.arrow{
  display: none;
}
.sidebar .nav-links li a{
  height:60px;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sidebar .nav-links li a .link_name{
  font-size: 15px;
  font-weight: 400;
  color: #505056;
  transition: all 0.4s ease;
}
.sidebar.close .nav-links li a .link_name{
  opacity: 0;
  pointer-events: none;
}

/* Add bounce-in and bounce-out animations */
.sidebar .nav-links li .sub-menu {
    padding: 0;
    background: #f8f8f8;
    max-height: 0; /* Collapsed by default */
    opacity: 0;
    overflow: hidden; /* Hide content */
    transform-origin: top;
    transition: all 0.5s ease-in-out; /* Smooth drop effect */
}

.sidebar .nav-links li.showMenu .sub-menu {
    max-height: 200px; /* Adjust based on content height */
    opacity: 1; /* Fully visible */
}

.sidebar .nav-links li .sub-menu.bounce-out {
  display: block;
  animation: bounceOut 0.6s both;
}
.sidebar .nav-links li .sub-menu a{
  color: black;
  font-size: 15px;
  padding: 5px 26px;
  white-space: nowrap;
  opacity: 0.6;
  transition: all 0.3s ease;
}
.sidebar .nav-links li .sub-menu a:hover{
 color:red;
}
.sidebar.close .nav-links li .sub-menu{
  position: absolute;
  left: 100%;
  top: -10px;
  margin-top: 0;
  padding: 10px 20px;
  border-radius: 0 6px 6px 0;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: 0s;
}
.sidebar.close .nav-links li:hover .sub-menu{
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 0.4s ease;
}
.sidebar .nav-links li .sub-menu .link_name{
  display: none;
}
.sidebar.close .nav-links li .sub-menu .link_name{
  font-size: 18px;
  opacity: 1;
  display: block;
}
.sidebar .nav-links li .sub-menu.blank{
  opacity: 1;
  pointer-events: auto;
  padding: 3px 20px 6px 16px;
  opacity: 0;
  pointer-events: none;
}
.sidebar .nav-links li:hover .sub-menu.blank{
  top: 50%;
  transform: translateY(-50%);
}
.sidebar .profile-details{
  position: fixed;
  bottom: 0;
  width: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #505056;
  padding: 12px 0;
  transition: all 0.5s ease;
}
.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: #1d1b31;
  transition: all 0.5s ease;
}
.sidebar.close .profile-details img{
  padding: 10px;
}
.sidebar .profile-details .profile_name,
.sidebar .profile-details .job{
  color: #fff;
  font-size: 18px;
  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;
  background: #E4E9F7;
  height: 60px;
  left: 290px;
  width: calc(100% - 290px);
  transition: all 0.5s ease;
}
.sidebar.close ~ .home-section{
  left: 78px;
  width: calc(100% - 78px);
}
.home-section .home-content{
  height: 60px;
  display: flex;
  align-items: center;
}
.bx img{
    height:50px;
}
.home-section .home-content .bx-menu,
.home-section .home-content .text{
  color: #11101d;
  font-size: 35px;
}
.home-section .home-content .bx-menu{
  margin: 0 15px;
  cursor: pointer;
}
.home-section .home-content .text{
  font-size: 26px;
  font-weight: 600;
}
@media (max-width: 400px) {
  .sidebar.close .nav-links li .sub-menu{
    display: none;
  }
  .sidebar{
    width: 78px;
  }
  .sidebar.close{
    width: 0;
  }
  .home-section{
    left: 78px;
    width: calc(100% - 78px);
  z-index: 3;
  }
  .sidebar.close ~ .home-section{
    width: 100%;
    left: 0;
  }
}
@media screen and (min-width: 1280px) and (max-width: 1919px){
  .sidebar .nav-links li i{
    min-width: 38px;
    font-size: 19px;
  }
  .sidebar .nav-links li a .link_name{
    font-size: 12px;
  }
  .sidebar{
    width: 15.6%;
  }
  .sidebar .logo-details .bx img{
        height: 90px;
        margin-top: 40px;
  }
  .sidebar .logo-details {
    height: 168px;
  }
  .sidebar .nav-links li a {
    height: 50px;
  }



  .sidebar .nav-links li .sub-menu a {
    font-size: 12px;
    white-space: normal;
  }
  .sidebar .nav-links {
    width: 72%;   
    padding: 0px 0 150px 0;
  }
  .sidebar hr {
    bottom: 65px;
  }
}



/*responsive*/
@media screen and (min-width: 768px) and (max-width: 1279px){
  .sidebar .nav-links li i{
    font-size: 16px;
  }
  .sidebar .nav-links li a .link_name{
    font-size: 12px;
  }
  .sidebar{
    width: 16.5%;
  }
  .sidebar .logo-details .bx img{
    height: 80px;
    margin-top: 18px;
  }
  .sidebar .logo-details {
    height: 118px;
  }
  .sidebar .nav-links li a {
    height: 50px;
  }
  .sidebar .nav-links li .sub-menu a {
     margin-left: 13%;
    font-size: 12px;
    padding: 0px 0;
    white-space: normal;
  }
  .sidebar .nav-links {
    width: 85%;   
    padding: 0px 0 150px 0;
  }
  .sidebar hr {
    bottom: 65px;
  }
}
