@import "../../../../abstracts/abstracts";

nav.navbar {
    #dbq-navbar-right {
        float: right;
        display: flex;
        align-items: center;
        margin-right: 30px;
        max-height: 60px;

        .dbq-navbar-button,
        [class*="class-list-menu-"], 
        [class*="toggle-button"] {
            background: transparent;
            float: left;
            width: 24px;
            height: 24px;
            padding: 0;
            margin: 18px 15px;
            line-height: 14px;
            font-size: 14px;
            border: none;
            position: relative; 
            cursor: pointer;

            svg {
                width: auto;
                height: auto;
                max-width: 24px;
                max-height: 24px;
                fill: $text-color-default;
            }
        }

        .dbq-badge {
            position: absolute;
            top: 0;
            right: 0;
            font-size: 12px;
            font-weight: 500;
            background-color: #FF4D4D;
            color: #ffffff;
            border-radius: 8px;
            border: none;
            padding: 5px 6px;
            line-height: 1;
            @include shadow;
        }

        .dbq-multi-panel-toggle-button {

            // Change the position of the badge for the multi panel toggle button.
            // Note that these values were determined by aligning the badge with the notification center badge.
            .dbqmp-badge {
                top: -12px;
                right: -9px;
                user-select: none;
            }
        }

        #dbq-notification-center-menu {
            .dbqnc-badge {
                position: absolute;
                top: 8px;
                right: 8px;
                font-size: 12px;
                color: #ffffff;
                border-radius: 8px;
                border: none;
                padding: 5px 6px !important;
                line-height: 1 !important;
                @include shadow;

                &.dbqnc-badge-red {
                    background-color: #FF4D4D;
                }
            }
        }
        .class-list-menu-user {
            // Styling for when we use a Profile picture as an icon
            //width: 32px;
            //height: 32px;
            //margin: 14px 40px 14px 15px;
            img {
                width: 30px;
                height: 30px;
                border-radius: 50px;
                border: 1px solid #707070;
            }
        }

        #class-list-menu {

            > .dropdown-menu {
                min-width: 216px;
                top: 50px;
                right: 15px;

                &:after,
                &:before {
                  bottom: 100%;
                  border: solid transparent;
                  content: " ";
                  height: 0;
                  width: 0;
                  position: absolute;
                  pointer-events: none;
                }
                
                &:after {
                  border-color: rgba(255, 255, 255, 0);
                  border-bottom-color: $dropdown-background-color;
                  border-width: 6px;
                  right: 36px;
                  margin-left: -6px;
                }
            }

            .dropdown-menu {
                display: none;
                overflow: visible;
                width: min-content;
                border: none;
                position: absolute;
                z-index: 2000;
                text-align: left;
                list-style: none;
                background-color: $dropdown-background-color;
                border-radius: 15px;
                padding: 0;
                @include shadow(0px, 0px, 5px);

                &.show {
                    display: block;
                }
                

                .username {
                    font-weight: 600;
                    line-height: 1;
                    margin: 20px 15px 15px 15px;
                    font-size: 14px;
                    background: transparent;
                    color: $text-color-default;
                }

                li {
                    width: auto;
                    display: block;
                    position: relative;
                    a {
                        color: $dropdown-text-color;
                        text-decoration: none;
                        padding: 5px 16px;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        white-space: nowrap;
                        font-size: 12px;
                        width: 100%;
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        font-family: $font-family-default;
                        font-weight: 400;

                        svg {
                            margin-right: 15px;
                            padding: 0;
                            fill: $dropdown-text-color;
                        }
                        &:hover {
                            color: #000;
                            background-color: #EEEEEE;
                            svg {
                                fill: #000;
                            }
                        }
                    }

                    &[role="presentation"],
                    &.dropdown-submenu {
                        height: 30px;
                        width: 100%;
                        border-radius: unset;
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        margin-bottom: 5px;
                        padding: 0;
                        margin: 0;
                        float: unset;
                    }

                    &.dbq-account-dropdown-divider {
                        display: none;
                    }

                    &.dropdown-submenu {
                        .dropdown-menu {
                            top: -15px;
                            right: 100%;
                            left: unset;
                            margin: 0;
                            //border-radius: 0;

                            li {
                                &:first-child {
                                    margin-top: 15px;
                                }
                            }
                        }

                        &:hover {
                            > .dropdown-toggle {
                                background-color: #EEEEEE;
                                color: #000;
                                svg {
                                    fill: #000;
                                }
                            }
                            
                            .dropdown-menu {
                                display: block;
                            }
                        }
                    }

                    &:last-child {
                        margin-bottom: 15px;
                    }
                }
            }
        }
    }
}