@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(assests/background\ img.jpg) no-repeat center center/cover;
    font-family: "Jost", sans-serif;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 100%;
}
.todo-app {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    color: #fff; 
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}
.todo-app h1 {
    font-size: 2rem;
}
.stat-container {
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 221, 0.63);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
}
.details {
    width: 100%;
}
.details h3 {
    color: #fff;
}
#progressbar {
    width: 100%;
    height: 7px;
    background-color: rgba(0, 255, 221, 0.63);
    border-radius: 20px;
    position: relative;
    margin-top: 15px;
}
#progress {
    width: 0%;
    height: 100%;
    background-color: rgb(12, 255, 105);
    border-radius: 20px;
    transition: width 0.3 ease;
}
#numbers {
     display: flex;
     justify-content: center;
     align-items: center;
     width: 80px;
     height: 80px;
     background-color: rgba(0, 255, 221, 0.63);
     border: 2px solid rgba(1, 94, 148, 0.658);
     border-radius: 50%;
     font-size: 1.5rem;
     font-weight: bold;

}
.input-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.input-area input {
    flex: 1;
    padding: 10px 17px;
    font-size: 1.1rem;
    border: none;
    outline: none;
    border-radius: 72px;
    background-color: rgba(25, 180, 252, 0.3);
    color: #dbdbdb;
} 
.input-area input::placeholder {
    color: #bcbcbc;
}
.input-area button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    padding: 8px;
    border-radius: 50%;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background-color: rgba(25, 180, 252, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}
.input-area button:hover {
    transform: scale(1.1);
    background-color: rgba(0, 255, 221, 0.63);
}
.todos-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
#task-list {
    width: 100%;
}
#task-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(25, 180, 252, 0.3);
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 30px;
    color: #fff;
    font-size: 1.2rem;
    position: relative;
    transition: box-shadow 0.2s ease;
}
#task-list:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#task-list li .checkbox {
   min-width: 20px;
   height: 20px;
   border: 2px solid rgba(255, 255, 255, 0.18);
   background: transparent;
   border-radius: 50%;
   cursor: pointer;
   transition: all 0.2s ease;
   appearance: none;
}
#task-list li.checkbox:checked {
  transform: scale(1.1);
  background-color: rgba(0, 255, 221, 0.63);
}
#task-list li .checkbox:checked::before {
    content: '\2713';
    color: #fff;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
#task-list li span {
    flex: 1;
    margin-left: 10px;
    word-wrap: break-word;
}
#task-list li.completed span {
    text-decoration: 2px line-through #000;
    color: #000;
}
.task-buttons {
    display: flex;
    margin-right: auto;
    gap: 10px;
}
.task-buttons button {
    background-color:  rgba(25, 180, 252, 0.3);
    color: #fff;
    border-radius: 50%;
    border: none;
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.task-buttons button:hover {
    transform: scale(1.2);
}
.task-buttons .edit-btn {
    background-color: #ffbf00;
}
.task-buttons .delete-btn {
    background-color: rgba(1, 94, 148, 0.658);
}

@media (max-width: 600px) {
    .container {
        margin: 0 20px;
        padding: 0 10px;
    }
    .todo-app {
        padding: 1.5rem;
        gap: 20px;
    }
    #numbers {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    .input-area input {
        font-size: 1rem;
    }
    #task-list li {
        font-size: 1rem;
    }

}