/* USE THIS TO ADD ROOT COMMON STYLES (font-size, font-family, font-weight, brand color codes) */
:root {
    --sidebar-width: 200px;
    --sidebar-width-collapsed: 60px;
}

.aim-logout-block {
    margin-top: 2em;
}

.aim-navbar>.nav-item:hover {
    padding-left: 5px;
    transform: translateX(5px);
}

.aim-top-nav {
    background-color: #f5f5f5;
    left: 0;
    padding: 10px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

.brand-logo-menu {
    margin-left: 5em;
}

.collapsed ~ .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

.collapsed .hide-on-collapse {
    display: none;
    /* opacity: 0; */
    visibility: hidden;
}

.collapsed .logo-text {
    opacity: 0;
}

.collapsed .nav-item i {
    margin: 0 !important;
}

.collapsed .sidebar-top {
    margin-top: 1.25em;
    padding: 0rem !important;
}

.collapsed .toggle-btn {
    transform: rotate(180deg);
}

.logout {
    padding: 5px;
    width: 100%;
}

.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s ease;
}

.nav-item {
    border-radius: 8px;
    color: #615f5f;
    margin: 4px 10px;
    overflow: visible;
    padding: 0.25rem 0.5rem !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar-nav .dropdown .dropdown-menu {
    transform: translate3d(8px, 0px, 0px) !important;
    top: -170px !important;
}

.sidebar {
    background-color: #f5f5f5;
    height: 100vh;
    transition: all 0.3s ease;
    width: var(--sidebar-width);
    z-index: 101;
}

.sidebar.collapsed {
    text-align: left;
    width: var(--sidebar-width-collapsed);
}

.sidebar-top {
    font-size: 18px;
    margin: 10px 16px;
}
.sidebar-top > a{
    color: #2289da;
}

.toggle-btn {
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    height: 30px;
    position: absolute;
    right: -15px;
    top: 20px;
    transition: transform 0.3s ease;
    width: 30px;
    z-index: 100;
}

.top-nav-logo {
    text-align: left;
    position: relative;
}

.collapsed ~ .aim-top-nav  .top-nav-logo {
    text-align: left;
    left: 60px;
}


.btn-profile{
    display: flex;
    padding: 5px;
    border-radius: 25px;
    width: 40px;
    justify-content: center;
}

.btn-profile>i{
    padding: 5px;
}

.btn-profile::after{
    content: none;
}
.custom-dropdown-content > form{
    margin-top: 0 !important;
}

.search-input {
    width: 0px;
    padding: 0;
    border: none;
    outline: none;
    transition: width 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    cursor: pointer;
    padding: 10px;
}

.search-group.active .search-input {
    width: 100%;
    padding: 5px;
}


#navbarSupportedContent{
    display: flex;
    justify-content: right;
}
.search-group{
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


@media only screen and (max-width: 600px) {
    .collapsed .nav-item {
        margin-left: 1em;
    }
    .collapsed .sidebar-top {
        padding: 0.5em !important;
    }
    .main-content {
        margin-left: 0;
        min-height: 100vh;
        transition: all 0.3s ease;
    }
    .navbar-nav .dropdown .dropdown-menu {
        background: #e5e5e5;
        transform: translate3d(0px, 0px, 0px) !important;
    }
    .sidebar.collapsed {
        text-align: left;
    }
    .top-nav-logo {
        display: none;
    }
    .mobile-top-nav-row{
        justify-content: center;
    }
    .search-container{
        overflow: scroll;
    }

    .col-user-icon{
        text-align: center;
    }

    .collapsed ~ .aim-top-nav .top-nav-logo {
        text-align: center;
        left: 30%;
        display: block;
    }
}


.custom-dropdown {
    position: relative;
    display: inline-block;
}

.custom-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 150px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    padding: 8px 0;
    right: 0;
}

.custom-dropdown-content a {
    color: black;
    padding: 8px 12px;
    display: block;
    text-decoration: none;
}

.custom-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.custom-dropdown.show {
    display: block;
}

.dropdown-button-profile {
    background: #38496b;
    color: white;
    border: none;
}

.show-dropdown{
    display: block;
}
