* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

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

#container {
    background: white;
    width: 400px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

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

input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
    outline: none;
    transition: 0.3s ease;
}

input:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

#addBtn {
    background-color: #667eea;
    color: white;
}

#addBtn:hover {
    background-color: #5563d6;
    transform: scale(1.05);
}

ul {
    list-style: none;
}

li {
    background: #f4f6ff;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    cursor: pointer;
}

li:hover {
    background: #e0e7ff;
    transform: translateX(5px);
}

.completed {
    text-decoration: line-through;
    color: gray;
    opacity: 0.7;
}

li button {
    background-color: #ff4d4d;
    color: white;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 5px;
}

li button:hover {
    background-color: #e60000;
    transform: scale(1.1);
}

