:root{
    --background-menu: #f8f9fa;
    --turquoise: #00c9b1;
    --light-green: #00b0c9;
    --green: #007180;
    --blue: #003f63;
    --light-blue: #015e94;
    --grey: #eff6f9;
    --light-grey: #d9d6d6;
    --background-error: #f8d7da;
    --error-color: #721c24;
    --light-error-color: #c33240;
    --table-row-blue: #dbeaf4;
    --table-row-grey: #f0f0f0;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.button{
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    user-select: none;
    background-color: white;
    transition: all ease 0.25s;
    border: var(--light-grey) 1px solid 
}

.button:hover{
    background-color: var(--turquoise);
    border: 1px solid var(--turquoise);
}

.button.delete:hover{
    background-color: var(--light-error-color);
    border: 1px solid var(--light-error-color);
    color: white;
}

.button.cancel:hover{
    background-color: var(--light-blue);
    color: white;
}

.error{
    color: var(--light-error-color);
}

.hidden{
    display: none;
}

.message{
    position: fixed;
    width: 50vw;
    left: calc(50vw - 25vw);
    z-index: 5;
    background-color: var(--turquoise);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-size: 1.2em;
    color: white;
    top: -100px;
    transition: all ease 0.5s;
}

.message.show{
    top: 45px;
}

.message.show.center{
    top: calc(50vh - 100px);
}


.image-container {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-right: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

html,body{
    font-size: 14px;
    font-family: "Roboto", sans-serif;
}

.bold{
    font-weight: bold;
}

h1{
    margin: 50px auto;
    width: 90%;
    text-align: center;
}

/**************
* SLIDER BUTTON
***************/

.slider-button{
    height: 23px;
    width: 50px;
    background-color: grey;
    border-radius: 15px;
    transition: 0.25s all ease;
    cursor:pointer;
}

.slider-button.checked{
    background-color: var(--turquoise);
}

.slider-button input{
    visibility: hidden;
}

.slider-button .circle{
    height: 23px;
    width: 25px;
    background-color: white;
    position: absolute;
    border-radius: 15px;
    border: 1px solid grey;
    top: 0;
    left: 0;
    transition: 0.25s all ease;
}

.slider-button .circle.checked{
    left: calc(100% - 25px);
}

.is-live{
    display: flex;
    align-items: center;
}

.is-live span{
    margin-left: 5px;
}

/********
* FORM
*********/

form{
    width: 80%;
    margin: auto auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* form h2{
    margin: 25px 0;
} */

form#form-connexion{
    width: 50%;
    margin: auto auto;
}

form div.title{
    width: 100%;
    font-weight: bold;

}

form label{
    position: relative;
    width: 45%;
    display: block;
    margin: 10px 0;
    /* font-weight: bold; */
    font-size: 1.1em;
    font-weight: bold;
}

form label p{
    font-weight: 400;
    margin: 10px 0;
}

form div.checkbox, form div.radios{
    width: 45%;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-content:flex-start;
    flex-wrap: wrap;
}

form div.checkbox label, form div.radios label{
    width: 45%;
    display: flex;
    align-items: flex-start;
    margin: 10px 0;
    font-weight: 400;

}

form div.checkbox > *:last-child, form div.radios > *:last-child{
  flex: auto;
}

form div.checkbox label input[type="checkbox"], form div.checkbox label input[type="checkbox"]{
    margin: 3px 0 0 0;
}


form label span{
    margin: 0 0 0 5px;
}

form label.full{
    width: 100%;
}

form .checkbox.full{
    width: 100%;
}

form label input:not(input[type="checkbox"], input[type="radio"]), select{
    width: 100%;
    height: 35px;
    border: 2px solid rgb(112, 112, 112);
    border-radius: 5px;
    padding: 5px;
}

form label input:not(input[type="checkbox"]).no-border{
    border: 0px;
}

textarea {
    width: 100%;
    padding: 5px;
    min-height: 100px;
}

header{
    display: flex;
    background-color: var(--blue);
    padding: 15px;
    justify-content: space-between;
    align-items: center;
}

header .deconnection{
    text-decoration: none;
    color: white;
}

#admin{
    position: relative;
}

.menu{
    position: sticky;
    left: 0;
    top: 0;
    width: 12%;
    padding: 15px;
    overflow-y: auto;
    height: calc(100vh - 88px);
    border-right: 1px solid var(--light-grey);
    scrollbar-width: thin;
    background-color: var(--background-menu);
}

.menu li{
    list-style: none;
    font-weight: bold;
    margin-top: 5px;
    padding: 5px;
    cursor: pointer;
    color: black;
    font-size: 0.9em;
}

.menu li a{
    text-decoration: none;
    color: black;
}

.menu li:hover{
    background-color: var(--grey);
}

.menu h2{
    font-size: 1.2em;
    color: grey;
    margin: 15px 0px;
    cursor: pointer;
}

.menu ul.hidden{
    display: none !important;
}

