/* =========== Google Fonts ============ */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:wght@400;500;600;700&display=swap');

/****Globals***/
* 
{
    font-family: 'Libre Baskerville', serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root
{
    --grey: #f1f0f6;
    --dark-grey: #8d8d8d;
    --light: #fff;
    --dark: #000;
    --green: #81D43A;
    --light-grenn: #3effcb;
    --blue: #012060;
    --light-blue: #d0e4ff;
    --dark-blue: #0c5fcd;
    --red: #fc3b56;
}



body
{
    background: var(--grey);
}

a
{
    text-decoration: none !important;
}

li
{
    list-style: none;
}

/*sidebar*/

#sidebar
{
    position: fixed;
    max-width: 260px;
    width: 100%;
    background: var(--light);
    top: 0;
    left: 0;
    height: 100%;
    overflow: auto;
    scrollbar-width: none;
    transition: all .3s ease;
    z-index: 200;
}


#sidebar.hide
{
    max-width: 60px;
}

#sidebar.hide:hover
{
    max-width: 260px;
}

#sidebar::-webkit-scrollbar
{
    display: none;
}

#sidebar .brand
{
    font-size: 24px;
    display: flex;
    align-items: center;
    height: 64px;
    font-weight: 700;
    color: var(--blue);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--light);
    transition: all .3s ease;
    padding: 0 6px;
}


.brand img
{
    width: 70% !important;
    margin-top: 18px !important;
    margin: 0 25px;
}

#sidebar .icon
{
    min-width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}

#sidebar .icon-right
{
    margin-left: auto;
    transition: all .3s ease;
}


#sidebar .side-menu
{
    margin: 36px 0;
    padding: 0 20px;
    transition: all 3.s ease;
}

#sidebar.hide .side-menu
{
    padding: 0 6px;
}

#sidebar.hide:hover .side-menu
{
    padding: 0 20px;
}

#sidebar .side-menu a
{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--dark);
    padding: 12px 16px 12px 0;
    transition: all .3s ease;
    border-radius: 10px;
    margin: 4px 0;
    white-space: nowrap;
}

#sidebar .side-menu > li > a:hover
{
    background: var(--grey);
}

#sidebar .side-menu > li > a.active .icon-right
{
    transform: rotateZ(90deg);
}

#sidebar .side-menu > li > a.active,
#sidebar .side-menu > li > a.active:hover
{
    background: var(--blue);
    color: var(--light);
}

#sidebar .divider
{
    margin-top: 24px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dark-grey);
    transition: all .3s ease;
    white-space: nowrap;
}

#sidebar.hide:hover .divider
{
    text-align: left;
}

#sidebar.hide .divider
{
    text-align: center;
}

#sidebar .side-drowpn
{
    padding-left: 56px;
    max-height: 0;
    overflow: hidden;
    transition: all .15s ease;
}

#sidebar .side-drowpn.show
{
    max-height: 1000px;
}

#sidebar .side-drowpn a:hover
{
    color: var(--blue);
}

#sidebar .ads
{
    width: 100%;
    padding: 20px;
    transition: all .3s ease;
}

#sidebar.hide .ads
{
    display: none;
}

#sidebar.hide:hover .ads
{
    display: block;
}

#sidebar.hide:hover .ads
{
    display: flex;
}

#sidebar .ads .wraper
{
    background: var(--grey);
    padding: 20px;
    border-radius: 10px;
}

#sidebar .btn-upgrade
{
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    color: var(--light);
    background: var(--blue);
    transition: all .3s ease;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 12px;
}

#sidebar .btn-upgrade:hover
{
    background: var(--dark-blue);
}

#sidebar .ads .wraper p
{
    font-size: 12px;
    color: var(--dark-grey);
    text-align: center;
}

#sidebar .ads .wraper p span
{
    font-weight: 700;
}
/*****Ending***/

/****Content***/
#content
{
    position: relative;
    width: calc(100% - 260px);
    left: 260px;
    transition: all .3s ease;
}

#sidebar.hide + #content
{
    width: calc(100% - 60px);
    left: 60px;
}
/****Ending***/

/***NAV****/
nav
{
    background: var(--light);
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    grid-gap: 28px;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
}

nav .toggle-sidebar
{
    font-size: 18px;
    cursor: pointer;
}

nav form
{
    max-width: 400px;
    width: 100%;
    margin-right: auto;
}

nav .form-group
{
    position: relative;
}

nav .form-group input
{
    width: 100%;
    background: var(--grey);
    border-radius: 5px;
    border: none;
    outline: none;
    padding: 10px 36px 10px 16px;
    transition: all .3s ease;
}

