$sideBarWidth: 250px;
$sideBarMinWidth: 100px;
html, body{
    background-color: $--clr-dark-shade;
}
.sidebar{
    height: 100vh;
    width: $sideBarWidth;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: 0.5s;
    // padding: 0 1rem 1rem;

    & > .nav-links{
        list-style: none;
        padding: 0;
        position: absolute;
        top: 163px;
        transition: 0.3s;
        width: 100%;

        & li{
            min-height: 48px;
            padding: 10px 0;

            & > a{
                padding: 10px 14px;
                text-decoration: none;
                display: flex;
                align-items: center;
                justify-content: start;
                width: 100%;

                & > .nav-icon{
                    width: 32px;
                    height: 32px;
                    margin: auto 24px auto;

                    & *{
                        color: #92939B;
                    }
                }

                & > *{
                    color: #92939B !important;
                }

                & p{
                    margin: 0;
                }

                & > i{
                    font-size: 20px;
                    margin-right: 20px;
                }  
                
            }     

            &.active{
                &:after{
                    content: '';
                    width: 6px;
                    height: 32px;
                    background-color: $--clr-primary;
                    border-radius: 8px;
                }
                & > a{
                    & > .nav-icon{
                        & *{
                            color: white;
                        }
                    }
                    & > *{
                        color: #fff !important;
                    }
                }
                font-weight: 600;
            }
        }
    }
}

.closeBtn{
    position: fixed;
    top: 0px;
    left: 250px;
    z-index: 1000;
}

.logo{
    display: block;
    margin-bottom: 30px;
    min-height: 100px;

    & > .program-img{
        width: 100%;
    }

    &-img-full{
        height: 32px;
        margin: auto;
    }

    &-img-narrow{
        // height: 46px;
        display: none;
        width: 46px;
        height: 46px;
        margin: auto;
    }
}

.course-title{
    color: $--clr-light / 0.65;
}

// .active{
//     & a{
//         background-color: white;
//         border-radius: 7px;
//         & *{
//             color: $--clr-secondary !important;
//         }
//     }
// }

@media only screen and (max-width: 992px){
    .sidebar{
        width: $sideBarMinWidth;
    }

    .program-img{
        display: none;
    }

    .nav-links > li > a{
        justify-content: center !important;
        align-items: center !important;

        & svg{
            margin: auto !important;
        }

        & p{
             display: none;
         }
    }

    .logo{
        &-img-full{
            display: none !important;
        }

        &-img-narrow{
            display: block !important;
        }
    }
}

.fade-linker{
    margin-top: -5.5rem;
    // background-image: linear-gradient(rgba(255, 0, 0, 0), rgba(255, 0, 0, 1) 50%);
    background-image: linear-gradient(rgba(26, 26, 36, 0.1), rgba(26, 26, 36, 1) 50%);
    width: 100%;
    height: 100px;
    position: absolute;
}

@media only screen and (max-width: 700px){
    .sidebar{
        width: 0;
    }

    .main{
        margin-left: 0 !important;
    }

    .main-container{
        width: 90%;
        max-width: 90%;
    }

    // .course-info{
    //     display: flex;
    //     flex-direction: column;
    //     align-items: center;

    //     & > .course-thumbnail{
    //         min-width: 50vw !important;
    //         width: 50vw !important;
    //         max-width: 50vw !important;
    //         margin-bottom: 20px;
    //     }
    // }

    .class-info{
        display: flex;
        flex-direction: column;
        align-items: center;

        & > .course-thumbnail{
            width: 10rem !important;
            max-width: 10rem !important;
            margin-bottom: 20px;
        }
    }

    .my-course-btn{
        display: none;
    }

    .course-title{
        display: none;
    }

    .top-navbar{
        padding: 0 16px !important;
        & .navbar-item{
            margin-left: 24px !important;
        }

        & .logo-img{
            display: block !important;
        }
    }

    #profile-btn-name{
        display: none !important;
    }

    // .program-img{
    //     display: none;
    // }

    // .nav-links{
    //     margin-top: 280px;
    // }

    // .nav-links > li > a{
    //     justify-content: center !important;
    //     align-items: center !important;

    //     & i{
    //         margin-right: 0 !important;
    //     }

    //     & p{
    //          display: none;
    //      }
    // }
}

