/*!
 * Start Bootstrap - Shop Homepage (http://startbootstrap.com/)
 * Copyright 2013-2016 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
 */

/***   FONTS   ***/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Shrikhand&display=swap');

/***   HEADER   ***/
header {
    background-color: #e3f2fd;

    .navbar-brand {
        font-family: "Shrikhand", serif;
        font-weight: 400;
        font-style: normal;
        font-size: 2em;
    }

    ul.dropdown-menu{
        left: inherit!important;
        right: 0!important;
    }

    button.btn.dropdown-toggle {
        border:none!important;
    }
    .logout{
        color:red;
    }
}

/***   RATING   ***/
.ratings {
    padding-right: 10px;
    padding-left: 10px;
    color: #d17581;
}

/***   TASK LIST   ***/
ul.task-list {
    max-width: 600px;
    list-style-type: none;
    padding: 80px 20px;
    margin: 0 auto;
    gap: 30px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;

    .task-descritpion{
        font-size: 14px;
        text-decoration: none !important;
        display: flex;
        line-height: 17px;
        margin-top: 5px;
        width: 100%;
        font-weight: 300;
    }

    input[type="checkbox"]{
        /* Add if not using autoprefixer */
        -webkit-appearance: none;
        /* Remove most all native input styles */
        appearance: none;
        /* For iOS < 15 */
        background-color: #FFF;
        /* Not removed via appearance */
        margin: 0;

        font: inherit;
        color: currentColor;
        width: 25px;
        height: 25px;
        border: 0.1em solid currentColor;
        border-radius: 0.1em;
        transform: translateY(-0.075em);

        display: flex;

        position: absolute;
        left: 0;

        &:before{
            content: "";
            width: 18px;
            height: 19px;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
            transform: scale(0);
            transform-origin: bottom left;
            transition: 120ms transform ease-in-out;
            box-shadow: inset 1em 1em #999999;
            background-color: CanvasText;
        }

        &:checked{
            &:before{
                transform: scale(1);
            }
        }

        &:focus{
            outline: max(2px, 0.15em) solid currentColor;
            outline-offset: max(2px, 0.15em);
        }
    }

    label {
        flex-grow: 1;
        cursor: pointer;

        font-family: system-ui, sans-serif;
        font-size: 2em;
        font-weight: bold;
        line-height: 0.66;
        display: flex;
        flex-wrap: wrap;
        column-gap: 20px;
    }

    li {
        display: flex;
        gap: 10px;
    }


    .task-title {

        font-family: "DM Sans", sans-serif;
        font-optical-sizing: auto;
        font-weight: 500;
        font-style: normal;
        font-size: 2em;

        padding-left: 50px;
        position: relative;

        &.done {
            text-decoration: line-through;
            color: #999;
        }
    }

    button{
        background: none;
        border: none;
        font: inherit;
        color: currentColor;
    }

    svg {
        width: 24px;
    }

    .task-actions {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 10px;

        a{
            color: #000;
        }
    }
}

/***   FOOTER   ***/
footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    margin: 0;

    p {
        font-family: "DM Sans", sans-serif;
        font-size: .8em;
        margin: 0;
    }

    img {
        height: 30px;
        object-fit: contain;
    }

}

/***   GLOBAL   ***/
*{
    font-family: "DM Sans", sans-serif;
}

body.page {
    h1 {
        font-family: "Shrikhand", serif;
        letter-spacing: 2px;
        font-size: 2.6em;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .retour-btn a{
        display: flex;
        gap: 4px;

        cursor: pointer;

        position: absolute;
        top: 10px;
        left: 10px;
        padding: 4px;
        transition: opacity 0.3s ease;

        opacity: 0.7;
        color: #000;
        text-decoration: none;

        &:hover{
            animation: pulse 2s infinite;
            opacity: 1;
            &:before{
                opacity: 1;
            }
        }

        &:before{
            content: '';
            display: inline-block;
            width: 24px; /* La largeur et la hauteur doivent correspondre à celles du viewBox du SVG */
            height: 24px;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" d="m11.25 9-3 3m0 0 3 3m-3-3h7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /%3E%3C/svg%3E');
        }
    }

    .ajouter-btn a{
        display: flex;
        gap: 4px;

        cursor: pointer;

        position: absolute;
        top: 10px;
        left: 10px;
        padding: 4px;
        transition: opacity 0.3s ease;

        opacity: 0.7;
        color: #000;
        text-decoration: none;

        &:hover{
            animation: pulse 2s infinite;
            opacity: 1;
            &:before{
                opacity: 1;
            }
        }

        &:before{
            content: '';
            display: inline-block;
            width: 24px; /* La largeur et la hauteur doivent correspondre à celles du viewBox du SVG */
            height: 24px;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            background-image: url('data:image/svg+xml,%3Csvg xmlns=\'http://www.w3.org/2000/svg\' fill=\'none\' viewBox=\'0 0 24 24\' stroke-width=\'1.5\' stroke=\'currentColor\' class=\'size-6\'%3E%3Cpath stroke-linecap=\'round\' stroke-linejoin=\'round\' d=\'M12 9v6m3-3H9m12 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\' /%3E%3C/svg%3E');        }
    }


    main {
        position: relative;
    }
}

main{
    min-height: calc(100vh - 254px);
}

#home {

    .tasklist-title{
        font-size: 32px;
        font-family: "Shrikhand", serif;
        letter-spacing: 2px;
    }

    h1{
        font-family: "Poppins", serif;
        padding-bottom: 0;
        margin-bottom: 0;
        font-size: 36px;
        letter-spacing: normal;
        font-weight: 600;
    }

    h2 {
        font-family: "Poppins", serif;
        font-size: 20px;
        font-weight: 400;
    }

    .action{
        display: flex;
        gap: 30px;
        margin-top: 120px;
        margin-bottom: 70px;
        @media screen and (max-width: 767px){
            flex-direction: column;
            margin-top: 30px;
            margin-bottom: 20px;
        }

        >a{
            display: flex;
            align-items: center;
            justify-content: center;
            width: calc(100%/3);
            padding: 10px 20px;
            border: 5px solid #93ddff;
            background-color: #e3f2fd;
            border-radius: 10px;

            color: #005175;
            font-family: "Poppins", serif;
            font-size: 20px;
            font-weight: 800;

            @media screen and (max-width: 767px){
                width: 100%;
            }
        }
    }


}

#task-list{
    h1{
        text-align: center;
    }

    div.link {
        display: flex;

        > div {
            width: fit-content;
        }
        gap: 30px;
        justify-content: center;
    }
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 5px solid #69cfff;
    background-color: #e3f2fd;
    border-radius: 10px;

    color: #005175;
    font-family: "Poppins", serif;
    font-size: 20px;
    font-weight: 800;

    &:hover {

    }
}

#login {
    h1{
        text-align: center;
    }
    form {
        max-width: 500px;
        margin: auto;
        justify-content: center;
        display: flex;
        flex-direction: column;

        button{
            width: fit-content;
            margin: 30px auto 0 auto;
        }
    }
}

header {
    button.btn.dropdown-toggle{
        font-size: inherit;
        padding: inherit;
    }
}


.notifications {
    position: fixed;
    bottom: 0;
    left: 20px;
    padding-right: 10px;

    .alert {
        position: relative;
        padding: 15px 40px 15px 20px;
    }

    svg {
        width: 25px;
        height: 25px;
        padding: 5px;
        cursor: pointer;
    }

    .close-btn {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}


body#list_user {
    table.table.users {
        svg {
            width: 30px;
            color: #000;
        }
    }
}