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

#list.active {
    display: grid;
}

body {
   background-color: var(--background-primary);
}

.logo {
    & img {
        width: 10rem;
    }
}



  

    p {
            font-family: var(--font-family);
            font-weight: 600;
           
        }



:root {
    /* === Background Colors === */
    --background-primary: #ffffff;
    --background-secondary: #c5c5c5;

    /* === Brand & Status Colors === */
    --color-brand: #1F7D53;
    --color-brand-hover: #A52C6B;
    --color-danger: #C93847;

    /* === Content Colors === */
    --content-primary: #080B12;
    --content-secondary: #124d20;
    --content-tertiary: #27391C;
    --always-white: #FFFFFF;

    /* === Border Colors === */
    --border-primary: #D1D5DB;
    --border-hover: #B9C2D0;

    --font-family: "Inter", sans-serif;
    --font-title-size: 1.5rem;
    /* 24px */
    --font-title-line-height: 2rem;
    /* 32px */
    --font-title-weight: 700;
    /* Bold */

    --font-label-size: 1rem;
    /* 16px */
    --font-label-line-height: 1.25rem;
    /* 20px */
    --font-label-weight: 600;
    /* Semibold */

    --font-paragraph-size: 1rem;
    /* 16px */
    --font-paragraph-line-height: 1.25rem;
    /* 20px */
    --font-paragraph-weight: 500;
    /* Medium */

    --font-link-size: 0.875rem;
    /* 14px */
    --font-link-line-height: 1rem;
    /* 16px */
    --font-link-weight: 500;
    /* Medium */
}

input , button, textarea {
   
       color: var(--content-tertiary);
} 



input:not(:placeholder-shown) {
    color: #6d6d6e;
}

.title-of-the-aplication {
     text-align: center;
     padding-block: 1rem;

}

.hero-form {
    display: grid;
    gap: 2rem;
    justify-content: center;

}

h1 {
    font-family: var(--font-family);
    color: var(--content-primary);
}

main {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding-inline: 2rem;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-back {
    background-color: transparent;
    border: none;
    font-family: var(--font-family);
    padding-block: 1rem;
    font-weight: 600;
    color: var(--color-brand);
    cursor: pointer;
}

.menu-app {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
  

 & input {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    width: 100%;
      box-shadow: 0 0 0 2px var(--content-secondary); /* efeito visual opcional */
   
    
  

    &:focus {
        outline: none; 
        box-shadow: 0 0 0 2px var(--color-brand); /* efeito visual opcional */
       
    }
}


    & button {
        width: min-content;
        padding: 0.75rem 1.5rem;
        background-color: var(--color-brand);
        color: var(--always-white);
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        font-family: var(--font-family);
        font-weight: var(--font-label-weight);
        height: 3rem;
    }
      & button:hover {
    
        background-color: var(--color-danger);
    }
}

.adding-or-not {
    text-align: center;
     color: var(--color-brand);
}

#list {
    

    max-height: 400px;
    overflow: auto;
    display: grid;
    gap: .5rem;
    & li {
        width: 100%;
        display: grid;
        grid-auto-flow: column;
       
        align-items: center;
        justify-content: space-between;
       
        padding:.8rem;
       
       

        & li.active {
            display: block;
        }

        & * {
            justify-self: center;
        }

    
        
        
       
     

     

        & button {
           width: 2rem;
          background-color: transparent;
            border: none;
            cursor: pointer;
            border-radius: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: .2rem;
            & img {
                width: 100%;
                height: 100%;
            }
        }


    }
}

.completed {
    background-color: var(--color-brand);
    text-decoration: line-through;
}

.backgroundStandardList {
     background-color: var(--background-primary);
}




@media (max-width: 1200px) {

  #list li {
      li {
        gap: .2rem;
    }
  }
.menu-app {
    flex-wrap: wrap;
}

.menu-app {
   &  button , input {
        width: 100%;
       
    }
}

.title-of-the-aplication {
     text-align: center;

}



.btn-voltar {
    display: none;
}

}
.green-task {
    background-color: #1F7D53;
}

.yellow-task {
    background-color: #ffb300b9;
}

.red-task {
    background-color: #a52c6bc4;
}


.checkbox-background {
    background-color: #3f3f3fab;
}



.description-of-task {
    padding: 1rem;
    color: #000000;
     display: none;
    text-align: center;
  
   
    
}

.description-of-task.active {
    display: block;
}

textarea {
    
       
  all: unset;
  display: block;
  width: 100%;
  height: auto;
  resize: none;
  box-sizing: border-box;
  padding: 1rem;
  color: var(--content-tertiary);

  border-radius: 1rem;
  font-family: var(--font-family);
  outline: none; 
   box-shadow: 0 0 0 2px var(--content-secondary); /* efeito visual opcional */
      
        
}

textarea:focus {
      box-shadow: 0 0 0 2px var(--color-brand); /* efeito visual opcional */
}
        

                







li {
    cursor: pointer;
}

.textarea {
    display: none;
}


#list {
  display: none;
}




  



/**/

/* Hide the default checkbox */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.container {
  display: block;
  position: relative;
  cursor: pointer;
  font-size: 1.2rem; /* opcional, diminui o texto */
  user-select: none;
}

/* Create a custom checkbox */
.checkmark {
  --clr: #1F7D53;
  position: relative;
  top: 0;
  left: 0;
  height: 1rem;   /* tamanho menor */
  width: 1rem;    /* tamanho menor */
  background-color: rgba(0, 0, 0, 0.616);
  border: 1px solid white;
  border-radius: 50%;
  transition: 300ms;

}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: var(--clr);
  border-radius: .5rem;
  animation: pulse 500ms ease-in-out;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
  left: 0.25em;  /* ajustado para o tamanho menor */
  top: 0.1em;    /* ajustado */
  width: 0.15em; /* ajustado */
  height: .5em; /* ajustado */
  border: solid #E0E0E2;
  border-width: 0 0.1em 0.1em 0;
  transform: rotate(45deg);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 #0B6E4F90;
    rotate: 20deg;
  }

  50% {
    rotate: -20deg;
  }

  75% {
    box-shadow: 0 0 0 6px #0B6E4F60; /* proporcional ao tamanho */
  }

  100% {
    box-shadow: 0 0 0 8px #0B6E4F30; /* proporcional ao tamanho */
    rotate: 0;
  }
}

.description {
  
     box-shadow: 0 0 10PX 0px #0B6E4F30;
     border-radius: 1rem;
}



.btn-salvar-descricao {

    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    border: none;
  
    height: auto;
    cursor: pointer;
   & img {
     width: 1.5rem;
     height: 1.8rem;
   
   }

   
}

.status-img {
    width: 1.8rem;
     height: 1.8rem;
}


/**/


/**/



.tarefas-container  {
    display: grid;
    grid-template-columns: 1fr 1fr;
     justify-content: center;
    gap:2rem ;
   

   
   
    & button {
       
      
        background-color: var(--color-brand);
        color: var(--always-white);
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        font-family: var(--font-family);
        font-weight: var(--font-label-weight);
        height: 3rem;
    }
 
}