
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
}


.todo-app {
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 20px;
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}


.todo-app h1 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    color: #333;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    padding: 12px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}

#taskInput:focus {
    border-color: #667eea;
}

#addBtn {
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    background: #667eea;
    color: white;
    cursor: pointer;
    transition: 0.3s ease;
}

#addBtn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

#tasklist {
    list-style: none;
}

#tasklist li {
    background: #f8f9fc;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s ease;
}

#tasklist li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

#tasklist li button {
    background: #ff4d4d;
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}

#tasklist li button:hover {
    background: #e60000;
}

#taskCounter {
    margin-top: 15px;
    padding-top: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #667eea;
    border-top: 1px solid #eee;
    letter-spacing: 0.5px;
}