@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;
    min-height: 100vh;
    display: flex;
    justify-content: center;   /* center the .container horizontally */
    align-items: center;       /* center the .container vertically   */
    background: url(background.jpg) no-repeat center/cover;
    color: white;
    font-weight: bold;
}

/* -------- Empty image centered ---------- */
.empty-image {
    display: block;
    height: 300px;
    width: 350px;
    margin: 0 auto;  /* ensures horizontal centering inside parent */
}

/* -------- Outer container ---------- */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 20px;
}

/* -------- To-do app box ---------- */
.todo-app {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;       /* ✅ centers children like .empty-image */
    gap: 30px;
    color: aliceblue;
    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(10px);
}

.todo-app h1 {
    font-size: 2.5rem;
}

/* Add this for your name or subtitle */
.todo-app h2 {
    font-size: 1.5rem;
    text-align: right;     
    width: 100%;           
    margin-top: -30px;     
    font-weight: normal;   
    color: #fff;
}

/* -------- Stats & progress ---------- */
.stat-container {
    padding: 15px 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.details {
    width: 100%;
}

.details h3 {
    color: #fff;
    font-size: 1.8rem;
    text-align: center;
}

#progressbar {
    width: 100%;
    height: 7px;
    background: #22aabc;
    border-radius: 20px;
    position: relative;
    margin-top: 15px;
}

#progress {
    width: 50%;
    height: 100%;
    background: #22aabc;
    border-radius: 20px;
    transition: width 0.3s ease;
}

#numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #22aabc;
    border: 2px solid rgba(255, 194, 209, 0.3);
    font-weight: bold;
    border-radius: 50%;
    font-size: 1.5rem;
}

/* -------- Input area ---------- */
.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: 22px;
    background: rgba(149, 142, 173, 0.3);
    color: #dbdbdb;
}

.input-area input::placeholder {
    color: #bcbcbc;
}

.input-area button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 8px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    background: rgba(190, 124, 191, 0.5);
    border: 2px solid rgba(255,194,209,0.18);
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-area button:hover {
    transform: scale(1.1);
    background-color: #22aabc;
}

/* -------- Task list ---------- */
.todos-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#task-list {
    width: 100%;
}

#task-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(102, 124, 204, 0.3);
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 30px;
    font-size: 1.2rem;
    color: white;
    position: relative;
    transition: box-shadow 0.2s ease;
}

#task-list li:hover {
    box-shadow: 0 10px 10px rgba(4, 39, 42, 0.4);
    font-size: 1.3rem;
    background: rgba(22, 109, 174, 0.5);
}

#task-list li .checkbox {
    min-width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    border-radius: 50%;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#task-list li .checkbox:checked {
    background: #22aabc;
    transform: scale(1.1);
}

#task-list li .checkbox:checked::before {
    content: '\2713';
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

#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;
    gap: 10px;
    margin-right: auto;
}

.task-buttons 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-buttons button:hover {
    transform: scale(1.2);
}

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

.task-buttons .delete-btn {
    background: #f22152;
}

/* -------- Responsive tweaks ---------- */
@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;
    }

    .todo-app h1 {
        font-size: 2rem;
    }

    .todo-app h2 {
        font-size: 1.5rem;
        text-align: right;     
        width: 100%;           
        margin-top: -20px;     
        font-weight: normal;   
        color: #fff;
    }

}