nav .form-group input:focus
{
    box-shadow:  0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}

nav .form-group .icon
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    color: var(--dark-grey);
}

nav .nav-link
{
    position: relative;
}

nav .nav-link .icon
{
    font-size: 18px;
    color: var(--dark);
}

nav .nav-link .badge
{
    position: absolute;
    top: -12px;
    right: -12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light);
    background-color: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    font-size: 10px;
    font-weight: 700;
}

nav .divider
{
    width: 1px;
    background: var(--grey);
    height: 12px;
    display: block;
}

nav .profil
{
    position: absolute;
    right: 0 !important;
    margin-right: 25px !important;
}

nav .profil img
{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

nav .profil .profil-link
{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--light);
    padding: 10px 0;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
    border-radius: 10px;
    width: 160px;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
}

nav .profil .profil-link.show
{
    opacity: 1;
    pointer-events: visible;
    top: 100%;
}

nav .profil .profil-link a
{
    padding: 10px 16px;
    display: flex;
    grid-gap: 10px;
    font-size: 14px;
    color: var(--dark);
    align-items: center;
    transition: all .3s ease;
}

nav .profil .profil-link a:hover
{
    background: var(--grey);
}
/****Ending****/

/****MAIN****/
main
{
    width: 100%;
    padding: 36px 20px 20px 20px;
}

main .tilte
{
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

main .breadcrumbs
{
    display: flex;
    grid-gap: 6px;
}

main .breadcrumbs li,
main .breadcrumbs li a
{
    font-size: 14px;
}

main .breadcrumbs li a
{
    color: var(--blue);
}

main .breadcrumbs li a.active,
main .breadcrumbs li.divider
{
    color: var(--dark-grey);
    pointer-events: none;
}

main .info-data
{
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-gap: 20px;
}

main .info-data .card
{
    max-width: 350px !important;
    width: 100% !important;
    padding: 20px;
    border-radius: 10px;
    background: var(--light);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .05);
}

main  .card .head
{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

main .card .head h2
{
    font-size: 24px;
    font-weight: 600;
}

main .card .head p
{
    font-size: 14px;
}

main .card .head .icon
{
    font-size: 20px;
    color: var(--blue);
}

main .card .progress
{
    display: block;
    margin-top: 24px;
    height: 10px;
    width: 100%;
    border-radius: 10px;
    background: var(--grey);
    overflow-y: hidden;
    position: relative;
    margin-bottom: 4px;
}

main .card .progress::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--blue);
    width: var(--value);
}

main .card .label
{
    font-size: 14px;
    font-weight: 700;
}

main .data
{
    display: flex;
    grid-gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

main .data .content-data
{
    flex-grow: 1;
    flex-basis: 400px;
    padding: 20px;
    border-radius: 10px;
    background: var(--light);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
}

main .content-data .head h3
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px !important;
    font-weight: 600;
    margin-bottom: 24px;
}

main .content-data .head .menu
{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

main .content-data .head .menu .icon
{
    cursor: pointer;
}

main .content-data .head .menu-link
{
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 140px;
    background: var(--light);
    border-radius: 10px;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, .1);
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
}

main .content-data .head .menu-link.show
{
    top: 100%;
    opacity: 1;
    pointer-events: visible;
}

main .content-data .head .menu-link a
{
    display: block;
    padding: 6px 10px;
    font-size: 14px;
    color: var(--dark);
    transition: all .3s ease;
}

main .content-data .head .menu-link a:hover
{
    background: var(--grey);
}

main .content-data .chart
{
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

main .content-data .chart::-webkit-scrollbar
{
    display: none;
}

main .chat-box
{
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: none;
}

main .chat-box::-webkit-scrollbar
{
    display: none;
}

main .chat-box .day
{
    text-align: center;
    margin-bottom: 10px;
}

main .chat-box .day span
{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--blue);
    background: var(--light-blue);
    font-size: 14px;
    font-weight: 700;
}

