/* CSS HEX */
:root {
    --taupe-gray: #84828fff;
    --dim-gray: #6a687aff;
    --paynes-gray: #536271ff;
    --charcoal: #3e4c5eff;
    --prussian-blue: #2c3d55ff;
}

hr {
    border: 0;
    height: 1px;
    background: var(--paynes-gray);
}

body {
    background-color: var(--prussian-blue);
    color: var(--taupe-gray);
    margin: 1%;
}

.button {
    background-color: var(--taupe-gray);
    border: none;
    color: var(--charcoal);
    padding: 5px 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    margin: 4px;
}

.icone {
    color: var(--taupe-gray);
    font-size: 20px;
    margin: 10px 0;
}

/* HEADER */
.mainTitle {
    margin: 0 30px;
    font-size: 36px;
    font-weight: bold;
}

nav {
    align-items: center;
    display: flex;
    justify-content: space-around;
}

.title {
    align-items: center;
    display: flex;
    justify-content: flex-start;
}

header {
    display: flex;
    justify-content: space-between;
}

.menuItems {
    color: var(--taupe-gray);
    text-decoration: none;
    font-size: 22px;
    margin: 0 40px;
    font-weight: bold;
}

.menuItems:hover {
    color: white;
    transition: color 0.5s;
}

/* BURGER MENU */

#burger {
    text-decoration: none;
}

#burger > i {
    color: var(--taupe-gray);
}

#burger > i:hover {
    color: white;
    transform: rotate(-180deg);
    transition: transform 0.5s, color 0.5s ease;
}

.sideNav {
    height: 100%;
    width: 40%;
    position: fixed;
    z-index: 1;
    left: -40%;
    top: 0;
    background-color: var(--charcoal);
    padding-top: 60px;
    transition: left 0.5s ease;
}

.sideNavTitle {
    color: var(--taupe-gray);
    font-size: 22px;
    margin: 40px;
}

.sideNavMenu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sideNavForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sideNavLabel-Checkbox {
    align-items: center;
    display: flex;
    justify-content: space-between;
    width: 30%;
}

.sideNavLabel {
    color: var(--taupe-gray);
    font-size: 20px;
    margin: auto 10px;
}

.sideNavCheckbox {
    margin: auto 10px;
    width: 20px;
    height: 20px;
}

.sideNavSubmit {
    background-color: var(--taupe-gray);
    border: none;
    color: var(--charcoal);
    padding: 5px 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    margin: 10px 0;
    width: 30%;
}

.sideNavSubmit:hover, .button:hover {
    background-color: var(--dim-gray);
    transition: background-color 0.5s ease;
}

.sideNav.active {
    left: 0;
}

.userNav {
    height: 20%;
    width: 15%;
    position: fixed;
    z-index: 2;
    right: -20%;
    top: 7.5%;
    background-color: var(--charcoal);
    padding: 30px 0;
    transition: right 0.5s ease;
}

.userNav.active {
    right: 0;
}

.userNavItems {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.userNavItem {
    color: var(--taupe-gray);
    text-decoration: none;
    font-size: 22px;
    margin: 10px auto;
}

.afficherMoins {
    color: var(--taupe-gray);
    font-size: 22px;
    margin : 10px auto;
}

.high {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.close {
    display: flex;
    justify-content: flex-end;
    margin: auto 10%;
    text-decoration: none;
    color: var(--taupe-gray);
}

.close:hover {
    color: white;
    transition: color 0.5s ease;
}

.close > i:hover {
    transform: rotate(-180deg);
    transition: transform 0.5s;
}

/* GRAPHIQUES */

.charts {
    max-width: 100%;
}

.chart {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.chartUnit {
    width: 100%;
    margin: 20px;
}

canvas {
    width: 100% !important;
    height: 400px !important;
    font-size: 20px;
}



/* ADMIN */
.admin {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.adminTitleContent {
    display: flex;
    flex-direction: column;
    margin: 20px;
    width: 50%;}

.tableAdmin {
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width:100%;
}

.tableAdminTitle {
    background-color: var(--charcoal);
    color: var(--taupe-gray);
    font-size: 20px;
    font-weight: bold;
    border: 1px solid var(--taupe-gray);
    padding: 10px;
}

.tableAdmin tr:nth-child(even) {
    background-color: var(--paynes-gray);
}

.tableAdmin tr:hover {
    background-color: var(--dim-gray);
    color: white;
    transition: background-color 0.3s ease;
}

.tableAdmin td, .tableAdmin th {
    border: 1px solid var(--paynes-gray);
    padding: 12px;
    text-align: left;
}

#action {
    display: flex;
    justify-content: space-around;
}

.submit {
    background-color: var(--taupe-gray);
    border: none;
    color: var(--charcoal);
    padding: 5px 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    margin: 10px auto;
}

.submit:hover {
    background-color: var(--dim-gray);
    transition: background-color 0.2s ease;
}

.createUser {
    display: flex;
    flex-direction: column;
    margin: 20px;
    width: 100%;
    max-height: 30%;
}

.createUserUsername {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    font-size : 18px;
}



.createUserPassword {
    display: flex;
    justify-content: space-between;
    margin: 10px;
    font-size : 18px;
}

.createUserRole {
    display: flex;
    margin : 0 auto;
}

.role {
    margin: 10px auto;
    font-size : 18px;

}

.sideNavDates {
    display: flex;
    justify-content: space-between;
    margin: 20px;
}
.sideNavDate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 10px
}
@media screen and (max-width: 768px) {
    .charts {
        max-width: 100%
    }

    .chart {
        flex-direction: column;
    }

    header {
        flex-direction: column;
    }

    .menuItems {
        margin: 20px auto;
        font-size: 15px;
        justify-content: space-between;
    }

    h1 {
        margin: 40px 20px;
    }

    .sideNav {
        width: 100%;
        left: -100%;
    }

    .sideNavMenu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .userNav {
        width: 50%;
        right: -50%;
        top : 11.5%;
    }

    .userNavItem {
        margin: 10px auto;
        font-size: 18px;
    }

    .afficherMoins {
        margin: 10px auto;
        font-size: 18px;
    }

    .admin {
        flex-direction: column;
        justify-content: center;
        margin : 0;
        width : 100%;
    }
    .tableAdmin {
        margin: 20px auto;
        width:100%;
    }

    .createUser {
        margin: 20px auto;
        width: 100%;
        max-height: 30%;
    }

    .createUserUsername {
        flex-direction : column;
        margin : 10px auto;
    }

    .createUserPassword {
        flex-direction : column;
        margin : 10px auto;
    }

    .role {
        margin: 10px 0;
    }
}