.content{
    position: absolute;
    top: 0;
    right: 0;
    width: 88%;
    padding: 25px;
    height: 100%;
    overflow-y: scroll;
}

.content table{
    border-collapse: collapse;
    border-spacing: 15px
}


.content table td{
    /* padding: 10px 25px; */
    text-align: left;
    padding: 0 10px;

}

h2{
    margin: 0 0 25px;
}

.content table th {
    cursor: pointer;
    position: relative;
    /* padding-right: 20px; */
    user-select: none;
    border-bottom: 1px solid black;
    padding: 0 25px 5px 10px;
    text-align: left;
}


th::after {
  content: '▲▼';
  position: absolute;
  right: 5px;
  font-size: 0.5em;
  color: gray;
}

tbody tr.blue{
    background-color: var(--table-row-blue);
}

tbody tr.grey{
    background-color: var(--table-row-grey);
}

tbody tr:not(tr.table-buttons):hover{
    background-color: var(--light-blue);
}

tbody tr:not(tr.table-buttons):hover td{
    color: white;
}

.content table td{
    padding: 5px 25px 5px 10px;
}

.dashboard-section.hidden, .user-section.hidden, .trainer-section.hidden, .training-section.hidden, .skills-manager-section.hidden,
 .user-form.hidden, .trainer-form.hidden, .training-form.hidden, .skills-manager-form.hidden{
    display: none;
}

.dashboard-section .basic-stats{
    background-color: var(--grey);
    border-radius: 5px;
}

.dashboard-section .basic-stats{
    padding: 25px; 
    font-weight: bold;
    width: 500px;
}


.dashboard-section .basic-stats h2{
    padding-bottom: 15px;
}

.dashboard-section .basic-stats p{
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.dashboard-section .basic-stats p span{
    color: var(--turquoise);
    font-size: 2em;
    display: block;
    margin-right: 5px;
}

.export-data{
    margin-top: 25px;
}

.export-data ul{
    display: flex;
    list-style: none;
}

.export-data ul li{
    margin-right: 15px;
}

.trainers img, .trainings img{
    width: 100px;
}

.delete-message-container, .update-container{
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 10;
    overflow: hidden;
}

.delete-message, .update{
    border: 1px solid black;
    background-color: white;
    border-radius: 5px;
    padding: 25px;
    font-weight: bold;
    max-height: 100%;
    overflow-y: auto;
}

.delete-message{
    height: 150px;
    overflow: hidden;
}

.delete-button-container{
    display: flex;
    margin-top: 20px;
}

.delete-button-container .button{
    margin-right: 8px;
}

.update label input[name="id"]{
    width: 50px;
}

.update label.image{
    /* display: flex;
    align-items: center; */
}

.update img{
    width: 100px;
}

form h2{
    width: 100%;
    font-weight: bold;
}

form h3{
    width: 100%;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--green);
    margin-top: 25px;
    text-transform: uppercase;
}

.send-buttons{
    margin-top: 25px;
}

.error-password.hidden{
    display: none;
}

.error-password{
    display: block;
}


/***************
* FORM CREATION 
****************/

.current-inputs{
    width: auto;
}

.form-input{
    display: flex;
    border: 2px solid black;
    padding: 10px;
}

.form-input div{
    margin: 0 15px;
}


/*********************
* JAVASCRIPT TEMPLATE
*********************/

input:disabled{
    color: grey;
    border: grey;
}

form#user-update{
    position: relative !important;
}

.message-column{
    position: absolute;
    top: 10%;
    right: 20%;
    color: var(--turquoise);
    font-size: 1.2em;
}

/*********************
* CHOICE FORMS
*********************/
.form-choices{
    width: 100%;
    margin: 0;
    flex-direction: column;
}

.form-choices .item{
    display: flex;
    align-items: center;
    margin: 3px 0;
}

.form-choices .item input{
    height: 35px;
    border: 2px solid rgb(112, 112, 112);
}

.form-choices .item input, .form-choices .item button{
    margin: 0 5px;
}

.form-choices .item .is-live{
    margin-left: 5px;
}

/*********************
* TEXTS FORMS
*********************/

.text-page form{
    flex-direction: column;
    width: 100%;
    flex-wrap: nowrap;
}

.text-page form section {
    margin: 25px 0;
    color: var(--green);
    width: 65%;
}

.text-page form section h2{
    color: var(--green);
    font-size: 2em;
}

.text-page form section label span{
    font-size: 1.4em;
    color: var(--blue);
    display: block;
    margin: 0 0 8px 0; 
}

.text-page form .paragraphs{
    margin: 15px 0;
}

.text-page form label{
    width: 100%;
}

.confirmation-message{
    position: fixed;
    top: 45%;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    /* transition: all ease 0.25s; */
}

.confirmation-message p{
    color: white;
    background-color: var(--turquoise);
    padding: 20px;
    width: fit-content;
    border-radius: 25px;
}

.confirmation-message.hidden{
    display: none;
}   