// main section
.main{
    position: relative;
    transition: 0.5s;
    margin-left: $sideBarWidth;
    & .top-navbar{
        min-height: 100px;
        max-height: 100px;
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 0 64px;

        & .navbar-item{
            margin-left: 65px;
        }

        & .logo-img{
            display: none;
            width: 91px !important;
        }

        &-course_img{
            height: 50px;
            width: 50px;
            & > img{
                height: 50px;
                width: auto;
                border-radius: 50%;
            }
        }
        // height: 75px;
        background-color: $--clr-white;
        transition: 0.5s;
    }
}

.main-container{
    width: 60%;
    max-width: 80%;
    height: 100%;
    margin: auto;

    & .card{
        margin: 1rem 0;
        border: none;
    }
}

@media only screen and (max-width: 992px){
    .main{
        margin-left: $sideBarMinWidth;
    }

    .main-container{
        width: 80%;
        max-width: 80%;
    }
}

.pointer{
    height: 20px;
    width: 20px;
    border: 1px solid $--clr-dark;
    // background-color: $--clr-dark;
    // border-radius: 20%;
    transform: rotate(45deg);
}

.horizontal-line{
    border-left: 1px solid $--clr-dark;    
}

.course-thumbnail{
    min-width: 100%;
}


// my class section
// .media-player{
//     width: 100%;
//     height: 500px;
// }

.days-content, .day-video-list{
    &::-webkit-scrollbar {
        width: 15px;
    }
    
    &::-webkit-scrollbar-track {
        background: $--clr-dark-accent
    }
    
    &::-webkit-scrollbar-thumb {
        background-color: $--clr-white;  
        border-radius: 20px;
        border: 5px solid $--clr-dark-accent;
    }

    scroll-behavior: smooth;
    scrollbar-width: thin; 
    scrollbar-color: $--clr-dark white;
    overflow-x: scroll;
    overflow-y: hidden;
    
    & .active{
        background-color: $--clr-dark !important;
        color: $--clr-white !important;
    }
}

.program{
    @extend .days-content;
}

.class-thumbnail{
    min-width: 150px;
    max-width: 150px;
}

.course-video{
    width: 100% !important;
    height: 40rem !important;
}

.dropdown-toggle{
    &::after{
        display: none;
    }

    height: 56px;
    border-radius: 4px !important;

    & .nav-icon{
        height: 24px;
        width: 24px;
        margin: 0 0.5rem 0;
    }
}

