html, body {
    display: flex;
    height: 100vh;
    margin: 0;
    width: 100vw;
    font-family: 'Open Sans', sans-serif;
    background-color: #eeeef6;
}

/* Sidebar Styles */
#sidebar {
    width: 260px;
    transition: width 0.3s ease;
    display: flex;
    flex-direction: column;
}

#sidebar.collapsed {
    width: 60px;
}

/* Sidebar Content Transition */
#sidebar .text, #sidebar.collapsed .image {
    transition: opacity 0.3s ease;
}

#sidebar.collapsed .text, #sidebar.collapsed .image {
    display: none;
    pointer-events: none;
}

#sidebar .image {
    max-height: 50px;
    max-width: 50px;
}

/* Sidebar collapse behavior for smaller screens */
@media (max-width: 768px) {
    #sidebar {
        /*width: 50px;*/
        display: none; /* Hides the sidebar */
        width: 0; /* Ensures no space is taken */
        position: absolute; /* Removes it from the layout */
    }

    #sidebar .text {
        display: none;
    }

    #sidebar .image {
        /*max-height: 30px;*/
        /*max-width: 30px;*/
        /*object-fit: contain; !* Ensures the image keeps its aspect ratio *!*/
        display: none;
    }

    #toggleButton {
        display: none;
    }
}

/* Main Content Adjustments */
#main-content {
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

#main-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome, Edge, and Safari */
}

/* Toggle Button Styles */
#toggleButton {
    background: none;
    border: none;
    color: #007bff !important;
    cursor: pointer;
    transition: width 0.3s ease;
}

/* Company Section in Sidebar */
#company-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    height: 60px;
}
@media (max-width: 764px) {
    #company-section {
        display: none;
    }
    .list-group{
        display: none;
    }
}

#sidebar.collapsed #company-section {
    justify-content: center;
}

/* Sidebar List Items */
.list-group-item {
    border: none;
    color: #007bff;
    display: flex;
    align-items: center;
    font-size: 17px;
}

.list-group-item i {
    font-size: 1.3rem;
    margin-right: 8px;
}

.list-group-item:hover i {
    color: #9ca3af;
}

.list-group-item:hover {
    color: #9ca3af; /* Sidebar text hover color */
}

.page-name{
    max-font-size: 15px !important;
}
@media (max-width: 768px) {
    .page-name {
        font-size: 15px !important; /* Adjust to your desired font size for smaller screens */
    }
}
/* Custom Tooltip Style */
.tooltip-inner {
    background-color: rgba(76, 177, 241, 0.87); /* Light sky blue with transparency */
    color: white; /* White text */
    border-radius: 4px; /* Rounded corners for the tooltip */
    padding: 8px 12px; /* Add some padding to the tooltip */
    font-size: 14px; /* Optional: Adjust font size */
    z-index: 1030; /* Lower z-index for tooltips */
}

.tooltip.bs-tooltip-top .arrow::before,
.tooltip.bs-tooltip-bottom .arrow::before,
.tooltip.bs-tooltip-left .arrow::before,
.tooltip.bs-tooltip-right .arrow::before {
    border-top-color: rgba(135, 206, 250, 0.7); /* Arrow color matches the tooltip background */
    border-bottom-color: rgba(135, 206, 250, 0.7);
    border-left-color: rgba(135, 206, 250, 0.7);
    border-right-color: rgba(135, 206, 250, 0.7);
}

/* Ensure the dropdown has a higher z-index */
.dropdown-menu {
    z-index: 1050; /* Higher z-index for dropdown */
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1040;
    background-color: #eeeef6 !important;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    font-family: 'Noto Sans', sans-serif;
    font-style: italic;
    height: 60px;
}
<!--/--------------------------------------------------------------------------/-->
/* Hide the sidebar by default on large screens */
@media screen and (min-width: 764px) {
    .sidenav {
        display: none;
    }
}

/* The side navigation menu */
.sidenav {
    position: fixed;
    top: 60px; /* Starts below the top navbar */
    left: 0;
    width: 0;
    height: calc(100% - 60px); /* Adjust height to fit under the top navbar */
    background-color: #fffefe;
    overflow-x: hidden;
    padding-top: 20px; /* Adjusted padding */
    transition: 0.5s;
    z-index: 1000; /* Ensure it stays above other elements */
}

.sidenav a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 15px;
    color: #007bff;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: rgba(86, 184, 235, 0.89);
}

.sidenav .closebtn {
    position: absolute;
    top: 3px; /* Adjusted to avoid overlap */
    right: 5px;
    font-size: 30px;
}

.sidenav .sidenav-text{
    color: #007bff;
    position: absolute;
    font-style: italic;
    font-size: 17px;
    top: 25px;
    padding-left: 15px;
}

/* Show the open button only on small screens */
@media screen and (max-width: 764px) {
    .menu-icon {
        display: block;
        font-size: 20px;
        cursor: pointer;
        color: #007bff;

    }
}

@media screen and (min-width: 764px) {
    .menu-icon {
        display: none;
    }
}
