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

body {
    height: 100vh;
    font-family: "Inter", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;

    /* Light gradient background */
    background: linear-gradient(135deg, #e0f7fa, #e3f2fd);
    overflow: hidden;
    position: relative;
}

/* Background animated circles */
body::before,
body::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 12s infinite ease-in-out alternate;
}

body::before {
    width: 350px;
    height: 350px;
    background: #64b5f6;
    top: -100px;
    left: -100px;
}

body::after {
    width: 250px;
    height: 250px;
    background: #81d4fa;
    bottom: -80px;
    right: -80px;
    animation-delay: 4s;
}

/* Title */
h1 {
    margin: 30px 0 20px 0;
    font-size: 2.3rem;
    font-weight: 700;
    color: #1a237e;
    animation: fadeDown 0.7s ease;
}

/* Input & Add Task button */
input,
button {
    padding: 12px 18px;
    margin: 8px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

input {
    background: #ffffff;
    width: 240px;
    border: 1px solid #cfd8dc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

input::placeholder {
    color: #777;
}

button {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.3);
}

button:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

/* Task List */
ul {
    list-style: none;
    margin-top: 20px;
    width: 400px;
    padding: 0;
}

li {
    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 10px;
    margin: 12px 0;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: #2e2e2e;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

/* Delete button */
.delete {
    background: #e53935;
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete:hover {
    background: #b71c1c;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    from {
        transform: translateY(0) scale(1);
    }

    to {
        transform: translateY(-40px) scale(1.05);
    }
}