@import '../Variable.scss';

.NavbarRight {
    background: $Background-1;
    padding: 0;

    .Logo {
        width: 100%;
        text-align: center;
        border-bottom: solid 1px $Border-Color-1;
        position: relative;

        a {
            color: #f1f2f7;
            font-weight: 900;
            font-size: 18px;
            text-decoration: none;
            display: block;
        }

        img {
            max-width: 85px;
            width: 100%;
        }

        .icon-Menu-right {
            position: absolute;
            left: 5px;
            top: 0px;
            font-size: 17px;
            cursor: pointer;
            color: $ColorText-3;
            display: none;
        }
    }

    .Menu-Title {
        color: $ColorText-5;
        font-weight: 600;
        font-size: 13px;
        width: 100%;

        hr {
            margin: 0 15px;
            border-top: solid 1px $Border-Color-5;
        }

        span {
            margin: 15px 20px 10px 5px;
            display: block;
        }
    }

    ul {
        width: 100%;

        li {
            width: 100%;
            position: relative;

            a {
                color: $ColorText-3;
                font-size: 13px;
                font-weight: 500;
                display: flex;
                align-items: center;
                padding: 10px 25px 10px 10px;
                margin-bottom: 5px;

                i {
                    font-size: 20px;
                    color: $ColorText-6;
                    transition: color .15s;
                    position: relative;
                    top: 2px;
                }

                span {
                    margin-right: 15px;
                }

                .number {
                    color: $ColorText-4;
                    background: $Background-5;
                    font-size: 9px;
                    position: absolute;
                    left: 10px;
                    padding: 0;
                    margin: 0;
                    width: 25px;
                    height: 25px;
                    border-radius: 100%;
                    text-align: center;
                    line-height: 27px;
                }

                &:hover {
                    background: $Background-5;
                    color: $ColorText-2;
                    border-radius: 0;

                    i {
                        color: $ColorText-2;
                        transition: color .15s;
                    }

                    .number {
                        background: $Background-1;
                    }
                }
            }


            .active {
                background: $Background-5 !important;
                background-color: $Background-5 !important;
                color: $ColorText-2 !important;
                border-radius: 0 !important;

                i {
                    color: $ColorText-2 !important;
                    transition: color .15s !important;
                }

                .number {
                    background: $Background-1;
                }
            }

            .hassub {
                content: "\f229";
                position: absolute;
                left: 10px;
                top: 9px;
                color: $ColorText-3;
                display: inline-block;
                font-family: "bootstrap-icons" !important;
                width: 25px;
                height: 25px;
                text-align: center;
                line-height: 25px;
                border-radius: 100%;
                cursor: pointer;
                font-size: 13px;
                transition: transform 0.5s;

                &:hover {
                    background: $Background-5;
                }
            }

            .TrueSub {
                transform: rotate(180deg);
                transition: transform 0.5s;
            }

            .FalseSub {
                transform: rotate(0deg);
                transition: transform 0.5s;
            }

            ul {
                padding: 0;
                background: $Background-6;
                display: none;
                width: 100% !important;

                a {
                    margin-bottom: 0;
                    padding: 10px;

                    span {
                        margin: auto;
                    }
                }
            }
        }
    }

    .night-mode {
        width: 100%;
        background: $Background-6;
        padding: 15px 25px 17px 10px;
        margin-top:10px;

        .form-switch {
            position: relative;
            padding: 0;

            i {
                font-size: 20px;
                transition: color 0.15s;
                position: relative;
                top: 2px;
                color: $ColorText-6;
            }

            span {
                color: $ColorText-3;
                margin-right: 10px;
                font-size: 13px;
                font-weight: 600;
            }

            input {
                margin: 0;
                position: absolute;
                left: 10px;
                top: 7px;
                border: none;
                box-shadow: none;
                background: $Background-1;
                background-repeat: no-repeat;
                background-position: right;
                background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
                &:checked {
                    background: $Background-5;
                    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e");
                    background-repeat: no-repeat;
                    border: none;
                    box-shadow: none;
                }
            }
        }
    }
}

.NavbarRight-tablet {
    position: fixed;
    z-index: 9999;
    width: 250px;
    height: 100%;
    overflow: auto;

    .icon-Menu-right {
        display: block !important;
    }
}

.NavbarRight-close {
    width: auto;
    position: static;

    .Logo {
        img {
            width: 60px;
            padding: 8px;
        }
    }

    .Menu-Title {
        display: none
    }

    .night-mode {
        padding: 10px 5px;
        .form-switch {
            text-align:center;
            i {
                display: block;
                margin-bottom:15px;
            }

            span {
                display: none
            }

            input {
                position: static;
            }
        }
    }

    ul {
        li {
            .hassub {
                display: none
            }

            a {
                display: block;
                padding: 10px 0;
                text-align: center;
                margin-bottom: 15px;

                span {
                    display: none !important;
                }
            }
        }
    }
}
