/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    color: #fff;
    transition: all 0.3s ease;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.input-container {
    display: flex;
    align-items: center;
}

input {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    width: 250px;
    margin-right: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button {
    margin-top: 5.9px;
    padding: 12px 18px;
    background-color: #82ff5c;
    color: #333;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: #00c853;
    color: white;
}

ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    width: 90%;
    max-width: 450px;
}

li {
    background: white;
    color: #333;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

li:hover {
    transform: scale(1.02);
    background-color: #f0f0f0;
}

li.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.delete {
    background-color: transparent;
    border: none;
    color: #ff4d4d;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.delete:hover {
    color: #d50000;
    transform: scale(1.3);
}

/* Animation */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 500px) {
    input {
        width: 150px;
        margin-bottom: 10px;
    }

    ul {
        width: 100%;
    }

    li {
        flex-direction: column;
        align-items: flex-start;
    }
}
