@use '../../utils' as *;

/*----------------------------------------*/
/*  4.11 Demo css
/*----------------------------------------*/

.bd-dashboard-area {
    margin-top: -65px;

    @media #{$md,$sm,$xs} {
        margin-top: 65px;
    }
}

.bd-dashboard-area {
    .table> :not(caption)>*>* {
        padding: 15px 15px;
    }
}

.bd-dashboard-profile-user {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;

    @media #{$md} {
        gap: 20px;
    }

    @media #{$xs} {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        text-align: center;
    }

    .thumb {
        width: 160px;
        height: 160px;
        border: 4px solid var(--bd-white);
        @include border-radius(8px);

        img {
            width: 100%;
            height: 100%;
        }
    }

    .content {
        .name {
            color: var(--bd-white);
            font-size: 24px;
            margin-bottom: 5px;
        }

        .designation {
            color: rgba($color: $white, $alpha: .85);
            margin-bottom: 10px;
        }

        .bd-course-rating-text span {
            color: var(--bd-white);
        }
    }

    .bd-dashboard-profile-meta {
        display: flex;
        align-items: center;
        gap: 10px 20px;
        flex-wrap: wrap;

        @media #{$xs} {
            justify-content: center;
        }

        .enrolled-course,
        .complete-course {
            display: flex;
            align-items: center;
            gap: 0 10px;
            color: var(--bd-white);
        }
    }
}

.bd-dashboard-profile {
    display: flex;
    align-items: end;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    top: 70px;
    width: calc(100% - 210px);
    left: 50%;
    transform: translateX(-50%);

    @media #{$md} {
        width: calc(100% - 40px);
    }

    @media #{$sm,$xs} {
        flex-wrap: wrap;
        gap: 30px;
        width: calc(100% - 50px);
        justify-content: center;
    }
}


/* New */
.bd-dashboard-earnings-box,
.bd-dashboard-status-box {
    .bd-counter-title {
        font-size: 38px;
    }

    .bd-counter-style-six .bd-counter-content {
        padding: 30px 30px;

        @media #{$md} {
            padding: 15px 15px;
        }
    }
}

.bd-dashboard-course-table {
    overflow-x: auto;
}

/* old */
.bd-dashboard-main {
    @include border-radius(6px);
    background: var(--bd-white);
    box-shadow: 0px 8px 40px 0px rgba(0, 0, 0, 0.08);
    padding: 30px 30px;
    position: relative;

    @media #{$lg} {
        padding: 20px 20px;
    }

    @media #{$md,$sm,$xs} {
        padding: 15px 15px;
    }
}

.bd-dashboard-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;

    @media #{$md} {
        grid-template-columns: repeat(2, 1fr);
    }

    @media #{$sm,$xs} {
        grid-template-columns: repeat(1, 1fr);
    }
}

.bd-dashboard-inner {
    position: relative;
    z-index: 4;

    @media #{$sm,$xs} {
        padding: 0px;
    }
}

/* Dashboard Menu */
.bd-dashboard-menu {
    ul {
        &> {
            li {
                margin-top: 12px;
                margin-bottom: 12px;
                list-style: none;

                &>a {
                    @include flexbox();
                    align-items: center;
                    gap: 10px;
                    color: var(--bd-body-text);
                    font-size: 16px;
                    font-weight: 500;
                    background: var(--bd-bg-primary);
                    @include border-radius(6px);
                    padding: 9px 20px;

                    &:hover {
                        color: var(--bd-primary);
                        background: var(--primary-rgb-05);
                    }

                    &.active {
                        color: var(--bd-primary);
                        background: var(--primary-rgb-05);
                    }
                }
            }
        }
    }

    &-title {
        font-size: 16px;
        letter-spacing: 0;
        margin-top: 30px;
        margin-bottom: 20px;
        color: var(--bd-theme-black);
        font-weight: var(--bd-fw-sbold);
    }
}

/* Dashboard Profile */
.bd-dashboard-title-inner {
    margin-bottom: 30px;
}

.bd-dashboard-title {
    margin-bottom: 0;
}

.bd-dashboard-card-wrapper {
    padding: 25px 30px;
    @include border-radius(6px);
    margin-bottom: 20px;
    position: relative;
    background: #f7f7f7;
}

