@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;700&display=swap");


@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 400;
    /*src: url(icon/icon.woff2) format('woff2');*/
}

.sidebar {
    height: 400px;
    border-radius: .7em;
    background-color: #fff;
    box-shadow: 20px 30px 20px -6px rgba(0, 0, 0, .4);
    padding: 0 10px;
    transition: .2s linear;

    &[data-theme="blue"] {
        background-color: #2196F3;

        .sidebar-theme_header {
            color: #d6d6d6;
        }

        .sidebar-themes {
            background-color: #a0b8e9; /*#242424;*/
            color: #d6d6d6;

            .selector {
                background-color: #3590d9; /*#171717;*/
            }
        }

        .sidebar-menu {
            .sidebar-item {
                color: #d6d6d6;

                opacity: .8;

                &.active, &:hover {
                    background-color: #97bfdf; /*#242424;*/
                }
            }
        }
    }

    .sidebar-theme_header {
        padding: 15px 0 5px 2px;
        font-size: 14px;
        opacity: .9;
        transition: .2s linear;
    }

    .sidebar-themes {
        position: relative;
        display: grid;
        place-items: center;
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 0;
        background-color: #ebebeb;
        border-radius: .5em;
        overflow: hidden;
        transition: .2s linear;

        .selector {
            position: absolute;
            width: 40%;
            height: 70%;
            background-color: #d4d4d4;
            border-radius: .3em;
            transition: .5s linear;
            transition-timing-function: cubic-bezier(.54, -0.33, .59, 1.39);

            &.light {
                left: 7%;
            }

            &.blue {
                left: 100%;
                transform: translateX(-113%);
            }
        }

        .sidebar-theme {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            cursor: pointer;
            z-index: 1;
            width: 90%;

            .sidebar-theme_icon {
                position: relative;
                top: 2px;
                margin: 0 5px 0 0;

                span {
                    font-size: 20px;
                }
            }
        }
    }

    .sidebar-menu {
        position: relative;
        top: 15px;
        height: 290px;
        overflow-y: scroll;
        padding-inline-end: 5px;

        &::-webkit-scrollbar {
            width: 5px;
        }

        &::-webkit-scrollbar-track {
            background: transparent;
        }

        &::-webkit-scrollbar-thumb {
            background: #858585;
            border-radius: 10px;
        }

        .sidebar-item {
            display: flex;
            align-items: center;
            width: 100%;
            padding: 10px 5px;
            font-size: 14px;
            cursor: pointer;
            margin: 5px 0;
            opacity: .8;
            border-radius: .7em;
            transition: .2s linear;

            &.active, &:hover {
                opacity: 1;
                background-color: #d4d4d490; /*#009688;*/
            }

            .sidebar-item_icon span {
                font-size: 20px;
            }

            .sidebar-item_text {
                font-size: 15px;
                letter-spacing: 1px;
                margin: 0 0 0 10px;
            }
        }
    }
}


/* Sidebar blue Mode */
.sidebar[data-theme="blue"] {
    background-color: #2196F3; /*#1a1a1a;*/
    color: #f0f0f0;
}

/* Sidebar Item blue Mode */
.sidebar[data-theme="blue"] .sidebar-item {
    color: #ccc;
}

.sidebar[data-theme="blue"] .sidebar-item.active {
    background-color: #2196F3; /*rgba(255, 255, 255, 0.1);*/
    color: #fff;
}