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

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

    .user-profile {
        position: relative;

        &-avatar-wrapper {
            position: relative;
            text-align: center;
            width: 112px;
            height: 112px;
            margin: 0 auto;
            border-radius: 100%;
            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;

            .fa-trophy {
                margin-left: 10px;
                color: #F3B924;
            }
        }

        &-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;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }




        &-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;
                        display: none;
                    }

                    .section-start {
                        display: none;
                        width: 100%;
                        margin-top: 7px;
                    }

                    .section-edit {
                        color: $primaryColor;
                        cursor: pointer;
                        font-size: 14px;
                        font-family: $bodyFont;
                        font-weight: normal;
                        width: 50px;

                        .fa-edit {
                            margin-left: 5px;
                        }

                        &.disabled {
                            color: #688894;
                            pointer-events: none;
                        }
                    }

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

                        .section-start, .section-percentage {
                            display: block !important;
                        }

                        &:before {
                            background: #12A8DE;
                        }

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


                    &.completed {
                        border-color: #1DBA3C;
                        font-weight: bold;
                        color: #58595B;

                        &:before {
                            background: #1DBA3C;
                        }

                        &:after {
                            background: linear-gradient(0, #1DBA3C -5%, #1DBA3C 100%);
                        }

                        .section-completed-mark {
                            width: 24px;
                            height: 24px;
                            position: absolute;
                            border: 1px solid #1DBA3C;
                            border-radius: 50%;
                            color: #1DBA3C;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                            top: 12px;
                            right: 10px;
                        }
                    }

                    &: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;
                    }
                }
            }
        }
    }
}
