@import "~styles/my-career-styles/variables";

.right-sidebar {
    padding: 26px 24px;

    .user-profile {
        position: relative;

        &-avatar-wrapper {
            position: relative;
            text-align: center;
            width: 112px;
            height: 112px;
            margin: 0 auto;
            border-radius: 100%;
            background: linear-gradient(270deg, #1469A2 50%, transparent 50%), linear-gradient(-90deg, #1469A2 50%, #EAECEE 50%);
            padding: 4px;

            .user-profile-avatar {
                height: 100%;
                width: 100%;
                background: #fff;
                border-radius: 50%;
                padding: 12px;

                    img {
                        width: 100%;
                        height: 100%;
                    }
            }
        }

        .fa-bell {
            position: absolute;
            right: 0;
            top: 0;
            font-size: 22px;
            color: #12A8DE;
        }

        &-label {
            margin-top: 18px;
            text-align: center;
        }

        &-name, &-role, &-label {
            color: #58595B;
            font-family: $bodyFont;
            font-size: 16px;
            letter-spacing: 0;
            line-height: 21px;
            text-align: center;
        }

        &-name {
            font-weight: 600;
            text-transform: uppercase;
        }




        &-completion {
            margin-top: 30px;

            .user-profile-sections {
                padding: 0 0 0 40px;

                .user-profile-section {
                    border: 1px solid #E0E0E0;
                    border-radius: 2px;
                    font-size: 14px;
                    font-family: $bodyFont;
                    margin-bottom: 16px;
                    padding: 5px 8px;
                    color: #9C9FA5;
                    position: relative;


                    .section-percentage {
                        position: absolute;
                        right: 4px;
                        top: 4px;
                    }

                    .section-start {
                        border-radius: 4px;
                        background-color: #12A8DE;
                        line-height: 21px;
                        font-family: $bodyFont;
                        color: #fff;
                        box-shadow: none;
                        border: 0;
                        display: block;
                        height: 40px;
                        width: 100%;
                        margin-top: 7px;
                    }

                    &.active {
                        border-color: #12A8DE;
                        font-weight: bold;
                        color: #58595B;

                        &:before {
                            background: #12A8DE;
                        }

                        &:after {
                            background: linear-gradient(0, #E0E0D8 -5%, #12A8DE 100%);
                        }
                    }

                    &:before {
                        content: '';
                        position: absolute;
                        left: -35px;
                        width: 12px;
                        height: 12px;
                        border-radius: 50%;
                        top: 0;
                        background: #E0E0E0;
                    }


                    &:after {
                        content: '';
                        position: absolute;
                        left: -30px;
                        width: 2px;
                        top: 0;
                        bottom: -18px;
                        background: #E0E0E0;
                    }

                    &:last-child:after {
                        top: unset;
                        bottom: unset;
                    }
                }
            }
        }
    }
}
