#sidebar {
    z-index: 100;
    background-color: #030508;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 240px;
    transform: translateX(-100%);
    overflow-y: auto;
}

#sidebar.ready {
    transition: transform .3s;
}

#sidebar::-webkit-scrollbar {
    width: 3px;
    height: 3px;
}

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

#sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    transition: background .3s;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: transparent;
    transition: background .3s;
}

#sidebar:hover::-webkit-scrollbar-thumb {
    background: #c20000;
}

#sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

#sidebar.active {
    transform: translateX(0);
}

#sidebar .brand-logo {
    width: 100%;
    position: relative;
    padding: 0 25px;
    height: 60px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

#sidebar .brand-logo img {
    max-width: 100%;
}

#sidebar .user-details {
    border: 1px solid transparent;
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.2);
    padding: 1.1rem 1rem;
    margin-top: 5px;
    color: #fff;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
}

#sidebar .user-details span.title {
    font-size: 16px;
    margin: 0;
    margin-left: 5px;
}

#sidebar .user-details span.username {
    border-bottom: 1px solid #ff0000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: .05em;
    line-height: normal;
    margin-left: 5px;
    text-transform: uppercase;
}

#sidebar .sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

#sidebar .sidebar-menu li:hover a, #sidebar .sidebar-menu li.active a {
    border-left-color: red;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-menu li a {
    padding: 13px 5px 13px 15px;
    display: block;
    border-left: 3px solid transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    transition: background-color .3s, border-left-color .3s;
}

#sidebar .sidebar-menu li a:hover {
    text-decoration: none;
}

#sidebar .sidebar-menu li a i {
    font-size: 15px;
    margin-right: 12px;
    width: 18px;
}

#sidebar .sidebar-menu li a span {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: normal;
    opacity: .8;
    text-transform: uppercase;
}

#topbar {
    z-index: 101;
    margin-left: auto;
    background-color: #030508;
    transition: width .3s;
    width: 100%;
    height: 60px;
}

#topbar .sidebar-toggler i {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

#topbar ul li .dropdown-menu {
    background-color: #030508;
    width: 228px;
    border-radius: 0px;
    padding: 0;
    color: #fff;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#topbar ul li .dropdown-menu .list-group-item {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#topbar ul li .dropdown-menu .list-group-item:last-child {
    border-bottom: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

#topbar ul li .dropdown-menu h6 {
    color: #fff;
    font-size: 15px;
}

#topbar ul li .dropdown-menu .dropdown-item {
    padding: .35rem 1rem;
    color: #fff;
    display: block;
    width: 100%;
    clear: both;
    font-weight: 400;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

#topbar ul li .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
}

#topbar ul li .dropdown-menu .dropdown-item a {
    text-decoration: none;
    color: #fff;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
    z-index: 1;
    font-size: 15px;
    line-height: 22.5px;
    letter-spacing: 0.48px;
    will-change: opacity, transform;
}

#topbar ul li .dropdown-menu .dropdown-item a span {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: normal;
    opacity: .8;
    text-transform: uppercase;
}

#topbar ul li .dropdown-menu .dropdown-divider {
    margin: 0;
    border-top-color: rgba(255, 255, 255, 0.14);
}

#topbar ul li a {
    position: relative;
}

#topbar ul li a i {
    font-size: 15px;
}

#topbar ul li a .badge {
    position: absolute;
    font-size: 12px;
    border-radius: 50%;
    right: 5px;
    top: 5px;
}

#topbar ul li a .badge.badge-danger {
    background-color: red;
}

#topbar ul li a .badge.notification {
    height: 14px;
    width: 14px;
    font-size: 10px;
    display: block;
    right: 5px;
    top: 5px;
}

#topbar ul li a.dropdown-toggle::after {
    display: none;
}

#topbar ul li a .topbar-user {
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .12em;
    line-height: normal;
    opacity: .8;
    text-transform: uppercase;
    vertical-align: middle;
}

#topbar ul li a .topbar-user img {
    height: 24px;
    width: 24px;
}

@media only screen and (max-width: 767px) {
    #sidebar {
        height: calc(100vh - 60px);
        top: 60px !important;
    }

    #sidebar.active ~ #topbar,
    #sidebar.active + #topbar,
    #sidebar.active + #content,
    #sidebar.active ~ #content {
        width: 100%;
    }
}
