//@use '../variables' as *;
@use 'globals' as *;

aside {
    &.main-sidebar {
        position: fixed;
        min-height: 100%;
        height: 100vh;
        overflow-y: hidden;
        z-index: 1038;
        top: 0;
        width: 320px;
        background: $white;
        padding: 0 10px;
        box-shadow: 0 0 8px #ccc;
        @media (max-width: 991px) {
            width: 200px;
        }

        & .top-area {
            height: 100%;
        }

        & .logo {
            width: 220px;
            text-align: center;
            margin: 27px auto 55px auto;
        }

        & .side-bar {
            height: 83%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            & .menu-title {
                color: $grey;
                font-size: 16px;
                line-height: 22px;
                font-weight: 300;
                font-family: $nunito;
                margin-left: 9px;
                margin-bottom: 5px;
            }

            & ul {
                list-style: none;
                padding: 0;
                margin: 0 0 50px 0;

                & li {
                    display: block;
                    margin-bottom: 4px;

                    &:hover {

                        & a {
                            color: $blue;
                            background-color: $cyan;
                            text-decoration: none;
                        }
                    }

                    &.active {

                        & a {
                            color: $blue;
                            font-weight: bold;
                            background-color: $cyan;
                            text-decoration: none;
                        }
                    }

                    & a {
                        color: $darkblue;
                        font-size: 14px;
                        line-height: 18px;
                        font-family: $open;
                        display: block;
                        padding: 10px;
                        background-color: $white;
                        border-radius: 10px;
                        text-decoration: none;

                        & i {
                            margin-right: 10px;
                            width: 20px;
                            text-align: center;
                        }
                    }
                }
            }

            & .user-details {
                & .user {
                    &-box {
                        padding: 15px 10px;
                        border-radius: 10px;
                        background-color: $cyan;
                        display: flex;
                        flex-wrap: wrap;
                        align-items: center;
                        margin-bottom: 20px;

                        & i {
                            color: $darkblue;
                            margin-right: 5px;
                        }


                        &--image {
                            width: 45px;
                            height: 45px;
                            background-size: cover;
                            background-repeat: no-repeat;
                            background-position: center;
                            border-radius: 50%;
                            margin-right: 20px;
                        }

                        &--name {
                            font-size: 14px;
                            font-family: $open;
                            line-height: 22px;
                            font-weight: 300;
                            color: $grey;
                        }
                    }
                }
            }
        }
    }
}

.page-title {
    margin-top: 0;
}

