﻿
.sidebar-container {
    background-color: #F5F5F5;
    width: 100%;
    max-width: 275px;
    position: fixed;
    z-index: 1001;
    height: 100%;
    top: 0;
    left: -275px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    padding-left: 10px;
    transition: left ease-in-out .3s;
    box-shadow: 2px 1px 20px 1px rgba(0,0,0,0.3);
    -webkit-box-shadow: 2px 1px 20px 1px rgba(0,0,0,0.3);
    -moz-box-shadow: 2px 1px 20px 1px rgba(0,0,0,0.3);

    &.is-showing {
        left: 0;
    }

    .border-btm {
        border-bottom: 1px solid #EAEAEA;
    }

    .close-btn {
        display: flex;
        justify-content: flex-end;
        color: #828282;
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .domain-name {
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .header-btn-container {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .auth-container {
            margin-top: 15px;
            margin-bottom: 15px;
            display: flex;
            column-gap: 10px;
            font-weight: bold;

            .login-btn,
            .logout-btn {
                background-color: #BDBDBD;
                padding: 5px 15px;
                border-radius: 2px;
            }

            .signup-btn {
                background-color: #F99521;
                color: white;
                padding: 5px 15px;
                border-radius: 2px;
            }
        }

        .wishlist-btn {
            background-color: white;
            padding: 5px;
            border: 1px solid #e1e1e1;
            border-radius: 2px;

            i {
                color: red;
                margin-right: 1px;
            }
        }
    }



    a {
        color: #333333;
    }

    .menu-list-container {
        padding-top: 10px;

        ul {
            list-style: none;
            padding: 0;

            li {
                &.topic-li {
                    margin-bottom: 5px;
                }

                > div:first-child {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    margin: -10px;
                    margin-top: 0px;
                    margin-bottom: 0px;
                    padding: 5px 10px;

                    &.topic-main-cat {
                        background-color: #EFEFEF;
                        transition: background-color ease-in-out .3s;
                    }
                }

                .inner-items {
                    overflow-y: hidden;
                    transition: height ease-in-out .3s;
                    margin-left: -10px;
                    margin-right: -9.4px;

                    > div {
                        background-color: #e4e4e4;
                        padding: 0 10px 0 35px;
                    }
                }

                i {
                    color: #B3B3B3;
                }
            }
        }

        .item-row {
            > div:first-child {
                display: flex;
                align-items: start;
                justify-content: space-between;
                width: 100%;
            }

            a {
                > div:first-child {
                    display: flex;
                    align-items: center;

                    > span {
                        display: flex;
                        align-items: center;

                        &:first-child i {
                            margin-right: 10px;
                        }
                    }
                }
            }

            .count-grey {
                background-color: #b3b3b3;
                color: #333333;
                border-radius: 3px;
                padding: 2px 7px;
                font-size: 9px;
                position: relative;
                margin-left: 5px;
                top: -1px;
            }

            &.selected {
                a {
                    color: #F99521;
                    font-weight: bold;

                    i {
                        color: #F99521;
                    }

                    .count-grey {
                        background-color: #F99521;
                        color: white;
                    }
                }
            }

            &.see-more-topic {
                font-size: 12px;

                > div > a > div {
                    /* padding: 2px 10px;
                    background-color: #ffa603;*/
                    color: grey;
                    border-radius: 3px;
                }
            }
        }

        .collapse-toggle {
            .fa-chevron-right {
                transition: transform ease-in-out .3s;
            }

            &.is-showing {
                &.topic-main-cat {
                    background-color: #EDECF5;
                }

                .fa-chevron-right {
                    transform: rotate(90deg);
                }
            }
        }
    }


    .inner-items {
        .item-row {
            padding-top: 4px;
            padding-bottom: 4px;

            &:first-child {
                padding-top: 8px;
            }
        }

        &.no-padding-bottom > div > .item-row:last-child {
            padding-bottom: 0px;
        }

        &:not(.no-padding-bottom) > div > .item-row:last-child {
            padding-bottom: 8px;
        }
    }
}

.sidebar-backdrop {
    background-color: black;
    z-index: 1000;
    opacity: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    transition: opacity ease-in-out .3s;

    &.is-showing {
        opacity: .6;
        pointer-events: all;
    }
}
