/*.sidebar-svg-boxes {
    top: 50px;
    left: 0;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 800;
  
}*/

/* .my-sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    z-index: -1;
}
.sidebar-group:last-child {
    margin-bottom: 10px; /* Ensure some space at the bottom 
}*/
/* Hide scrollbar for Firefox 
.sidebar-svg-boxes, .my-sidebar {
    scrollbar-width: none;
}
.sidebar-svg-boxes img {
    width: 120%; 
    margin-bottom: -17px; 
}
*/
/* Sidebar styles */
.my-sidebar {
    width: 58px; 
    max-height: 100%; 
    height: 100%;
    position: fixed;
    top: 50px; 
    /*left: 8px;*/
    background: linear-gradient(90deg, #005C8C 0%, #003B59 100%);
    z-index: 900; 
    /*display: flex;*/
    flex-direction: column;
    align-items: center;
    
}

/* Expanded sidebar state */
.my-sidebar.expanded {
    width: 240px; 
}

/* Sidebar toggle button */
.open-sidebar {
    width: 100%; 
    height: 30px;
    flex-shrink: 0;
    background: #005C8C;
    padding: 6px 6px 6px 30px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Right arrow styles */
.open-sidebar .right-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease; 
    color: white;
}
.sidebar-group {
    flex-grow: 0; 
  }
/* Rotate the arrow when the sidebar expands */
.my-sidebar.expanded .open-sidebar .right-arrow {
    transform: rotate(180deg);
    align-items: center;
    display: flex;
}

/* Sidebar menu items */
.sidebar-menu {
    list-style: none;
    /*padding: 10px 0px 0px 0px;*/
    margin: 0;
    width: 100%; 
    display: flex;
    flex-direction: column;
    align-items: center;
 
    padding-left: 8px;
}

/* Sidebar menu list items */
.sidebar-menu li {
    width: 100%;
    text-align: center; 
    min-height: 40px;
    border-radius: 20px 0 20px 0;
    display: flex;
    align-items: center;
}

/* Menu item links */
.sidebar-menu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 5px 0px 5px 0px;
    flex-direction: column;
    transition: flex-direction 0.3s ease;
}

/* Sidebar menu item images */
.sidebar-menu li span {
    height: auto;
    color:white;
    margin-right: 10px;
    transition: margin-right 0.3s ease; 
}

/* Menu text */
.menu-text {
    display: none; 
    font-size: 14px !important;
}
.my-sidebar.expanded .sidebar-menu li a {
    flex-direction: row; 
    justify-content: flex-start; 
    padding: 10px;
   
}



.my-sidebar.collapsed .menu-text {
    display: none; 
}

.my-sidebar.expanded .menu-text {
display: inline-block;
font-family: 'Inter';
font-size: 14px;
font-weight: 600;
line-height: 16.94px;
text-align: left;
left: 10px;
position: relative;
}


.sidebar-menu li a:hover,
.sidebar-menu li.active a {
    border-radius: 5px 0px 0px 5px;
    background: #F5F5F5;
    color: #03A1AA;
    text-decoration: none;
    /*Width:39px;*/
}

/* Default styles for SVG images */
.sidebar-menu li a span {
  
    transition: filter 0.3s, transform 0.3s;
    color:white;
    font-size: 24px;
}


/* Default styles */
.sidebar-link {
    display: flex;
    align-items: center;
    /*padding: 10px;*/
    text-decoration: none;
    color: #000; 
    background: transparent;
    border-radius: 5px 0px 0px 5px;
    transition: background 0.3s, color 0.3s;
}

.sidebar-link .material-symbols-outlined,
.sidebar-link .material-icons {
    margin-right: 10px;
    color: white; 
width: 12px;
font-size: 18px;
font-weight: 100;
}

/* Active state */
.sidebar-link.active {
    background: #fff; 
    color: #03A1AA; 
 
}

.sidebar-link.active .material-symbols-outlined,
.sidebar-link.active .material-icons {
    color: #03A1AA !important;
}
.sidebar-link:hover .material-symbols-outlined,
.sidebar-link:hover .material-icons {
    color: #03A1AA !important;
}
.sidebar-link.active .menu-text,
.sidebar-link:hover .menu-text {
  color: #003B59;
}
.main-content {
    margin-left: 240px;
    transition: margin-left 0.3s ease;
}

.my-sidebar.collapsed ~ .main-content {
    margin-left: 58px;
}
.sidebar-group {
    position: relative;
    padding-left: 0px; 
}

.sidebar-group::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 8px; 
    height: 100%;
    border-radius: 0px;
}

.blue-group::before {
    background-color: #EE776A; 
    box-shadow: 2px 7px 7px 0px #00000040;
}

.orange-group::before {
    background-color: #03A1AA; 
    box-shadow: 2px 7px 7px 0px #00000040;
    /*height: 50px;*/
}

.sidebar-link[data-tooltip] {
    position: relative;
  }
  
  .sidebar-link[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%; 
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    pointer-events: none;
  }
  .my-sidebar.collapsed .sidebar-link[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
  }
  
  
  

  
  .my-sidebar.collapsed .sidebar-link[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    content: attr(data-tooltip);
    position: fixed;
    left: 60px; /* Adjust based on your sidebar width */
    top: auto;
    transform: translateY(-20%);
    background: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
  }

/* Change color on hover */
.sidebar-menu li a:hover img {
    filter: brightness(0) invert(44%) sepia(78%) saturate(620%) hue-rotate(150deg) brightness(98%) contrast(92%);
}

.sidebar-menu li a.active img {
    filter: brightness(0) invert(44%) sepia(78%) saturate(620%) hue-rotate(150deg) brightness(98%) contrast(92%);
}
.sidebar-menu li a img {
    width: 20px;
}
#sidebar {
    overflow-y: auto;
    scrollbar-width: thin;   
    scrollbar-color: lightgray transparent; 
  
}

#sidebar::-webkit-scrollbar {
    width: 6px;
    z-index: -1;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
    border: none;
    background-clip: content-box;
}

#sidebar {
    scroll-behavior: smooth;
}
#sidebar::-webkit-scrollbar-button {
    display: none !important;
    height: 0;
}
#sidebar::-webkit-scrollbar-track {
    background: transparent !important;
    }