/* Previous CSS remains the same until the .task-item class */

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.3s ease forwards;
}

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

.task-item:last-child {
    border-bottom: none;
}

.task-item.completed {
    opacity: 0.7;
    text-decoration: line-through;
    background-color: #f8f9fa;
}

.task-item.completed .task-text {
    color: #6c757d;
}

.task-item.completed .complete-btn {
    color: #6c757d;
}

.task-item.completed .complete-btn:hover {
    color: #5a6268;
}

.task-item:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Add transition to buttons */
button {
    transition: all 0.2s ease;
}

/* Add hover effect to filter buttons */
.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add animation to task deletion */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.task-item.deleting {
    animation: fadeOut 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    #addTaskBtn {
        width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
}