main .chat-box .msg img
{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

main .chat-box .msg
{
    display: flex;
    grid-gap: 6px;
    align-items: flex-start;
}

main .chat-box .profile .username
{
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-right: 6px;
}

main .chat-box .profile .time
{
    font-size: 12px;
    color: var(--dark-grey);
}

main .chat-box .chat p
{
    font-size: 14px;
    padding: 6px 10px;
    display: inline-block;
    max-width: 400px;
    line-height: 150%;
}

main .chat-box .msg:not(.me) .chat p
{
    border-radius: 0 5px 5px 5px;
    background: var(--blue);
    color: var(--light);
}

main .chat-box .msg.me
{
    justify-content: flex-end;
}

main .chat-box .msg.me .profile
{
    text-align: right;
}

main .chat-box .msg.me p
{
    background: var(--grey);
    border-radius: 5px 0 5px 5px;
}

main form
{
    margin-top: 6px;
}

main .form-group
{
    width: 100%;
    display: flex;
    grid-gap: 10px;
}

main .form-group input
{
    flex-grow: 1;
    padding: 10px 16px;
    border-radius: 5px;
    outline: none;
    background: var(--grey);
    border: none;
    transition: all .3s ease;
    width: 100%;
}

main .form-group input:focus
{
    box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px var(--light-blue);
}

main .btn-send
{
    padding: 0 16px;
    background: var(--blue);
    border-radius: 5px;
    color: var(--light);
    cursor: pointer;
    border: none;
    transition: all .3s ease;
}

main .btn-send:hover
{
    background: var(--dark-blue);
}
/****Ending****/

/*****Media screen***/
@media screen and (max-width: 768px)
{
    #content
    {
        position: relative;
        width: calc(100% - 60px);
        transition: all .3s ease;
    }

    nav .nav-link,
    nav .divider
    {
        display: none;
    }
}

/****Image-create-professeur****/
.wrapper
{
  position: relative;
  height: 300px;
  width: 100%;
  border: 2px dashed var(--blue);
  border-radius: 10px;
  background: #fff !important;
  display: flex;
  align-items: center !important;
  justify-content: centre !important;
  text-align: center !important;
  overflow: hidden;
}

.wrapper.activer
{
  border: none;
}

.wrapper .image
{
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrapper .image img
{
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.wrapper .icon
{
  font-size: 100px !important;
  color: var(--light-blue);
  text-align: center !important;
}

.wrapper .text
{
  font-size: 20px;
  font-weight: 500;
  color: var(--light-color);
  text-align: center !important;
}

.wrapper #cancel-btn
{
  position: absolute !important;
  top: 15px;
  right: 15px;
  font-size: 28px !important;
  cursor: pointer;
  color: var(--light-blue);
  display: none;
}

.wrapper.activer:hover #cancel-btn
{
  display: block;
}

.wrapper.activer #cancel-btn:hover
{
  color: #fff;
}

.wrapper .file-name
{
  position: absolute !important;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
  width: 100%;
  color: #fff;
  padding: 8px 0;
  display: none;
  font-size: 18px;
}

.wrapper.activer:hover .file-name
{
  display: block;
}

#custom-btn
{
  margin-top: 30px !important;
  width: 100%;
  height: 50px;
  display: block;
  border: none;
  outline: none !important;
  background: linear-gradient(135deg, var(--blue) 0%, var(--light-blue) 100%);
  font-size: 18px;
  color: #fff;
  font-weight: 500;
  border-radius: 25px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-control:focus
{
  box-shadow: none !important;
  border-color: var(--blue) !important;
}

.form-control
{
  resize: none !important;
}

/****Read_Cours_user****/
#card-conatiner
{
    display: flex;
    flex-wrap: wrap;
}

#card
{
    width: 325px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 20px;
}

#card img
{
    width: 100%;
    height: auto;
}

#card-content
{
    padding: 16px;
}

#card-content h3
{
    font-size: 28px;
    margin-bottom: 8px;
}

#card-content p
{
    color: #666;
    font-size: 15px;
    line-height: 1.3;
}

#card-content .btn
{
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--blue);
    border-radius: 4px;
    margin-bottom: 16px;
    color: var(--light);
}

/*****Quizzz****/
.start_btn,
.info_box,
.quiz_box,
.result_box
{
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 4px 8px 0 rgba(0, 0, 0, 0.2),
                0px 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition: all 0.3s ease;
}

.info_box.activeInfo,
.quiz_box.activeQuiz,
.result_box.activeResult
{
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.start_btn button
{
    font-size: 20px;
    font-weight: bold;
    color: var(--light);
    padding: 15px 30px;
    outline: none;
    border: none;
    border-radius: 5px;
    background: var(--blue);
    cursor: pointer;
}

.info_box
{
    width: 540px;
    background-color: var(--light);
    border-radius: 5px;
    margin-top: 50px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9); 
}

.info_box .info_tilte
{
    border-bottom: 1px solid var(--dark-grey);
    display: flex;
    align-items: center;
    padding: 0 30px;
    font-size: 20px;
    font-weight: 600;
}

.info_box .info_list
{
    padding: 15px 35px;
}

.info_box .info_list .info
{
    margin: 5px 0;
    font-size: 17px;
}

.info_box .info_list .info span
{
    font-weight: bold;
    color: var(--blue);
}

.info_box .buttons
{
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 35px;
    border-top: 1px solid var(--dark-grey);
}

.info_box .buttons button
{
    margin: 0 5px;
    height: 40px;
    width: 100px;
    outline: none;
    border: 1px solid var(--blue);
    border-radius: 5px;
    color: var(--light);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buttons button.quit
{
    color: var(--blue);
}

.buttons button.restart
{
    color: var(--light);
    background: var(--blue);
}

.buttons button.restart:hover
{
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
}

.buttons button.quit:hover
{
    background: var(--blue);
    color: var(--light);
}

.quiz_box
{
    width: 550px;
    background: var(--light);
    border-radius: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.quiz_box header
{
    position: relative;
    z-index: 99;
    height: 50px;
    padding: 0 30px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px 5px 0 0;
    box-shadow: 0px 3px 5px 1px rgba(0, 0, 0, 0.1);
}

.quiz_box header .tiltes
{
    font-size: 20px;
    font-weight: 600;
}

.quiz_box header .timer
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 145px;
    height: 45px;
    background: #cce5ff;
    border: 1px solid #b8daff;
    border-radius: 5px;
    padding: 0 8px;
}

.quiz_box header .timer .time_text
{
    font-weight: 400;
    font-size: 17px;
    user-select: none;
}

.quiz_box header .timer .time_sec
{
    font-size: 18px;
    font-weight: 500;
    background: var(--blue);
    height: 30px;
    width: 45px;
    color: var(--light);
    text-align: center;
    line-height: 30px;
    border-radius: 5px;
    border: 1px solid var(--blue);
    user-select: none;
}

.quiz_box header .time_line
{
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 3px;
    background: #007bff;
}

.quiz_box section
{
    padding: 25px 30px 20px 30px;
    background: var(--light );
}

.quiz_box section .que_text
{
    font-size: 25px;
    font-weight: 600;
}

.quiz_box section .option_list
{
    padding: 20px 0;
    display: block;
}

section .option_list .option
{
    background: aliceblue;
    border: 1px solid #84c5fe;
    border-radius: 5px;
    padding: 8px 15px;
    margin-bottom: 15px;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

section .option_list .option:hover
{
    color: #004085;
    background: #cce5ff;
    border-color: #b8daff;
}

.option_list .option:last-child
{
    margin-bottom: 0px;
}

.option_list .option .iconss
{
    height: 26px;
    width: 26px;
    border: 2px solid transparent;
    border-radius: 50%;
    text-align: center;
    font-size: 13px;
    line-height: 24px;
    pointer-events: none;
}

.option_list .option .iconss.tick
{
    color: #23903c;
    border-color: #23903c;
    background: #d4edda;
}

.option_list .option .iconss.cross
{
    color: #a42834;
    background: #f8d7f8;
    border-color: #a42834;
}

.option_list .option.correct
{
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

.option_list .option.incorrect
{
    color: #721c24;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.option_list .option.disabled
{
    pointer-events: none;
}

.quiz_box footer
{
    height: 60px;
    width: 100%;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz_box footer .total_que span
{
    display: flex;
    user-select: none;
}

footer .total_que span p
{
    font-weight: 500;
    padding: 0 5px;
}

.total_que span p:first-child
{
    padding: 0px;
}

footer .next_btn
{
    display: none;
    height: 40px;
    padding: 0 13px;
    font-size: 18px;
    font-weight: 400;
    border: none;
    outline: none;
    color: var(--light);
    background: var(--blue);
    border-radius: 5px;
    border: 1px solid var(--blue);
    cursor: pointer;
    transition: all 0.3s ease;
}

footer .next_btn:hover
{
    background: #0263ca;
}

.result_box
{
    background: var(--light);
    width: 450px;
    padding: 25px 30px;
    border-radius: 5px;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.result_box .iconsss
{
    font-size: 100px;
    color: var(--blue);
    margin-bottom: 10px;
}

.result_box .complete_text
{
    font-size: 20px;
    font-weight: 500;
}

.result_box .score_text span
{
    display: flex;
    margin: 10px 0;
    font-size: 18px;
    font-weight: 500;
}

.score_text span p
{
    font-weight: 600;
    padding: 0 4px;
}

.result_box .buttons
{
    display: flex;
    margin: 20px 0;
}

.result_box .buttons button
{
    margin: 0 10px;
    height: 45px;
    padding: 0 20px;
    border: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    border: 1px solid var(--blue);
    cursor: pointer;
    transition: all 0.3s ease;
}