@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

/* Barra lateral de rolagem da página */
::-webkit-scrollbar{
    width: 1.5em;
    height: 1em;
}
::-webkit-scrollbar-track{
    background: #1f1f1ff4;
}
::-webkit-scrollbar-thumb{
    background: rgb(4, 40, 75);
    border: .2em solid #7096a7;
    border-radius: 100vw;
}
::-webkit-scrollbar-thumb:hover{
    background: linear-gradient(rgb(4, 0, 55),rgb(0, 84, 132),rgb(4, 0, 55)); 
}
*{
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
}

body {
    background: #1a1a1a;
    color: white;
    
}

/* header */
nav{
    font-family: 'Rubik', sans-serif;
    display: flex;
    height: 70px;
    background-color: #130c30dc;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px 0 5%;
    flex-wrap: wrap;
    
}
nav .Logo{
    color: white;
    font-size: 35px;
    font-weight: 500;
}
nav ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}
nav ul li{
    margin: 0 5px;
}
nav ul li a{
    color: #f2f2f2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
nav ul li a.active, 
nav ul li a:hover{
    background-color: #8b06f8;
}

nav ul li a:hover{
    cursor: pointer;
}

nav .menu-btn i{
    color: #fff;
    cursor: pointer;
    display: none;
}

.header{
    font-family: 'Rubik', sans-serif;
    width: 100%;
    top: 0;
    position: -webkit-sticky; /* Necessário para funcionar no Safari */
    position: sticky;
}

/* css minhas tarefas */
#editar-tarefa{
    margin-left: 10px;
}

.tarefa {
    background-color: #333;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    margin-left: 10px;
    margin-right: 10px;
}
.tarefa button{
    margin-top: 10px;
}

.tarefa.concluida {
    text-decoration: line-through;
    opacity: 0.6;
}


/* -- */

.edit-input {
    all: unset;
    color: #fefefe;
    padding: 10px;
    border: 1px solid #9e9e9e;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 10px;
}
#dados {
    display: none;
}
#dados h2{
    padding-bottom: 10px;
}
/*  ------/-----/------  */

.input-group{
    font-size: 1rem;
    position: relative;
    --primary: #2196f3;
    margin-bottom: 15px;
}
.input {
    all: unset;
    color: #fefefe;
    padding: 1.1rem;
    border: 1px solid #9e9e9e;
    border-radius: 10px;
    transition: 150ms
        cubic-bezier(0.4, 0, 0.2, 1);
}

.label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    color: #d4d4d4;
    pointer-events: none;
    transition: 150ms
        cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus {
    border: 1px solid
        var(--primary);
}

.input:is(:focus, :valid) ~ label {
    transform: 
        translateY(-120%)
        scale(0.7);
        background-color: #1a1a1a;
        padding-inline: 0.3rem;
        color: var(--primary);
}

button {
    background: #2196f3;
    border-style: none;
    padding: 12px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

/* Estilo para os botões */
button.concluir {
    background-color: #4CAF50; 
    color: #fff;
}

button.concluir:hover {
    background-color: #45a049;
}

button.excluir {
    background-color: #f44336;
    color: #fff;
}

button.excluir:hover {
    background-color: #d32f2f;
}


@media screen and (max-width: 600px) {
    nav ul{
        margin: 5px;
        height: 80px;
        margin-top: 20px; 
    }
}
@media screen and (max-width: 400px) {
    nav{
        height: 90px;
    }
}
