@import "../components/colors";
@import "../components/animation";
@import "../components/mixins";

.stm-lms-user_avatar {
    margin-bottom: 26px;
    img {
        padding: 3px;
        vertical-align: top;
        border-radius: 50%;
    }
}

.load-my-courses {
    margin: 30px 0 50px;
}

.student_name {
    margin: 20px 0 30px;
}

.stm_lms_user_side {
    padding: 0 15px;
    text-align: center;
    h3 {
        margin-bottom: 3px;
        font-size: 18px;
        font-weight: 600;
    }
}

.stm-lms-user_rating {
    margin: 0 0 20px;
    .star-rating {
        display: inline-block;
        margin-right: 5px;
        width: 100px;
        overflow: hidden;
    }
    strong.rating {
        position: relative;
        top: 4px;
        display: inline-block;
        vertical-align: top;
        font-size: 15px;
    }
    &__total {
        position: relative;
        top: -2px;
        color: $grey-text;
    }
}

.stm-lms-user_message_btn {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 10px 0 22px;
    &.public_messages {
        min-height: 340px;
    }
    .btn {
        min-width: 180px;
        background-color: $green !important;
    }
    &__counter {
        position: absolute;
        top: -9px;
        right: 0;
        display: block;
        min-width: 26px;
        height: 26px;
        border-radius: 13px;
        line-height: 26px;
        background-color: $main_color;
        color: #fff;
        font-style: normal;
        font-size: 12px;
        box-shadow: 0 4px 0 rgba(0,0,0,0.08);
        text-align: center;
        z-index: 35;
    }
}

.stm-lms-user_create_announcement_btn,
.stm-lms-user_edit_profile_btn {
    margin-bottom: 10px;
    a {
        color: $grey-text;
        text-decoration: none !important;
        i {
            position: relative;
            top: 1px;
            margin-right: 2px;
            font-size: 16px;
            transition: .3s ease;
        }
        span {
            position: relative;
            top: 4px;
            padding-bottom: 3px;
            display: inline-block;
            vertical-align: top;
            line-height: 14px;
            transition: .3s ease;
        }
        &:hover {
            color: $main_color;
            i.fa-cog {
                animation: rotating 2s linear infinite;
            }
            span {
                border-bottom-color: $main_color;
            }
        }
    }
    &.active a {
        color: $main_color;
        i.fa-cog {
            animation: rotating 2s linear infinite;
        }
    }
}

@include breakpoint(tablet) {
    .stm_lms_user_side {
        margin: 0 0 50px;
    }
    .stm_lms_user_info_top h1 {
        max-width: 60% !important;
    }
    .stm-lms-user_message_btn.public_messages {
        min-height: auto;
    }
}

@include breakpoint(mobile) {
    .stm_lms_user_info_top {
        flex-wrap: wrap;
        h1 {
            max-width: 100% !important;
        }
        &__socials {
            margin: 15px 0 0 0 !important;
            text-align: left;
        }
    }
}

.stm-lms-user_edit_profile_btn,
.stm-lms-user_create_announcement_btn {
    margin-bottom: 18px;
}