.profile-picture{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.course-list{
    
}

.dashboard{
    width: 80% !important; 
    max-width: 80% !important;
    margin-left: 3rem;
    // margin-left: auto !important;
    // margin-right: auto !important;
}

.welcome-wrapper{
    background: linear-gradient(90deg, #F5C7F7 0.79%, #E6C0F6 0.79%, #989DEF 100.91%);
    border-radius: 4px;
    height: 250px;
    max-width: $--max-container-width;

    .welcome-content{
        margin-left: 3rem;

        & > *{
           color: #181818; 
           font-size: 32px;
           font-weight: 600;
        }

        .welcome-text_1{
            font-size: 32px;
            color: #181818;
        }

        .welcome-text_2{
            color: #525252;
            font-size: 24px;
            line-height: 30px;
            font-weight: 400;

            &_narrow{
                color: #525252;
                font-size: 12px;
                line-height: 15px;
                font-weight: 400;    
                display: none;
            }
        }
    }
    .welcome-img img{
        max-width: 100%;
        max-height: 100%;
        margin: auto;
    }
}

.course-item {
    & > .card{
        border-radius: 0.5rem;
        width: 95%;

        & .card-title{
            font-weight: 500 !important;
        }
    }

    &:hover{
        & .card-title{
            white-space: normal !important;
        }
    }
}

.about-video{
    &-tabs{
        border: none !important;
    }

    &-title{
        margin: auto 0.5rem;
        color: white !important;
        border: none !important;
        font-weight: 600;
        &.active{
            color: $--clr-white !important;
            background: $--clr-main !important;
            border: 1px solid $--clr-main !important;
        }

        &.nav-link{
            border-radius: 4px !important;
        }
    }

    &-content{
        word-break: break-all;
    }
}

.programs-list{
    overflow-x: hidden;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 0 !important;

    &-item{
        font-weight: 500;
        color: #AFAFAF !important;
        border-color: #868686 !important;
        border-radius: 4px !important;
        &.active{
            color: $--clr-main !important;
            border-color: $--clr-main !important;
        }
    }

    .swiper-slide{
        width: auto !important;
    }
}

.day-video-container{
    // background: $--clr-white !important;
}

.day-video-list{
    max-height: 75vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.day-video-item{

    &-date{
        color: #626262;
        font-size: 12px;
    }

    &-title{
        font-weight: 300;
    }

    text-decoration: none;

    &.active{
        background-color: #202130 !important;
    }

    &:hover{
        background-color: #202130;
    }

    // & > .col{
    //     position: relative;
    // }
}

.slider-actions{
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 30%;
    width: 100%;
}

.program-slide-icon{
    & .nav-icon{
        height: 24px;
        width: 24px;
        
        & *{
            color: $--clr-primary;
        }
    }
    &:hover{
        cursor: pointer;
    }
}

.my-course{
    &-list{
        & button{
            height: 56px;
        }
    }

    &-dropdown{
        min-width: 20rem;
        max-height: 20rem;
        overflow-y: scroll;    

        &::-webkit-scrollbar {
            width: 15px;
        }
        
        &::-webkit-scrollbar-track {
            background: $--clr-dark-accent
        }
        
        &::-webkit-scrollbar-thumb {
            background-color: $--clr-white;  
            border-radius: 20px;
            border: 5px solid $--clr-dark-accent;
        }
    
        scroll-behavior: smooth;
        scrollbar-width: thin; 
        scrollbar-color: $--clr-dark white;
    }
}

.home-section{
    background: $--clr-secondary;
}

.program-day-video{
    &-item{
        &:hover{
            background: #202130 !important;
        }
    }
}

.course-item-opt{
    font-size: 15px;
    font-weight: 600 !important;
    &:hover{
        background: #202130 !important;
    }
}

button.course-item-opt{
    & *{
        font-weight: 600 !important;
        font-size: 15px !important;
    }
}

.profile-dropdown{
    background: $--clr-secondary;

    & li:hover{
        background: #202130 !important;
    }

    &::-webkit-scrollbar {
        width: 15px;
    }
    
    &::-webkit-scrollbar-track {
        background: $--clr-secondary
    }
    
    &::-webkit-scrollbar-thumb {
        background-color: $--clr-white;  
        border-radius: 20px;
        border: 5px solid $--clr-secondary;
    }

    scroll-behavior: smooth;
    scrollbar-width: thin; 
    scrollbar-color: $--clr-dark white;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{
    background: $--clr-primary !important;
}

.course-container{
    max-width: $--max-container-width !important;
}

.video-thumbnail{
    background-color: black;
    border-radius: 4px !important;
}

.video-header-title{
    font-weight: 400;
    font-size: 32px;

    & span{
        color: #fff !important;
    }
}

@media only screen and (max-width: 1200px){
    .welcome-wrapper{
        height: 159px !important;

        .welcome-content{
            margin-left: 1rem !important;
        }

        .welcome-text_1{
            font-weight: 400 !important;
            font-size: 16px !important;
        }

        .welcome-text_2{
            display: none;
        }

        .welcome-text_2_narrow{
            display: block !important;
        }
    }
}

@media only screen and (max-width: 576px){
    .video-header-title{
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .about-video-title.active{
        background: transparent !important;
        border: none !important;
        border-bottom: 2px solid $--clr-main !important;
        color: $--clr-main !important;
        border-radius: 0 !important;
        font-size: 16px !important;
    }

    .day-video-list{
        max-height: none !important;
        overflow: auto !important;

        // display: flex;
        // flex-direction: row;
        // flex-wrap: wrap;
        display: grid !important;
        grid-template-columns: 33.33% 33.33% 33.33% !important;
        & a{
            display: flex;
            flex-direction: column !important;

            & .col{
                padding: 0 !important;
                & img{
                    width: 100% !important;
                }
            }

        }
    }

    .day-video-item-title{
        text-align: center;
        margin: 0 !important;
        margin-top: 8px !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        & .narrow{
            display: none !important;
        }
    }

    .day-video-item-date{
        display: none !important;
    }

    button.course-item-opt{
        background: transparent !important;
        border: none !important;
        color: $--clr-main !important;
    }

    .dashboard{
        margin-left: 1rem !important;
        margin-right: 1rem !important;
        width: auto !important;
        max-width: 100vw !important;
    }

    .course-list{
        margin-left: -1rem !important;
    }

    .course-item{
        padding: 0 !important;
        padding-left: 1rem !important;
        padding-bottom: 1.5rem !important;

        & .card{
            & .card-title{
                text-align: center;
            }

            & .course-start-btn{
                justify-content: center !important;
            }
        }
    }
}

.timeline{
    background-color: rgb(50, 43, 40) !important;
}