*{
    box-sizing: border-box;
}

body{
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-color: #2d2b55;
    min-height: 100vh;
}

.todo-container{
    width: 650px;
    margin: 30px auto ;
    background-color: #f6f6f6;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.todo-container h1{
    font-size: 30px;
    margin: 15px;
    padding: 20px;
}

.todo-container .add-task{
    width: 600px;
    margin: 15px;
    margin-top: -20px;
    padding: 20px;
    display: flex;
}

.todo-container .add-task input{
    height: 55px;
    border-radius: 40px;
    border: none;
    outline: none;
}

.todo-container .add-task input[type="text"]{
    width: 450px;
    background-color: #eee;
    padding-left: 20px;
    caret-color: #ff6b4a;
}

.todo-container .add-task input[type="submit"]{
    width: 170px;
    background-color: #ff6b4a;
    text-align: center;
    color: white;
    font-size: 16px;
    margin-left: -50px;
    cursor: pointer;
}

.todo-container .add-task input[type="submit"]:hover{
    background-color: #d44424;
}

.todo-container .tasks{
    width: 600px;
    margin: 15px;
    margin-top: -20px;
    padding: 20px;
    min-height: 150px;
}

.todo-container .tasks .no-tasks{
    text-align: center;
    font-size: 18px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.todo-container .task{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.todo-container .task  .task-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-container .task input[type="checkbox"]{
    appearance: none;
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: transparent;
    cursor: pointer;
}

.todo-container .task input[type="checkbox"]:checked{
    background-color: #ff6b4a;
    border-color: #ff6b4a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.5 2.5l-8 8-3-3-1.5 1.5 4.5 4.5 9.5-9.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.todo-container .task label{
    cursor: pointer;
}

label.completed {
    text-decoration: line-through;
    color: #ccc;
}
.todo-container .tasks span{
    cursor: pointer;
}

/* bar tasks */
.bar-tasks{
    width: 650px;
    margin: -20px auto 15px;
    background-color: #f6f6f6;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 20px;
}

.bar-tasks .count-tasks,
.bar-tasks .count-completed{
    text-align: center;
    border-left: 3px solid #ff6b4a;
    padding: 10px 30px;
}
.bar-tasks .count-completed{
    border-left: 3px solid rgb(8, 212, 8);
}
.bar-tasks .count-completed span{
    color: #2ecc71;
}

.bar-tasks p{
    font-size: 14px;
    color: #aaa;
    margin-bottom: 5px;
}

.bar-tasks span{
    font-size: 24px;
    font-weight: bold;
    color: #ff6b4a;
}

/* btn all */
.btn-All{
    width: 650px;
    margin: 0 auto 30px;
    background-color: #f6f6f6;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    gap: 15px;
    padding: 20px;
}

.btn-All button{
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.btn-All .complete-All{
    background-color: #5563c1;
    color: white;
}

.btn-All .complete-All:hover{
    background-color: #4657c2;
}

.btn-All .Remove-All{
    background-color: #ff6b4a;
    color: white;
}

.btn-All .Remove-All:hover{
    background-color: #d44424;
}

.no-tasks{
    text-align: center;
    color: #aaa;
    font-size: 15px;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .bar-tasks,
    .btn-All{
        width: 95%;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .todo-container {
        width: 95%;
        margin: 15px auto;
    }

    .todo-container .add-task {
        width: 100%;
        margin: 0;
        padding: 15px;
    }

    .todo-container .add-task input[type="text"] {
        width: 100%;
    }

    .todo-container .add-task input[type="submit"] {
        width: 80px;
        font-size: 14px;
        margin-left: -40px;
    }

    .todo-container .tasks {
        width: 100%;
        margin: 0;
        padding: 15px;
    }
}
