.sidebar-main {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding-right: 10px; /* Adds space from the left */
}

/* Hide scrollbar completely when not hovering */
.sidebar-main::-webkit-scrollbar {
    width: 6px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Make scrollbar visible only on hover */
.sidebar-main:hover::-webkit-scrollbar {
    opacity: 1;
}

/* Scrollbar track (invisible) */
.sidebar-main::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar thumb */
.sidebar-main::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
    visibility: hidden; /* Hide thumb initially */
}

/* Show scrollbar thumb only when hovering */
.sidebar-main:hover::-webkit-scrollbar-thumb {
    visibility: visible;
    background: rgba(0, 0, 0, 0.4);
}

/* Remove scrollbar buttons */
.sidebar-main::-webkit-scrollbar-button {
    display: none;
}
