@import url(https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css);
.sidebar .logo-details .icon {
    opacity: 0;
    /* Hidden by default, shows when sidebar is expanded */
    transition: all 0.5s ease;
}

.sidebar .logo-details #btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 23px;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* General icon styling */
.sidebar .icons {
    color: #fff;
    height: 30px;
    font-size: 28px;
    text-align: center;
    line-height: 20px;
}

/* Sidebar navigation list styling */
.sidebar .nav-list {
    height: calc(100% - 140px);
    /* Leaves space for logo and profile */
}

/* Scrollbar styles for sidebar */
.sidebar .scroll {
    overflow-y: auto;
    /* Enables vertical scrolling */
    scrollbar-width: thin;
}

.sidebar .scroll::-webkit-scrollbar {
    width: 8px;
    background: #40444F;
    /* Scrollbar background color */
    border-radius: 5px;
}

.sidebar .scroll::-webkit-scrollbar-thumb {
    background: #40444F;
    /* Scrollbar thumb color */
    border-radius: 5px;
}

.sidebar .scroll::-webkit-scrollbar-track {
    background: #40444F;
    /* Scrollbar track color */
    border-radius: 5px;
}


.sidebar li .tooltip {
    position: absolute;
    top: -20px;
    white-space: nowrap;
    left: calc(100% + 15px);
    z-index: 3;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 400;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
    transition: 0s;
}

.sidebar li:hover .tooltip {
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    top: 50%;
    transform: translateY(-50%);
}


/* Icon styling within sidebar items */
.sidebar li .icons {
    height: 50px;
    line-height: 50px;
    border-radius: 12px;
}

.sidebar .logo-details .logo_name {
    opacity: 0;
}

/* Expanded sidebar styles */
.sidebar.open {
    width: 250px;
}

.sidebar.open .logo-details img {
    opacity: 1;
    transition-delay: 0.4s;
}

.sidebar.open .logo-details .icon {
    opacity: 1;
    transition-delay: 0.4s;
}

.sidebar.open .logo-details .logo_name {
    opacity: 1;
    transition-delay: 0.4s;
}

.sidebar.open .logo-details #btn {
    text-align: right;
}

.sidebar.open li .tooltip {
    display: none;
}

.sidebar.open li a .links_name {
    opacity: 1;
    pointer-events: auto;
}

.sidebar.open input {
    padding: 0 20px 0 50px;
    width: 100%;
}

.sidebar.open~.body {
    left: 250px;
    width: calc(100% - 250px);
}

.sidebar.open~.topbar {
    left: 250px;
    width: calc(100% - 250px);
}

.down-arrow {
    display: none;
}

.sidebar.open .down-arrow {
    display: block;
}

.body {
    position: relative;
    min-height: calc(100vh - 61px);
    top: 61px;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 2;
    padding: 0 20px;
}

.bx {
    padding-right: 4px;
}

.dropdown {
    overflow: hidden; /* Prevents content overflow during the transition */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Smooth transitions for max-height and opacity */
    max-height: 0; /* Start with max-height 0 */
    opacity: 0; /* Start with opacity 0 */
}

.dropdown.open {
    max-height: 1000px; /* Set a high enough value for max-height when open (adjust as needed) */
    opacity: 1; /* Fully visible when open */
}

.dropdown-item {
    padding: 10px 20px;
    background: #2a2a2a;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.down-arrow {
    transition: transform 0.5s ease; /* Smooth transition for rotation */
}

.down-arrow.rotate {
    transform: rotate(180deg); /* Rotate the arrow */
}


