html,
body {
    background: linear-gradient(rgba(0, 0, 0, 0.849),
            rgba(0, 0, 0, 0.76)), url("../images/fundo.png");
    margin: 0;
    height: 100%;
    max-height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;

    #app-main {
        height: 100%;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes progresso {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background-color: #ffffff85;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: #2a2a2a;
    border-radius: 10px;
}

.div-toolbar {
    position: fixed;
    right: 0px;
    top: 10px;
    text-align: right;

    a {
        text-decoration: none;
        color: white;
        background-color: #D04444;
        padding: 5px 15px;
        border: 1px solid #ffffff00;
        border-radius: 10px;
        margin-right: 5px;
    }
}

.div-container {
    display: flex;
    flex-direction: row;
    margin: 0px;
    left: 0px;
    height: 100vh;
    width: 100%;
}

.div-usuarios {
    height: 100%;
    min-width: 70px;
    max-width: 70px;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.555);
    display: flex;
    flex-direction: column;
}

#div-lista-usuarios {
    width: max-content;
    align-self: baseline;
    padding-left: 12px;
    overflow-y: scroll;
    direction: rtl;
    position: relative;
    pointer-events: none;
}

#div-lista-usuarios>* {
    direction: ltr;
    /* coloca a barra lateral na esquerda */
}

#div-lista-usuarios::-webkit-scrollbar {
    width: 3px;
}

#div-lista-usuarios::-webkit-scrollbar-thumb {
    background-color: #ffffff50;
}

.box-div-usuarios {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.div-usuarios-itens {
    width: 45px;
    height: 45px;
    background-color: rgb(49, 51, 56);
    color: lightgray;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 30px;
    font-size: large;
    cursor: pointer;
    pointer-events: auto;
}

.div-usuarios-itens:hover {
    font-size: x-large;
    border-radius: 10px;
    background-color: rgb(58, 164, 91);
}

.div-usuarios-incluir {
    min-width: 55px;
    min-height: 55px;
    background-color: rgb(19, 56, 150);

    margin-top: 10px;
    display: flex;
    justify-content: center;
    /* Alinha horizontalmente ao centro */
    align-items: center;
    /* Alinha verticalmente ao centro */
    border-radius: 30px;
    /* Define o arredondamento dos cantos */
    font-size: large;
    cursor: pointer;
}

.div-projetos-arquivados {
    min-width: 45px;
    min-height: 45px;
    background-color: rgb(49, 51, 56);

    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    /* Alinha horizontalmente ao centro */
    align-items: center;
    /* Alinha verticalmente ao centro */
    border-radius: 30px;
    /* Define o arredondamento dos cantos */
    font-size: large;
    cursor: pointer;

    img {
        pointer-events: none;
    }
}

.div-projetos-arquivados:hover {
    font-size: x-large;
    background-color: #41BD58;
    visibility: visible;
}

.div-usuarios-incluir:hover {
    font-size: x-large;
    background-color: rgba(19, 56, 150, 0.877);
    visibility: visible;
}

.div-usuarios-incluir:hover .hint-usuarios-incluir,
.div-projetos-arquivados:hover .hint-projetos-arquivados {
    visibility: visible;
}

.div-usuarios-itens.selected {
    background-color: lightgray;
    color: rgb(49, 51, 56);
}

.div-projetos-arquivados.selected {
    background-color: lightgray;
    color: rgb(49, 51, 56);

    img {
        filter: invert(1);
    }
}

.hint-usuarios-incluir,
.hint-projetos-arquivados {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    background-color: rgb(49, 51, 56);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    left: 75px;
    font-size: small;
}

.form-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 6, 20, 0.849);
    z-index: 9999;
    cursor: pointer;
    text-align: -webkit-center;
}

.form-body {
    padding: 5px 20px 20px 20px;
    border: 1px solid #1E1E1E;
    background-color: #323232;
    color: #eeeeee;
    border-radius: 5px;
    width: 500px;
    margin-top: 20px;
    text-align: center;
    cursor: default;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 90%;

    display: flex;
    flex-direction: column;
    align-items: center;

    animation-name: fadeIn;
    animation-duration: 300ms;
    animation-timing-function: ease-in;

    form {
        text-align: left;
        display: grid;
    }

    .text-form {
        font-weight: bold;
        color: #cccccc;
        align-content: center;
        padding-left: 5px;
        margin-bottom: 2px;
    }

    .input-form {
        padding: 7px 10px;
        background-color: #2a2a2a;
        color: white;
        border: 1px solid #1E1E1E;
        border-radius: 5px;
        width: 300px;
        margin-bottom: 5px;
    }

    .textarea-form {
        padding: 7px 10px;
        background-color: #2a2a2a;
        color: white;
        border: 1px solid #1E1E1E;
        border-radius: 5px;
        width: 300px;
        margin-bottom: 5px;
        resize: none;
    }

    .div-botoes {
        margin-top: 10px;
        width: -webkit-fill-available;
        display: flex;
        justify-content: space-between;
        align-items: center;
        align-content: center;

        p {
            margin: 0;
        }
    }

    .input-button {
        background-color: #D04444;
        color: white;
        border: 1px solid #ffffff00;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
        padding: 5px 15px;
        cursor: pointer;
    }

    .input-button:hover {
        background-color: #942d2d;
    }

    .input-submit {
        background-color: #41BD58;
        color: white;
        border: 1px solid #ffffff00;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 600;
        padding: 5px 15px;
        cursor: pointer;
    }

    .input-submit:hover {
        background-color: #45a049;
    }
}

.div-projetos-container {
    color: lightgray;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    color: lightgray;
    transition: transform 0.2s ease, background-color 0.2s ease-in-out;

    .listagem-projetos {
        display: flex;
        width: 100%;
        padding: 10px 0 10px 10px;

        .div-titulos {
            width: 100%;
            max-width: 257px;

            .titulo {
                height: 22px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .situacao {
                font-size: 11px;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }

        .data {
            font-family: Arial, sans-serif;
            font-size: 16px;
            padding-right: 5px;
        }

        .data .dia {
            font-weight: bold;
            font-size: 18px;
        }

        .data .mes,
        .data .ano {
            font-size: 14px;
            color: #888;
        }

    }

    img {
        opacity: 0;
        visibility: hidden;
        border-radius: 0px 5px 5px 0px;
        transition: opacity 0.5s ease, transform 0.2s ease, background-color 0.2s ease-in-out;
    }
}

.div-projetos-container:hover {
    background-color: rgba(19, 56, 150, 0.76);

    img {
        opacity: 1;
        visibility: visible;
        padding: 10px 10px 10px 5px;
    }

    img:hover {
        background-color: #dcc706a9;
    }
}

.div-projetos-container.selected {
    color: rgb(43, 45, 49);
    background-color: lightgray;
}



@media screen and (max-width: 768px) {
    /* Ajustes mobile */

    .form-background {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .div-projetos-container .listagem-projetos {
        display: block;

        .div-titulos .titulo,
        .div-titulos .situacao {
            white-space: normal;
            height: fit-content;
        }

        .data {
            margin-top: 5px;
        }
    }

    .div-projetos.expand {
        min-width: calc(100% - 70px);
        z-index: 99999;
    }

    .form-body {
        width: 80%;
    }

    ::-webkit-scrollbar {
        width: 0px;
    }

    .div-usuarios-incluir:hover .hint-usuarios-incluir,
    .div-projetos-arquivados:hover .hint-projetos-arquivados {
        visibility: hidden;
    }    
}