@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 {
    font-family: "Jost", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    background: url(./backgorund.jpg)
        no-repeat center center/cover;
}


/* Main Container */

.container {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    min-height: 100vh;

    padding: 20px;
}


/* Todo App */

.Todo-App {
    width: 100%;
    max-width: 400px;

    padding: 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 30px;

    color: #fff;

    border-radius: 20px;

    box-shadow:
        0 0 100px rgba(0, 0, 0, 0.5);

    border:
        3px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(5px);
}


/* Heading */

h1 {
    font-size: 2rem;
}


/* Progress Section */

.stat-container {
    padding: 15px 20px;

    border-radius: 10px;

    border:
        2px solid rgba(255, 255, 255, 0.18);

    display: flex;

    align-items: center;

    justify-content: space-between;

    width: 100%;

    gap: 20px;
}


.details {
    width: 100%;
}


.details h3 {
    color: #fff;
}


/* Progress Bar */

#progressbar {
    width: 100%;
    height: 7px;

    background: rgba(255, 194, 209, 0.3);

    border-radius: 20px;

    position: relative;

    margin-top: 15px;
}


#progress {
    width: 0%;
    height: 100%;

    background: #ff6f91;

    border-radius: 20px;

    transition: width 0.3s ease;
}


/* Progress Number */

#numbers {
    display: flex;

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

    width: 70px;
    height: 70px;

    background: #ff6f91;

    border:
        2px solid rgba(255, 194, 209, 0.3);

    font-weight: bold;

    border-radius: 50%;

    font-size: 1.3rem;
}


/* Input Area */

.input_area {
    display: flex;

    justify-content: space-between;
    align-items: center;

    width: 100%;
}


#task-input {
    flex: 1;

    padding: 10px 17px;

    font-size: 1.1rem;

    border: none;

    outline: none;

    border-radius: 22px;

    background: rgba(255, 194, 209, 0.3);

    color: #dbdbdb;
}


#task-input::placeholder {
    color: #bcbcbc;
}


/* Add Button */

#add-task {
    display: flex;

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

    margin-left: 10px;

    width: 40px;
    height: 40px;

    padding: 8px;

    border-radius: 50%;

    color: #fff;

    font-size: 1.1rem;

    background: rgba(255, 194, 209, 0.3);

    border:
        2px solid rgba(255, 194, 209, 0.3);

    cursor: pointer;

    transition: all 0.2s ease;
}


#add-task:hover {
    transform: scale(1.1);

    background: #ff6f91;
}


/* Todo Container */

.todo-container {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;
}


#task-list {
    width: 100%;

    list-style: none;
}


/* Empty Image */

.empty {
    width: 200px;

    height: auto;

    display: block;

    margin: 0;
}


/* Task */

#task-list li {
    display: flex;

    align-items: center;

    justify-content: space-between;

    background: rgba(255, 194, 209, 0.3);

    margin-bottom: 10px;

    padding: 8px 10px;

    border-radius: 30px;

    font-size: 1.2rem;

    color: #fff;

    position: relative;

    transition: box-shadow 0.2s ease;
}


#task-list li:hover {
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.1);
}


/* Checkbox */

#task-list li .checkbox {
    min-width: 20px;

    height: 20px;

    border:
        2px solid rgba(255, 194, 209, 0.3);

    background: transparent;

    border-radius: 50%;

    appearance: none;

    cursor: pointer;

    transition: all 0.2s ease;
}


#task-list li .checkbox:checked {
    background: #ff6f91;

    transform: scale(1.1);
}


#task-list li .checkbox:checked::before {
    content: '\2713';

    color: #fff;

    display: flex;

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

    font-size: 1rem;
}


/* Task Text */

#task-list li span {
    flex: 1;

    margin-left: 10px;

    word-wrap: break-word;
}


/* Task Buttons */

.task-button {
    display: flex;

    gap: 10px;

    margin-left: auto;
}


.task-button button {
    background:
        rgba(255, 194, 209, 0.3);

    border: none;

    border-radius: 50%;

    width: 30px;
    height: 30px;

    color: #fff;

    font-size: 0.8rem;

    cursor: pointer;

    transition: all 0.2s ease;

    display: flex;

    justify-content: center;
    align-items: center;
}


.task-button button:hover {
    transform: scale(1.2);
}


.task-button .edit-btn {
    background: #ffbf00;
}


.task-button .delete-btn {
    background: #ff6f91;
}


/* Completed Task */

#task-list li.completed span {
    text-decoration: line-through;

    color: #000;
}


/* Mobile */

@media (max-width: 600px) {

    .container {
        padding: 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;
    }
}

.creator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.creator a {
    color: #fff;
    font-size: 1.3rem;
    transition: 0.2s ease;
}

.creator a:hover {
    transform: scale(1.15);
}