/*
    Aside Bar Style
*/
#aside {
    background-color: var(--aside-background);
    width: var(--aside-width);
    height: 100vh;
    position: fixed;
    top: 0px;
    bottom: 0px;
    z-index: 999;
    z-index: 1000;
    box-shadow: 0px var(--navbar-height) 10px rgba(0, 0, 0, 0.05);
    padding-top: calc(var(--navbar-height) + 5px);
    .aside-brand {
        padding: 8px 12px;
        height: calc(var(--navbar-height) - 1px);
        position: fixed;
        border-bottom: 1px solid var(--aside-brand-border-color);
        top: 0px;
        width: var(--aside-width);
        background-color: var(--aside-background);
        z-index: 1000;
        text-align: center;
        img {
            width: 75%; //calc(var(--aside-width) / 2);
            height: 100%;
            object-fit: contain;
        }
        .name {
            color: var(--navbar-color);
            opacity: 0.8;
            margin: 0px 8px;
        }
    }

    li {
        list-style: none !important;
    }

    // ul li a
    .side-menu {
        padding: 0px 10px;
        .side-item-category {
            color: var(--aside-color);
            margin: 10px 5px;
            letter-spacing: 0.05em;
            opacity: 0.7;
            cursor: default;
            font-size: 11px;
            text-transform: uppercase;
            font-weight: 600;
        }
        .side-item {
            margin-bottom: 5px;
            a {
                cursor: pointer;
                display: block;
                padding: 8px 15px;
                position: relative;
                font-size: 0.9375rem;
                margin-bottom: 1px;

                transition: background-color 0.3s linear;
                border-radius: var(--border-radius);
                span {
                    color: var(--aside-color);
                    transition: color 0.3s linear;
                }

                &:hover {
                    //  background-color: var(--aside-link-hover-background);

                    .side-name-lable {
                        //   border-color: var(--aside-link-active-color) !important;
                    }
                }
                &:hover span {
                    //   color: var(--aside-link-hover-color);
                    color: var(--aside-link-active-background) !important;
                }
                .arrow-icon {
                    line-height: 20px;
                    font-size: 13px;
                    padding-top: 2px;
                    transition: all 0.1s linear;
                }
                .rotate-icon {
                    transform: rotate(0deg) !important;
                }
                .side-icon {
                    display: inline-block;
                    width: 15px;
                    font-size: 16px;
                    text-align: center;
                }
            }
            // Active Link
            .active {
                span,
                a,
                i,
                svg {
                    // color: var(--aside-link-active-color) !important;
                    color: var(--aside-link-active-background) !important;
                    font-weight: 600;
                }
                // Solid Style Before Link
                //   background-color: var(--aside-link-active-background) !important;
                .side-name-lable {
                    // border-color: var(--aside-link-active-color) !important;
                }
            }

            // Sub Menu
            .sub-menu {
                display: none;

                .sub-item {
                    a {
                        font-size: 0.9rem;
                        padding: 6px 12px;
                    }

                    .side-icon {
                        display: none;
                    }

                    .side-name-lable {
                        border-right: 2px solid var(--aside-link-active-background);
                        padding-right: 20px;
                        padding-top: 15px;
                        padding-bottom: 15px;
                        // border-radius: 3px !important;
                    }
                }
            }
            .show {
                display: block;
            }
        }
    }

    // Inputs Search
    #aside-form {
        input {
            margin-top: 12px;
        }
        .form-control {
            background-color: var(--aside-background);
            border: 1px solid var(--aside-color);
            color: var(--aside-color);
        }
    }

    /* Scroll */
    overflow-x: hidden !important;
    overflow-y: scroll !important;

    &::-webkit-scrollbar {
        width: 4px;
    }

    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--color-second);
        border-radius: var(--border-radius);
    }

    &::-webkit-scrollbar-thumb:hover {
        background: var(--aside-color);
    }
}

.show-scroll {
    &::-webkit-scrollbar-track {
        background: var(--aside-background);
    }
}
@media (max-width: 1024px) {
    .aside-overlay {
        background-color: rgba(0, 0, 0, 0.5) !important;
        position: fixed;
        top: 0px;
        bottom: 0px;
        right: 0px;
        left: 0px;
        width: 100%;
        display: none;
        z-index: 999;
    }
}
