*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playfair Display", serif;
}

 body{
    background-color: #171717;
    font-family: "Playfair Display", serif;
    
}
header h1{
    color:aliceblue
}

nav {
  position: static;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: aliceblue;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  position: relative;
  transition: 0.3s;
  text-transform: uppercase;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: aliceblue;
  transition: 0.3s;
}

nav a:hover {
  color: aliceblue;
}

nav a:hover::after {
  width: 100%;
}

nav a.active {
  color: aliceblue;
}

nav a.active::after {
  width: 100%;
}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    border-bottom: 1px solid aliceblue;
}

#addContainer{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin:20px;
}

#listSection{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

.stat-container{
    color: #ded7e0;
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid #ded7e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;

}
#progressBar{
    width: 100%;
    height: 7px;
    background: #000000;
    border-radius: 20px;
    position: relative;
    margin-top: 15px;
    border-radius: 20px;
    transition: width 0.3 ease;
}
#progress{
    width: 50%;
    height: 100%;
    background: #ffffff;
    transition: 0.2s;
}
#numbers{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-weight: bold;
    font-size: 1.5rem;
}

.listContainer{
    width: min(320px,100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ded7e0;
}

.listContainer:hover{
    box-shadow: 0px 0px 12px #716868;
}



#listname{
    font-size: 16px;
    width: auto;
    padding: 5px;
    border-radius: 5px;
    border: none;
    background-color: #1f1f1f;
    color: aliceblue;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.listContainer h2{
    color: aliceblue;
    text-align: center;
    width: 100%;
}

#addListButton{
    background-color: #1f1f1f;
    color: aliceblue;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 15px;
    cursor: pointer;
    font-family: "Playfair Display", serif;
}

#taskInput{
    flex:1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ded7e0;
    background-color: #141414;
    color: aliceblue;
    text-align: center;
}

#addTaskButton{
    background-color: #1f1f1f;
    color: aliceblue;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 4px 4px;
    cursor: pointer;
    font-family: "Playfair Display", serif;
}
#addTaskButton:hover{
    box-shadow: 0px 0px 12px #716868;
}

#taskList li{
    display: flex;
    align-items: center;
    justify-content: center;
    color: aliceblue;
    background-color: #1f1f1f;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ded7e0;
    border-radius: 5px;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding: 10px;
    margin: 5px 0;
}
#taskList li:hover{
    box-shadow: 0px 0px 12px #716868;
}
#taskList li .taskCheckbox{
    accent-color: #141414;
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    
}
#taskList li .taskCheckbox:checked{
    transform: scale(1.1);
}

#taskList li span{
    position: relative;
}

#taskList li span::after{
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

#taskList li.completed span::after{
    width: 100%;
}

.task-buttons{
    display: flex;
    gap: 10px;
    margin-left: 8px;
    margin-right: auto;
}
.task-buttons button{
    background-color: #1f1f1f;
    color: aliceblue;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 4px 4px;
    cursor: pointer;
    font-family: "Playfair Display", serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.task-buttons button:hover{
    transform: scale(1.2);
}

.task-buttons .edit-btn:hover{
    color: #ff7912;
    border-color: #ff7912;
    box-shadow: 0px 0px 12px #ff7912;
    transform: scale(1.1);
}
.task-buttons .delete-btn:hover{
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0px 0px 12px #d02525;
    transform: scale(1.1);
}

.list-template {
    display: none;
}

.listContainer{
    position: relative;
}
.list-header{
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.delete-list-btn{
    position: absolute;
    right: 0;
    top: 0;

    background-color: #1f1f1f;
    color: aliceblue;
    border: 1px solid #ded7e0;
    border-radius: 8px;
    width: 30px;
    height: 30px;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}
.delete-list-btn:hover{
    color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0px 0px 12px #d02525;
    transform: scale(1.1);
}

#projectName{
    font-size: 1rem;
    width: 200px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ded7e0;
    background-color: #141414;
    color: aliceblue;
    text-align: center;
}

#taskForm{
    display:flex;
    width:100%;
    gap:10px;
}

@media (max-width:768px){

    .stat-container{
        flex-direction:column;
        text-align:center;
    }

    #numbers{
        width:60px;
        height:60px;
        font-size:1.2rem;
    }

    #projectName{
        width:100%;
        max-width:300px;
    }

    #addListButton{
        width:100%;
        max-width:300px;
    }

}

@media (max-width: 768px) {
  .listsContainer {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  header {
    padding: 20px;
    gap: 20px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    gap: 15px;
  }
}