/* Dashboard Review  */
.bd-dashboard-review-item {
    border: 1px solid var(--bd-border-primary);
    padding: 15px 15px;
    @include border-radius(6px);

    .title {
        border-bottom: 1px solid var(--bd-border-primary);
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
}

.dropdown {
    &.filter-user {
        .filter-user-btn {
            font-size: 16px;
            border: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            color: #525258;
            gap: 5px;
            font-weight: 500;
            background-color: var(--bd-white);
            height: 50px;
            padding: 5px 25px;
            border: 1px solid var(--bd-border-primary);
        }
    }

    .dropdown-menu {
        li {
            margin-top: 5px;
            margin-bottom: 5px;
        }
    }

    .dropdown-item {
        font-size: 14px;
    }
}

/* Dashboard forms Profile */
.bd-dashboard-profile-inner {
    .form-group {

        input,
        textarea {
            border: 1px solid var(--bd-border-primary);
            color: var(--bd-theme-black);
            height: 55px;
            box-shadow: 0 15px 30px 0 rgb(246, 246, 246);

            &:focus {
                border-color: var(--bd-primary) !important;
                box-shadow: none !important;
            }
        }
    }
}

/* Dashboard forms Social */
.bd-social-input-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 0;

    .bd-social-input {
        box-shadow: none !important;
        flex: 1;
    }

    .bd-social-input-box {
        border: 1px solid var(--bd-border-primary);
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        z-index: -1;
    }
}

.bd-social-input-with-links {
    .text-input-with-addons-links {
        border: 0;
        display: flex;
        align-items: center;
        align-self: stretch;
        justify-content: center;
        height: auto;
        margin: 1px 0 1px 1px;
        background: var(--bd-bg-primary);
        padding: 0 15px;
        color: var(--bd-theme-black);
    }

    .bd-social-input-container {
        .bd-social-input {
            &:nth-child(2) {
                padding-left: 15px;
            }
        }
    }
}

.bd-social-form-group {
    .bd-social-input {
        width: 100%;
        height: 55px;
        border: 1px solid var(--bd-border-primary);
        color: var(--bd-theme-black);
        box-shadow: 0 15px 30px 0 rgb(246, 246, 246);

        &:focus {
            border-color: var(--bd-primary) !important;
            box-shadow: none !important;
        }
    }
}

.bd-dashboard-certificate {
    .thumb {
        box-shadow: 0px 6px 34px rgba(215, 216, 222, 0.41);
        border: 1px solid var(--bd-border-primary);
        padding: 15px;
        background: var(--bd-bg-primary);
        @include border-radius(6px);
    }
}

/* Dashboard Announcements */
.bd-dashboard-announcements-item {
    display: flex;
    padding: 20px;
    background: var(--bd-bg-primary);
    @include border-radius(6px);

    .icon {
        height: 50px;
        width: 50px;
        min-width: 50px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--bd-border-primary);
        @include border-radius(6px);
        font-size: 20px;
        color: var(--bd-theme-black);

        svg {
            width: 36px;
            height: 36px;
        }
    }

    .inner {
        display: flex;
        gap: 20px;
    }

    .content {
        .title {
            margin-bottom: 5px;
        }

        .bd-meta {
            margin-bottom: 10px;
            list-style-type: none;
            display: inline-flex;
            align-items: center;
            color: var(--bd-taxonomy-color);

            li {
                display: flex;
                align-items: center;
                gap: 5px;
            }
        }
    }
}

/* Cover Photo Change */
.bd-cover {
    &-thumb {
        &-chnage {
            position: relative;
        }

        &-edit {
            input {
                display: none;
            }

            label {
                padding: 10px 10px;
                font-size: 22px;
                font-weight: 500;
                color: var(--bd-theme-black);
                background-color: transparent;
                border: 1px solid var(--bd-border-primary);
                border-top: none;
                text-align: center;
                width: 100%;
                cursor: pointer;
                transition: all 0.3s linear;

                &:hover {
                    color: var(--bd-white);
                    background-color: var(--bd-primary);
                }
            }
        }

        &-preview {
            width: 100%;
            height: 360px;
            position: relative;

            &-box {
                width: 100%;
                height: 360px;
                background-size: cover;
                background-repeat: no-repeat;
                background-position: center;
            }
        }
    }
}

.bd-button-action {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bd-dashboard-inner {
    .table {
        min-width: 650px;
    }

    .bd-course-thumb-style {
        .bd-course-text-content {

            .text-1,
            .text-2 {
                @media #{$lg} {
                    font-size: 40px;
                }
            }
        }

        .bd-course-overly-title {
            @media #{$lg} {
                font-size: 100px;
            }
        }

        .bd-course-thumb-instructor {
            @media #{$lg} {
                &.right {
                    right: 0;
                }

                width: 100px;
            }

            @media #{$md} {
                width: 170px;
            }
        }
    }

    .bd-course-thumb-style-three {
        .bd-course-text-content {
            .text {
                @media #{$lg} {
                    font-size: 26px;
                }
            }

            .text-1 {
                @media #{$lg} {
                    font-size: 26px;
                    margin-bottom: 10px !important;
                }
            }

            .text-3 {
                @media #{$lg} {
                    font-size: 26px;
                    &.mb-30 {
                        margin-bottom: 15px !important;
                    }
                }
            }
        }

        .bd-course-instructor {
            @media #{$lg} {
                width: 130px;
            }
            @media #{$md} {
                width: 200px;
            }
        }
    }

}